- selector:
- app: {{ include "common.namespace.platform" . }}-{{ include "common.name.dbaas" . }}
- release: {{ .Release.Name }}
- ports:
- - port: {{ include "common.serviceport.dbaas.tcp" . }}
- targetPort: "sql"
- protocol: "TCP"
- name: "sql"
+{{- if .Values.ingress.tls }}
+ tls:
+ {{- range .Values.ingress.tls }}
+ - hosts:
+ {{- range .hosts }}
+ - {{ . }}
+ {{- end }}
+ secretName: {{ .secretName }}
+ {{- end }}
+{{- end }}
+ rules:
+ {{- range .Values.ingress.hosts }}
+ - host: {{ . }}
+ http:
+ paths:
+ - path: {{ $ingressPath }}
+ backend:
+ serviceName: {{ $fullName }}
+ servicePort: {{ $servicePort }}
+ {{- end }}
+{{- end }}