forked from public/stack
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: keycloak
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: keycloak
|
|
args:
|
|
- start
|
|
- --db=postgres
|
|
env:
|
|
- name: KEYCLOAK_ADMIN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: keycloak-config
|
|
key: admin
|
|
- name: KEYCLOAK_ADMIN_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: keycloak-config
|
|
key: admin_password
|
|
- name: KC_DB_USERNAME
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: database-configuration
|
|
key: name
|
|
- name: KC_DB_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: database-configuration
|
|
key: password
|
|
- name: KC_DB_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: database-configuration
|
|
key: jdbc_url
|
|
- name: KC_HOSTNAME_URL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: keycloak-config
|
|
key: KC_HOSTNAME_URL
|