Ingress 您所在的位置:网站首页 安装ingress Ingress

Ingress

2022-05-26 23:27| 来源: 网络整理| 查看: 265

概述 Ingress-nginx安装部署1.部署文件下载#下载地址https://github.com/kubernetes/ingress-nginxreeginx-0.30.0#configmap.yaml存储配置信息,key/value值#namespace.yaml建命名空间#mandatory.yaml包含部署deploy相关所有资源(configmap.yaml,namespace.yaml, Ingress-Nginx安装部署

1.部署文件下载

# 下载地址 https://github.com/kubernetes/ingress-Nginx/tree/Nginx-0.30.0 # configmap.yaml 存储配置信息,key/value值 # namespace.yaml 建命名空间 # mandatory.yaml 包含部署deploy相关所有资源(configmap.yaml,namespace.yaml,rbac.yaml,with-rbac.yaml) # rbac.yaml rbac授权配置,创建Ingress需要使用的 # ServiceAccount,ClusterRole,Role,RoleBinding,ClusterRoleBinding # with-rbac.yaml 能使用rbac授权的deploy配置,用于构建ingress-controller

https://upload-images.jianshu.io/upload_images/2915374-c5c16b994b4fd71c.png?imageMogr2/auto-orient/strip|imageView2/2/w/661/format/webp

2.service文件下载 # 下载地址 https://github.com/kubernetes/ingress-Nginx/tree/Nginx-0.30.0

在这里插入图片描述

3.修改mandatory.yaml的镜像源 # 将镜像源 quay.io 替换成 quay.azk8s.cn sed -i 's/quay.io/quay.azk8s.cn/' mandatory.yaml

4.部署ingress-Nginx-controller

kubectl apply -f mandatory.yaml

5.部署ingress-Nginx-sevice

kubectl apply -f service-nodeport.yaml

6.部署ingress-Nginx

vi ingress-hr-web.yaml APIVersion: extensions/v1beta1 kind: Ingress Metadata: name: ingress-hr-web namespace: default annotations: kubernets.io/ingress.class: "Nginx" spec: rules: - host: hr-web.liuyu.com http: paths: - path: backend: servicename: hr-web-svc servicePort: 8999 总结

以上是编程之家为你收集整理的Ingress-nginx安装部署全部内容,希望文章能够帮你解决Ingress-nginx安装部署所遇到的程序开发问题。

如果觉得编程之家网站内容还不错,欢迎将编程之家网站推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。 喜欢与人分享编程技术与工作经验,欢迎加入编程之家官方交流群! 编程之家官方1群(满) 编程之家官方2群(满) 编程之家官方3群(满) 编程之家官方4群 编程之家官方5群(新)


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有