Verified Commit 41df2c36 authored by Hugo's avatar Hugo
Browse files

with config

parent d5d38ecb
......@@ -11,6 +11,7 @@ $ kubectl apply -k https://git.indie.host/indiehost/tech/infrastructure/keycloak
### Kustomization
```yaml
# kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
......@@ -21,3 +22,28 @@ images:
resources:
- https://git.indie.host/indiehost/tech/infrastructure/keycloak-kustomize.git
```
### Kustomization with cconfig
```conf
# keycloak.config
KEYCLOAK_USER=admin
KEYCLOAK_PASSWORD=xxx
```
```yaml
# kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app.kubernetes.io/instance: id-liiib-re
images:
- name: libresh/keycloak
newTag: v15
resources:
- https://git.indie.host/indiehost/tech/infrastructure/keycloak-kustomize.git
secretGenerator:
- name: keycloak-config
envs:
- keycloak.config
```
......@@ -52,6 +52,10 @@ spec:
value: "true"
- name: KEYCLOAK_STATISTICS
value: all
envFrom:
- secretRef:
name: keycloak-config
optional: true
ports:
- name: http
containerPort: 8080
......
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app.kubernetes.io/name: keycloak
app.kubernetes.io/part-of: keycloak
app.kubernetes.io/name: keycloak
app.kubernetes.io/part-of: keycloak
resources:
- ./db
- ./app
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment