-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
ext_keycloak.yaml
83 lines (75 loc) · 1.87 KB
/
ext_keycloak.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
replicas: 1
ingress:
enabled: true
ingressClassName: private-nginx
annotations:
"cert-manager.io/cluster-issuer": "letsencrypt-prod"
"nginx.ingress.kubernetes.io/proxy-body-size": "500m"
"nginx.ingress.kubernetes.io/affinity": "cookie"
"nginx.ingress.kubernetes.io/affinity-mode": "persistent"
rules:
- host: admin.accounts.jenkins.io
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- admin.accounts.jenkins.io
secretName: keycloak-cert
image:
# https://twitter.com/keycloak/status/1471815630655528968?s=20
# Until the 16.x versions are available for the helm chart
tag: 15.1.1
extraInitContainers: |
- name: theme-provider
image: jenkinsciinfra/keycloak-theme:0.0.1
imagePullPolicy: IfNotPresent
command:
- sh
args:
- -c
- |
echo "Copying theme..."
cp -R /jenkins/* /theme
volumeMounts:
- name: theme
mountPath: /theme
extraVolumeMounts: |
- name: theme
mountPath: /opt/jboss/keycloak/themes/jenkins
extraVolumes: |
- name: theme
emptyDir: {}
resources:
limits:
cpu: 1500m
memory: 2048Mi
requests:
cpu: 1500m
memory: 2048Mi
## Database Setup
# We already have a postgresql database
postgresql:
enabled: false
extraEnv: |
- name: PROXY_ADDRESS_FORWARDING
value: "true"
- name: JGROUPS_DISCOVERY_PROTOCOL
value: dns.DNS_PING
- name: JGROUPS_DISCOVERY_PROPERTIES
value: 'dns_query={{ include "keycloak.serviceDnsName" . }}'
- name: CACHE_OWNERS_COUNT
value: "2"
- name: CACHE_OWNERS_AUTH_SESSIONS_COUNT
value: "2"
- name: KEYCLOAK_STATISTICS
value: all
extraEnvFrom: |
- secretRef:
name: '{{ include "keycloak.fullname" . }}-db'
- secretRef:
name: '{{ include "keycloak.fullname" . }}-http'
service:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9990"