❗ Additional information can be found at https://phasetwo.io/docs/hosting/kubernetes/
🚀 Try it for free in the new Phase Two keycloak managed service.
🐛 DO NOT USE this chart We recommend the use of the Codecentric keycloakx chart with the
image.repository
var set toquay.io/phasetwo/phasetwo-keycloak
and theargs
var set to--spi-email-template-provider=freemarker-plus-mustache --spi-email-template-freemarker-plus-mustache-enabled=true --spi-theme-cache-themes=false
. We encourage you to use their chart, and report any problems here when using our Docker images in conjunction with it. Please do not use our chart until further notice.
Phase Two enhanced Keycloak, ready to launch on Kubernetes using Kubernetes Helm. This chart library was initially forked from Bitnami and modified to deliver custom Phase Two enhanced Keycloak images.
$ helm repo add phasetwo https://p2-inc.github.io/helm-charts
$ helm install keycloak --namespace keycloak --create-namespace phasetwo/keycloak
$ kubectl get all,ing -n keycloak
$ helm repo update
$ helm upgrade keycloak --namespace keycloak phasetwo/keycloak
$ kubectl get all,ing -n keycloak
To install Keycloak Metrics Exporter, Prometheus, Grafana, and Loki using Helm charts, you can use the following commands:
-
Update your values.yaml file to enable
metrics > enabled: true
-
Upgrade your existing helm release:
helm upgrade -i keycloak --namespace keycloak phasetwo/keycloak
- Add the Helm chart repository for Prometheus, Grafana, and Loki:
helm repo add grafana https://grafana.github.io/helm-charts
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm search repo grafana
helm search repo prometheus-community
- Use Helm to install the Prometheus, Grafana, and Loki charts:
helm install prometheus --namespace grafana --create-namespace prometheus-community/prometheus
helm install grafana --namespace grafana --create-namespace grafana/grafana --set persistence.enabled=true
helm install loki --namespace grafana --create-namespace grafana/loki
Please note that the above commands are just examples and you may want to customize the installation by passing in different values for the different chart options available.
You can also use the command helm list
to check the status of the installed charts, and helm delete my-release
to delete the specific installation.
- If you're running Kubernetes locally (eg. microk8s/minikube) and postgres is not starting, you may need to disable huge pages.
- Kubernetes 1.19+
- Helm 3.2.0+
For setting up Kubernetes on cloud platforms or bare-metal servers refer to the Kubernetes getting started guide.
Helm is a tool for managing Kubernetes charts. Charts are packages of pre-configured Kubernetes resources.
To install Helm, refer to the Helm install guide and ensure that the helm
binary is in the PATH
of your shell.
The following command allows you to download and install all the charts from this repository:
$ helm repo add phasetwo https://p2-inc.github.io/helm-charts
Once you have installed the Helm client, you can deploy a Bitnami Helm Chart into a Kubernetes cluster.
Please refer to the Quick Start guide if you wish to get running in just a few commands, otherwise the Using Helm Guide provides detailed instructions on how to use the Helm client to manage packages on your Kubernetes cluster.
Useful Helm Client Commands:
- View available charts:
helm search repo
- Install a chart:
helm install my-release phasetwo/<package-name>
- Upgrade your application:
helm upgrade
Copyright © 2023 Phase Two, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.