Skip to content

Commit

Permalink
HA guide changes
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Hajas <mhajas@redhat.com>
  • Loading branch information
mhajas authored and ahus1 committed Aug 20, 2024
1 parent bb3653b commit 05750ad
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 22 deletions.
8 changes: 8 additions & 0 deletions doc/kubernetes/collector/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ helm template --debug ${STARTDIR}/../../../provision/minikube/keycloak \
--set dbUrl=\<AWS_AURORA_URL_HERE\> \
--set keycloakImage=\<KEYCLOAK_IMAGE_HERE\> \
--set useAWSJDBCWrapper=true \
--set multiSite=true \
--set keycloakDocumentation=true \
--set infinispan.customConfig=false \
--set infinispan.remoteStore.enabled=false \
--set infinispan.remoteStore.host=infinispan.keycloak.svc \
--set infinispan.remoteStore.password=secure_password \
--set infinispan.site=keycloak \
--set jvmDebug=false \
--set cryostat=false \
--set instances=3 \
Expand All @@ -39,6 +46,7 @@ helm template --debug ${STARTDIR}/../../../provision/minikube/keycloak \
--set dbUrl=\<AWS_AURORA_URL_HERE\> \
--set keycloakImage=\<KEYCLOAK_IMAGE_HERE\> \
--set useAWSJDBCWrapper=true \
--set multiSite=true \
--set jvmDebug=false \
--set cryostat=false \
--set heapInitMB=64 \
Expand Down
1 change: 0 additions & 1 deletion provision/infinispan/Utils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ tasks:
--set alertmanager.webhook.url={{ .ACCELERATOR_WEBHOOK_URL }}
--set alertmanager.webhook.username={{ .ACCELERATOR_WEBHOOK_USERNAME }}
--set alertmanager.webhook.password={{ .ACCELERATOR_WEBHOOK_PASSWORD }}
{{if eq .KC_KC25_MODE "true"}}--values ispn-helm/kc-25-caches.yaml{{end}}
./ispn-helm
preconditions:
- test -f ".task/kubecfg/{{.ROSA_CLUSTER_NAME}}"
Expand Down
17 changes: 0 additions & 17 deletions provision/infinispan/ispn-helm/kc-25-caches.yaml

This file was deleted.

27 changes: 23 additions & 4 deletions provision/minikube/keycloak/templates/keycloak.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,12 @@ spec:
- name: tracing-sampler-type
value: "parentbased_traceidratio"
{{- end }}
{{- if .Values.persistentSessions }}
- name: spi-user-sessions-infinispan-use-caches
value: "false"
{{- end }}
# end::keycloak[]
- name: http-metrics-histograms-enabled
value: 'true'
- name: http-metrics-slos
value: '5,10,25,50,250,500'
# tag::keycloak[]
{{- if or (eq .Values.database "infinispan") (eq .Values.database "postgres+infinispan") }}
- name: storage-hotrod-host
value: infinispan
Expand Down Expand Up @@ -145,6 +143,27 @@ spec:
{{ end }}
# end::keycloak-ispn[]
{{- end }}
{{- if .Values.keycloakDocumentation }}
# end::keycloak[]
# This block is just for documentation purposes as we need both versions of Infinispan config, with and without numbers to corresponding options
# tag::keycloak[]
- name: cache-remote-host
value: {{ quote .Values.infinispan.remoteStore.host }}
- name: cache-remote-port
value: {{ quote .Values.infinispan.remoteStore.port }}
- name: cache-remote-username
secret:
name: remote-store-secret
key: username
- name: cache-remote-password
secret:
name: remote-store-secret
key: password
{{- if .Values.infinispan.site }}
- name: spi-connections-infinispan-quarkus-site-name
value: {{ .Values.infinispan.site }}
{{ end }}
{{- end }}
{{- if .Values.infinispan.jgroupsTls }}
- name: cache-embedded-mtls-enabled
value: "true"
Expand Down
1 change: 1 addition & 0 deletions provision/minikube/keycloak/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ predefinedAdmin: true
persistentSessions: false
externalInfinispan: false
multiSite: false
keycloakDocumentation: false
infinispan:
jgroupsTls: false
customConfig: false
Expand Down

0 comments on commit 05750ad

Please sign in to comment.