Skip to content

Instantly share code, notes, and snippets.

@hardyscc
Last active July 5, 2025 08:33
Show Gist options
  • Select an option

  • Save hardyscc/7740492fcf97729276fc5fcc8868e3be to your computer and use it in GitHub Desktop.

Select an option

Save hardyscc/7740492fcf97729276fc5fcc8868e3be to your computer and use it in GitHub Desktop.
Keycloak Installation on K8s

Install Keycloak

helmfile.yaml (keycloak v26)

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

Create user required email, first name & last name in order to fully setup & activate.

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:
          adminUser: user
          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