Skip to content

Instantly share code, notes, and snippets.

@hardyscc
Last active October 22, 2023 08:43
Show Gist options
  • Save hardyscc/7740492fcf97729276fc5fcc8868e3be to your computer and use it in GitHub Desktop.
Save hardyscc/7740492fcf97729276fc5fcc8868e3be to your computer and use it in GitHub Desktop.
Keycloak Installation on K8s

Install Keycloak

helmfile.yaml (keycloak v22)

releases:
  - name: production
    namespace: keycloak
    chart: oci://registry-1.docker.io/bitnamicharts/keycloak
    version: 17.1.1
    values:
      - auth:
          adminPassword: User12345
        proxy: edge
        ingress:
          enabled: true
          annotations:
            cert-manager.io/cluster-issuer: letsencrypt
          tls: true
          hostname: keycloak.apps.sysforce.com

helmfile.yaml (keycloak v15)

repositories:
 - name: bitnami-pre-2022
   url: https://raw.githubusercontent.com/bitnami/charts/eb5f9a9513d987b519f0ecd732e7031241c50328/bitnami

releases:
  - name: production
    namespace: keycloak
    chart: bitnami-pre-2022/keycloak
    version: 5.2.8
    values:
      - auth:
          adminPassword: User12345
        service:
          type: ClusterIP
        ingress:
          enabled: true
          annotations:
            cert-manager.io/cluster-issuer: letsencrypt
          tls: true
          hostname: keycloak.apps.xxx.com
        extraEnvVars:
          - name: KEYCLOAK_PROXY_ADDRESS_FORWARDING
            value: "true"
          - name: KEYCLOAK_FRONTEND_URL
            value: "https://keycloak.apps.xxx.com"
helmfile apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment