lldap: add new service for LDAP
This commit is contained in:
		
							
								
								
									
										38
									
								
								kubernetes/lldap-helm-chart/templates/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								kubernetes/lldap-helm-chart/templates/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,38 @@ | ||||
| {{- if .Values.ingress.enabled -}} | ||||
| apiVersion: networking.k8s.io/v1 | ||||
| kind: Ingress | ||||
| metadata: | ||||
|   name: {{ .Values.ingress.name | quote }} | ||||
|   namespace: {{ .Values.namespace | quote }} | ||||
|   {{- with .Values.ingress.annotations }} | ||||
|   annotations: | ||||
|     {{- toYaml . | nindent 4 }} | ||||
|   {{- end }} | ||||
|   {{- with .Values.ingress.labels }} | ||||
|   labels: | ||||
|     {{- toYaml . | nindent 4 }} | ||||
|   {{- end }} | ||||
| spec: | ||||
|   ingressClassName: {{ .Values.ingress.ingressClassName | quote }} | ||||
|   rules: | ||||
|     - host: {{ .Values.ingress.hosts.host | quote }} | ||||
|       http: | ||||
|         paths: | ||||
|           - path: {{ .Values.ingress.hosts.paths.path | quote }} | ||||
|             pathType: {{ .Values.ingress.hosts.paths.pathType | default "Prefix" | quote }} | ||||
|             backend: | ||||
|               service: | ||||
|                 name: {{ $.Values.service.webui.name | quote }} | ||||
|                 port: | ||||
|                   number: {{ $.Values.service.webui.ports.port | default 17170 }} | ||||
|   {{- if .Values.ingress.tls }} | ||||
|   tls: | ||||
|     {{- range .Values.ingress.tls }} | ||||
|     - hosts: | ||||
|         {{- range .hosts }} | ||||
|         - {{ . | quote }} | ||||
|         {{- end }} | ||||
|       secretName: {{ .secretName | quote }} | ||||
|     {{- end }} | ||||
|   {{- end }} | ||||
| {{- end }} | ||||
		Reference in New Issue
	
	Block a user