65 lines
1.7 KiB
YAML
65 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: keycloak
|
|
namespace: keycloak
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: keycloak
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: keycloak
|
|
spec:
|
|
containers:
|
|
- name: keycloak
|
|
image: quay.io/keycloak/keycloak:26.0.2
|
|
args: ["start"]
|
|
env:
|
|
- name: KEYCLOAK_ADMIN
|
|
value: "admin"
|
|
- name: KEYCLOAK_ADMIN_PASSWORD
|
|
value: "admin"
|
|
- name: KC_PROXY
|
|
value: "edge"
|
|
- name: KC_DB
|
|
value: "postgres"
|
|
- name: KC_DB_URL_HOST
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: keycloak-pg-cluster-app
|
|
key: host
|
|
- name: KC_DB_URL_PORT
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: keycloak-pg-cluster-app
|
|
key: port
|
|
- name: KC_DB_URL_DATABASE
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: keycloak-pg-cluster-app
|
|
key: dbname
|
|
- name: KC_DB_USERNAME
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: keycloak-pg-cluster-app
|
|
key: user
|
|
- name: KC_DB_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: keycloak-pg-cluster-app
|
|
key: password
|
|
- name: KC_PROXY_HEADERS
|
|
value: "xforwarded"
|
|
- name: KC_HOSTNAME
|
|
value: "keycloak.mziesel.nl"
|
|
ports:
|
|
- name: web
|
|
containerPort: 8080
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /realms/master
|
|
port: 8080
|