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
|
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
|
kc.sh -Djgroups.bind.port=7801 import --dir /tmp/backup
|
||||||
```
|
```
|
||||||
|
|
||||||
## Theme
|
## 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:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
- ApplyOutOfSyncOnly=true
|
- ApplyOutOfSyncOnly=true
|
||||||
# - ServerSideApply=true
|
|
||||||
{{- if .Values.keycloak.autosync }}
|
{{- if .Values.keycloak.autosync }}
|
||||||
automated:
|
automated:
|
||||||
prune: true
|
prune: true
|
||||||
# selfHeal: false
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -1,22 +1,9 @@
|
|||||||
replicaCount: 2
|
replicaCount: 2
|
||||||
|
|
||||||
# NOTE(mrtz): Hack for working with bitnami legacy registry
|
|
||||||
global:
|
|
||||||
security:
|
|
||||||
allowInsecureImages: true
|
|
||||||
image:
|
|
||||||
repository: bitnamilegacy/keycloak
|
|
||||||
|
|
||||||
production: true
|
|
||||||
|
|
||||||
proxy: edge
|
|
||||||
|
|
||||||
auth:
|
auth:
|
||||||
adminPassword: en to tre fire
|
adminPassword: en to tre fire
|
||||||
adminUser: admin
|
|
||||||
existingSecret: ""
|
existingSecret: ""
|
||||||
managementPassword: ""
|
managementPassword: ""
|
||||||
managementUser: manager
|
|
||||||
|
|
||||||
postgresql:
|
postgresql:
|
||||||
enabled: false
|
enabled: false
|
||||||
@@ -48,23 +35,9 @@ extraVolumes:
|
|||||||
name: theme
|
name: theme
|
||||||
|
|
||||||
ingress:
|
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
|
hostname: auth.oceanbox.io
|
||||||
ingressClassName: nginx
|
|
||||||
path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
selfSigned: false
|
|
||||||
servicePort: http
|
|
||||||
tls: true
|
|
||||||
|
|
||||||
adminIngress:
|
adminIngress:
|
||||||
enabled: false
|
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
@@ -93,8 +66,8 @@ keycloakConfigCli:
|
|||||||
|
|
||||||
initContainers: |
|
initContainers: |
|
||||||
- name: keycloak-theme-provider
|
- name: keycloak-theme-provider
|
||||||
image: docker.io/juselius/oceanbox-theme:1.2
|
image: git.oceanbox.io/platform/keycloak-theme:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
args:
|
args:
|
||||||
|
|||||||
@@ -1,22 +1,7 @@
|
|||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
|
|
||||||
# NOTE(mrtz): Hack for working with bitnami legacy registry
|
|
||||||
global:
|
|
||||||
security:
|
|
||||||
allowInsecureImages: true
|
|
||||||
image:
|
|
||||||
repository: bitnamilegacy/keycloak
|
|
||||||
|
|
||||||
production: true
|
|
||||||
|
|
||||||
proxy: edge
|
|
||||||
|
|
||||||
auth:
|
auth:
|
||||||
adminPassword: en to tre fire
|
adminPassword: en to tre fire
|
||||||
adminUser: admin
|
|
||||||
existingSecret: ""
|
|
||||||
managementPassword: ""
|
|
||||||
managementUser: manager
|
|
||||||
|
|
||||||
postgresql:
|
postgresql:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -24,32 +9,10 @@ postgresql:
|
|||||||
postgresPassword: "avatar mustiness economic"
|
postgresPassword: "avatar mustiness economic"
|
||||||
password: "punctured abstain facility"
|
password: "punctured abstain facility"
|
||||||
|
|
||||||
extraVolumeMounts:
|
|
||||||
- mountPath: /opt/bitnami/keycloak/themes/oceanbox
|
|
||||||
name: theme
|
|
||||||
|
|
||||||
extraVolumes:
|
|
||||||
- emptyDir: {}
|
|
||||||
name: theme
|
|
||||||
|
|
||||||
ingress:
|
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
|
hostname: auth.srv.oceanbox.io
|
||||||
ingressClassName: nginx
|
|
||||||
path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
selfSigned: false
|
|
||||||
servicePort: http
|
|
||||||
tls: true
|
|
||||||
|
|
||||||
adminIngress:
|
adminIngress:
|
||||||
enabled: false
|
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
@@ -64,18 +27,3 @@ adminIngress:
|
|||||||
selfSigned: false
|
selfSigned: false
|
||||||
servicePort: http
|
servicePort: http
|
||||||
tls: true
|
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