mirror of
				https://github.com/optim-enterprises-bv/homelab.git
				synced 2025-10-31 09:57:59 +00:00 
			
		
		
		
	test(lldap): enable ldaps
This commit is contained in:
		
							
								
								
									
										16
									
								
								k8s/infra/auth/lldap/cert.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								k8s/infra/auth/lldap/cert.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | |||||||
|  | apiVersion: cert-manager.io/v1 | ||||||
|  | kind: Certificate | ||||||
|  | metadata: | ||||||
|  |   name: cert | ||||||
|  |   namespace: lldap | ||||||
|  | spec: | ||||||
|  |   dnsNames: | ||||||
|  |     - lldap.stonegarden.dev | ||||||
|  |   issuerRef: | ||||||
|  |     group: cert-manager.io | ||||||
|  |     kind: ClusterIssuer | ||||||
|  |     name: cloudflare-cluster-issuer | ||||||
|  |   secretName: cert | ||||||
|  |   usages: | ||||||
|  |     - digital signature | ||||||
|  |     - key encipherment | ||||||
| @@ -56,6 +56,16 @@ spec: | |||||||
|           volumeMounts: |           volumeMounts: | ||||||
|             - name: lldap-data |             - name: lldap-data | ||||||
|               mountPath: /data |               mountPath: /data | ||||||
|  |             - name: cert | ||||||
|  |               mountPath: /cert | ||||||
|       volumes: |       volumes: | ||||||
|  |         - name: cert | ||||||
|  |           secret: | ||||||
|  |             secretName: cert | ||||||
|  |             items: | ||||||
|  |               - key: tls.key | ||||||
|  |                 path: tls.key | ||||||
|  |               - key: tls.crt | ||||||
|  |                 path: tls.crt | ||||||
|         - name: lldap-data |         - name: lldap-data | ||||||
|           emptyDir: { } |           emptyDir: { } | ||||||
|   | |||||||
| @@ -12,6 +12,9 @@ configMapGenerator: | |||||||
|     namespace: lldap |     namespace: lldap | ||||||
|     literals: |     literals: | ||||||
|       - LLDAP_HTTP_URL="https://lldap.stonegarden.dev" |       - LLDAP_HTTP_URL="https://lldap.stonegarden.dev" | ||||||
|  |       - LLDAP_LDAPS_OPTIONS__ENABLED="true" | ||||||
|  |       - LLDAP_LDAPS_OPTIONS__CERT_FILE="/cert/tls.crt" | ||||||
|  |       - LLDAP_LDAPS_OPTIONS__KEY_FILE="/cert/tls.key" | ||||||
|   - name: bootstrap-env |   - name: bootstrap-env | ||||||
|     namespace: lldap |     namespace: lldap | ||||||
|     literals: |     literals: | ||||||
| @@ -27,6 +30,7 @@ resources: | |||||||
|   - ns.yaml |   - ns.yaml | ||||||
|   - svc.yaml |   - svc.yaml | ||||||
|   - cnpg-db.yaml |   - cnpg-db.yaml | ||||||
|  |   - cert.yaml | ||||||
|   - lldap-credentials.yaml |   - lldap-credentials.yaml | ||||||
|   - lldap-config.yaml |   - lldap-config.yaml | ||||||
|   - smtp-credentials.yaml |   - smtp-credentials.yaml | ||||||
|   | |||||||
| @@ -3,8 +3,10 @@ kind: Service | |||||||
| metadata: | metadata: | ||||||
|   name: lldap |   name: lldap | ||||||
|   namespace: lldap |   namespace: lldap | ||||||
|  |   annotations: | ||||||
|  |     io.cilium/lb-ipam-ips: 192.168.1.242 | ||||||
| spec: | spec: | ||||||
|   type: ClusterIP |   type: LoadBalancer | ||||||
|   selector: |   selector: | ||||||
|     app: lldap |     app: lldap | ||||||
|   ports: |   ports: | ||||||
| @@ -14,3 +16,6 @@ spec: | |||||||
|     - name: ldap |     - name: ldap | ||||||
|       port: 389 |       port: 389 | ||||||
|       targetPort: ldap |       targetPort: ldap | ||||||
|  |     - name: ldaps | ||||||
|  |       port: 636 | ||||||
|  |       targetPort: ldaps | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Vegard Hagen
					Vegard Hagen