-
Notifications
You must be signed in to change notification settings - Fork 11
/
keycloak.yml
125 lines (124 loc) · 2.53 KB
/
keycloak.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
apiVersion: v1
kind: Namespace
metadata:
name: keycloak
---
apiVersion: v1
kind: Service
metadata:
name: keycloak
namespace: keycloak
labels:
app: keycloak
spec:
ports:
- name: http
port: 8080
targetPort: 8080
selector:
app: keycloak
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: keycloak
namespace: keycloak
labels:
app: keycloak
spec:
replicas: 1
selector:
matchLabels:
app: keycloak
template:
metadata:
labels:
app: keycloak
spec:
containers:
- name: keycloak
image: quay.io/keycloak/keycloak
args: ["start-dev"]
env:
- name: KEYCLOAK_URL
value: "keycloak.rfed.xx"
- name: KEYCLOAK_HOST
value: "keycloak.rfed.xx"
- name: KC_BOOTSTRAP_ADMIN_USERNAME
value: "admin"
- name: KC_BOOTSTRAP_ADMIN_PASSWORD
value: "Pa22word"
- name: PROXY_ADDRESS_FORWARDING
value: "true"
- name: KEYCLOAK_DISABLE-TRUST-MANAGER
value: "true"
- name: KC_PROXY
value: "edge"
ports:
- name: http
containerPort: 8080
volumeMounts:
- name: keycloak-data
mountPath: /opt/data # not used
subPath:
volumes:
- name: keycloak-data
persistentVolumeClaim:
claimName: keycloak
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: keycloak
namespace: keycloak
labels:
app: keycloak
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 500Mi
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
labels:
app: keycloak
name: keycloak
namespace: keycloak
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "keycloak"
nginx.ingress.kubernetes.io/session-cookie-expires: "172800"
nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"
spec:
rules:
- host: keycloak.rfed.xx
http:
paths:
- backend:
service:
name: keycloak
port:
number: 8080
path: /
pathType: ImplementationSpecific
tls:
- hosts:
- keycloak.rfed.xx
secretName: tls-ingress
---
# Navlinks
apiVersion: ui.cattle.io/v1
kind: NavLink
metadata:
name: keycloak
spec:
target: _blank
description: Keycloak
label: Keycloak
sideLabel: external
toURL: https://keycloak.rfed.io/admin/master/console/#/rancher