Created
May 1, 2022 10:25
-
-
Save tnishada/9b9ed247b2499c8ae928406fa5a9189f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: keycloak-deployment | |
namespace: keycloak | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: keycloak-deployment | |
template: | |
metadata: | |
labels: | |
app: keycloak-deployment | |
spec: | |
containers: | |
- name: kc-container | |
image: quay.io/keycloak/17.0.1 | |
command: ["/opt/keycloak/bin/kc.sh", "start"] | |
args: [" --auto-build","--http-relative-path=/auth", "--cache-stack=kubernetes" , "--db=postgres", "--db-url=jdbc:postgresql://db-location:5432/keycloakdb"] | |
env: | |
- name: jgroups.dns.query | |
value: headless-kc-service.keycloak.svc.cluster.local | |
# service-name.namespace-name.svc.cluster.local // read links below for more information | |
- name: KC_HOSTNAME | |
value: 'kc.hexadefence.com' | |
- name: KC_HTTP_ENABLED | |
value: 'true' | |
# SSL/TLS termination happens at the ingress | |
- name: KC_PROXY | |
value: edge | |
- name: KEYCLOAK_ADMIN | |
value: adminname | |
- name: KEYCLOAK_ADMIN_PASSWORD | |
value: admpassword | |
- name: KC_DB_USERNAME | |
value: postgres | |
- name: KC_DB_PASSWORD | |
value: password | |
- name: KC_DB_SCHEMA | |
value: public |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment