fix(keycloak): Use theme from gitea
This commit is contained in:
@@ -8,6 +8,7 @@ kubectl cp -n keycloak oceanbox-realm.json prod-keycloak-0:/tmp/backup/oceanbox-
|
||||
kubectl cp -n keycloak oceanbox-users-0.json prod-keycloak-0:/tmp/backup/oceanbox-users-0.json
|
||||
kc.sh -Djgroups.bind.port=7801 import --dir /tmp/backup
|
||||
```
|
||||
|
||||
## Theme
|
||||
|
||||
Our keycloak theme is inserted using the image provided [here](https://gitlab.com/oceanbox/keycloak-theme)
|
||||
The keycloak theme is maintained at [git.oceanbox.io/platform/keycloak-theme](https://git.oceanbox.io/platform/keycloak-theme) and is deployed via an init container using the `git.oceanbox.io/platform/keycloak-theme` image.
|
||||
|
||||
@@ -33,10 +33,8 @@ spec:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- ApplyOutOfSyncOnly=true
|
||||
# - ServerSideApply=true
|
||||
{{- if .Values.keycloak.autosync }}
|
||||
automated:
|
||||
prune: true
|
||||
# selfHeal: false
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -1,22 +1,9 @@
|
||||
replicaCount: 2
|
||||
|
||||
# NOTE(mrtz): Hack for working with bitnami legacy registry
|
||||
global:
|
||||
security:
|
||||
allowInsecureImages: true
|
||||
image:
|
||||
repository: bitnamilegacy/keycloak
|
||||
|
||||
production: true
|
||||
|
||||
proxy: edge
|
||||
|
||||
auth:
|
||||
adminPassword: en to tre fire
|
||||
adminUser: admin
|
||||
existingSecret: ""
|
||||
managementPassword: ""
|
||||
managementUser: manager
|
||||
|
||||
postgresql:
|
||||
enabled: false
|
||||
@@ -48,23 +35,9 @@ extraVolumes:
|
||||
name: theme
|
||||
|
||||
ingress:
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||
nginx.ingress.kubernetes.io/backend-protocol: HTTP
|
||||
nginx.ingress.kubernetes.io/proxy-buffer-size: 128k
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||
enabled: true
|
||||
hostname: auth.oceanbox.io
|
||||
ingressClassName: nginx
|
||||
path: /
|
||||
pathType: ImplementationSpecific
|
||||
selfSigned: false
|
||||
servicePort: http
|
||||
tls: true
|
||||
|
||||
adminIngress:
|
||||
enabled: false
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||
@@ -93,8 +66,8 @@ keycloakConfigCli:
|
||||
|
||||
initContainers: |
|
||||
- name: keycloak-theme-provider
|
||||
image: docker.io/juselius/oceanbox-theme:1.2
|
||||
imagePullPolicy: Always
|
||||
image: git.oceanbox.io/platform/keycloak-theme:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
command:
|
||||
- sh
|
||||
args:
|
||||
|
||||
@@ -1,22 +1,7 @@
|
||||
replicaCount: 1
|
||||
|
||||
# NOTE(mrtz): Hack for working with bitnami legacy registry
|
||||
global:
|
||||
security:
|
||||
allowInsecureImages: true
|
||||
image:
|
||||
repository: bitnamilegacy/keycloak
|
||||
|
||||
production: true
|
||||
|
||||
proxy: edge
|
||||
|
||||
auth:
|
||||
adminPassword: en to tre fire
|
||||
adminUser: admin
|
||||
existingSecret: ""
|
||||
managementPassword: ""
|
||||
managementUser: manager
|
||||
|
||||
postgresql:
|
||||
enabled: true
|
||||
@@ -24,32 +9,10 @@ postgresql:
|
||||
postgresPassword: "avatar mustiness economic"
|
||||
password: "punctured abstain facility"
|
||||
|
||||
extraVolumeMounts:
|
||||
- mountPath: /opt/bitnami/keycloak/themes/oceanbox
|
||||
name: theme
|
||||
|
||||
extraVolumes:
|
||||
- emptyDir: {}
|
||||
name: theme
|
||||
|
||||
ingress:
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||
nginx.ingress.kubernetes.io/backend-protocol: HTTP
|
||||
nginx.ingress.kubernetes.io/proxy-buffer-size: 128k
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||
enabled: true
|
||||
hostname: auth.srv.oceanbox.io
|
||||
ingressClassName: nginx
|
||||
path: /
|
||||
pathType: ImplementationSpecific
|
||||
selfSigned: false
|
||||
servicePort: http
|
||||
tls: true
|
||||
|
||||
adminIngress:
|
||||
enabled: false
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||
@@ -64,18 +27,3 @@ adminIngress:
|
||||
selfSigned: false
|
||||
servicePort: http
|
||||
tls: true
|
||||
|
||||
initContainers: |
|
||||
- name: keycloak-theme-provider
|
||||
image: docker.io/juselius/oceanbox-theme:1.2
|
||||
imagePullPolicy: Always
|
||||
command:
|
||||
- sh
|
||||
args:
|
||||
- -c
|
||||
- |
|
||||
echo "Copying theme..."
|
||||
cp -R /theme/* /keycloak/themes/oceanbox
|
||||
volumeMounts:
|
||||
- name: theme
|
||||
mountPath: /keycloak/themes/oceanbox
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
# NOTE(mrtz): Hack for working with bitnami legacy registry
|
||||
global:
|
||||
security:
|
||||
allowInsecureImages: true
|
||||
image:
|
||||
repository: bitnamilegacy/keycloak
|
||||
|
||||
production: true
|
||||
proxy: edge
|
||||
|
||||
auth:
|
||||
adminUser: admin
|
||||
managementUser: manager
|
||||
|
||||
ingress:
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||
nginx.ingress.kubernetes.io/backend-protocol: HTTP
|
||||
nginx.ingress.kubernetes.io/proxy-buffer-size: 128k
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||
enabled: true
|
||||
ingressClassName: nginx
|
||||
path: /
|
||||
pathType: ImplementationSpecific
|
||||
selfSigned: false
|
||||
servicePort: http
|
||||
tls: true
|
||||
|
||||
adminIngress:
|
||||
enabled: false
|
||||
Reference in New Issue
Block a user