github.com/qsunny/k8s@v0.0.0-20220101153623-e6dca256d5bf/nacos/helm/templates/ingress.yaml (about) 1 {{- if .Values.ingress.enabled -}} 2 {{- $fullName := include "nacos.fullname" . -}} 3 apiVersion: extensions/v1beta1 4 kind: Ingress 5 metadata: 6 name: {{ $fullName }} 7 labels: 8 {{ include "nacos.labels" . | indent 4 }} 9 {{- with .Values.ingress.annotations }} 10 annotations: 11 {{- toYaml . | nindent 4 }} 12 {{- end }} 13 spec: 14 {{- if .Values.ingress.tls }} 15 tls: 16 {{- range .Values.ingress.tls }} 17 - hosts: 18 {{- range .hosts }} 19 - {{ . | quote }} 20 {{- end }} 21 secretName: {{ .secretName }} 22 {{- end }} 23 {{- end }} 24 rules: 25 {{- range .Values.ingress.hosts }} 26 - host: {{ .host | quote }} 27 http: 28 paths: 29 {{- range .paths }} 30 - path: {{ . }} 31 backend: 32 serviceName: nacos-cs 33 servicePort: http 34 {{- end }} 35 {{- end }} 36 {{- end }}