当前位置: 首页 > 工具软件 > ingress-nginx > 使用案例 >

Ingress-nginx-controller:v1.1.2部署实践

莫乐
2023-12-01

参考

##
https://blog.csdn.net/zfw_666666/article/details/126466270


## 官网
https://github.com/kubernetes/ingress-nginx

部署

wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.2/deploy/static/provider/cloud/deploy.yaml

修改如下:

---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app.kubernetes.io/component: controller
    app.kubernetes.io/instance: ingress-nginx
    app.kubernetes.io/name: ingress-nginx
    app.kubernetes.io/part-of: ingress-nginx
    app.kubernetes.io/version: 1.2.0
  name: ingress-nginx-controller
  namespace: ingress-nginx
spec:
  minReadySeconds: 0
  revisionHistoryLimit: 10
  #replicas: 1 # 这个是运行ingress-controller程序的Pod的副本数,建议至少2个
  selector:
    matchLabels:
      app.kubernetes.io/component: controller
      app.kubernetes.io/instance: ingress-nginx
      app.
 类似资料: