forked from sighupio/fury-kubernetes-keycloak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
external-cache.yml
42 lines (41 loc) · 1.31 KB
/
external-cache.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright (c) 2021 SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: keycloak
spec:
template:
spec:
containers:
- name: keycloak
env:
- name: KUBERNETES_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: JAVA_OPTS
value: >-
-server
-Djava.net.preferIPv4Stack=true
-Djava.awt.headless=true
-Djboss.default.jgroups.stack=kubernetes
-Djboss.node.name=$(POD_NAME)
-Djboss.tx.node.id=$(POD_NAME)
-Djboss.site.name=$(KUBERNETES_NAMESPACE)
-Dremote.cache.host=infinispan-server-hotrod
-Dkeycloak.connectionsInfinispan.hotrodProtocolVersion=2.8
volumeMounts:
- name: remote-infinispan
subPath: remote-infinispan.cli
mountPath: /opt/jboss/startup-scripts/remote-infinispan.cli
volumes:
- name: remote-infinispan
configMap:
name: remote-infinispan