-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
helmrelease.yaml
111 lines (105 loc) · 2.86 KB
/
helmrelease.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: lldap
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.2.1
interval: 30m
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
values:
controllers:
lldap:
replicas: 2
strategy: RollingUpdate
annotations:
secret.reloader.stakater.com/reload: lldap-secret, lldap-db-secret
pod:
securityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
fsGroup: 1000
fsGroupChangePolicy: "OnRootMismatch"
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app.kubernetes.io/name: lldap
containers:
app:
image:
repository: ghcr.io/lldap/lldap
tag: v0.5.0
command:
- /app/lldap
args:
- run
env:
LLDAP_HTTP_PORT: &port 80
LLDAP_HTTP_URL: https://lldap.bjw-s.dev
LLDAP_LDAP_PORT: &ldapPort 389
LLDAP_LDAP_BASE_DN: dc=bjw-s,dc=dev
envFrom:
- secretRef:
name: lldap-secret
- secretRef:
name: lldap-db-secret
probes:
liveness: &probes
enabled: true
custom: true
spec:
httpGet:
path: /health
port: *port
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
readiness: *probes
startup:
enabled: true
custom: true
spec:
httpGet:
path: /health
port: *port
failureThreshold: 30
periodSeconds: 10
resources:
requests:
cpu: 10m
limits:
memory: 128Mi
service:
app:
controller: lldap
ports:
http:
port: *port
ldap:
port: *ldapPort
ingress:
app:
className: "internal-nginx"
hosts:
- host: lldap.bjw-s.dev
paths:
- path: /
service:
identifier: app
port: http
persistence:
data:
type: emptyDir