github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/keycloak/examples/postgresql/readme.md (about)

     1  # Keycloak.X with PostgreSQL
     2  
     3  This example shows how to configure Keycloak.X to use a PostgreSQL database.
     4  
     5  # Setup
     6  
     7  ## Add repository
     8  ```
     9  helm repo add bitnami https://charts.bitnami.com/bitnami
    10  helm repo add codecentric https://codecentric.github.io/helm-charts
    11  ```
    12  
    13  ## Update helm repos
    14  ```
    15  helm repo update
    16  ```
    17  
    18  ## Deploy a PostgreSQL database
    19  ```
    20  helm install keycloak-db bitnami/postgresql --values ./keycloak-db-values.yaml
    21  ```
    22  
    23  # Deploy Keycloak
    24  ```
    25  helm install keycloak codecentric/keycloakx --values ./keycloak-server-values.yaml
    26  ```
    27  
    28  # Access Keycloak
    29  Once Keycloak is running, forward the HTTP service port to 8080.
    30  
    31  ```
    32  kubectl port-forward service/keycloak-keycloakx-http 8080:80
    33  ```
    34  
    35  You can then access the Keycloak Admin-Console via `http://localhost:8080/auth` with
    36  username: `admin` and password: `secret`.
    37  
    38  # Remove Keycloak
    39  
    40  ```
    41  helm uninstall keycloak
    42  helm uninstall keycloak-db
    43  ```