-
目录结构,需要修改template/deployment.yaml文件,设置hostname: true
-
traefik.yaml文件
serviceType: NodePort ssl: enabled: true replicas: 1 nodeSelector: traefik: ingress resources: limits: cpu: 1 memory: 1Gi requests: cpu: 1 memory: 1Gi dashboard: enabled: true domain: zhaoqi1.125339.cn service: nodePorts: http: 30080 https: 30443 rbac: enabled: true metrics: prometheus: enabled: true
-
ingress.yaml
apiVersion: extensions/v1beta1 kind: Ingress metadata: name: echo-traefik-ingress annotations: kubernetes.io/ingress.class: traefik spec: tls: - secretName: tls-secret rules: - host: zhaoqi1.125339.cn http: paths: - path: / backend: serviceName: echo servicePort: 80
-
start.sh
#!/bin/bash helm install --name traefik-ingress --namespace traefik-ingress -f traefik.yaml .
版权声明:本文为qq_27164239原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。