forked from clemenko/k8s_yaml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
keycloak_cert.yml
101 lines (100 loc) · 6.13 KB
/
keycloak_cert.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
apiVersion: v1
kind: Namespace
metadata:
name: keycloak
labels:
istio-injection: disabled
---
apiVersion: v1
kind: Service
metadata:
name: keycloak
namespace: keycloak
labels:
app: keycloak
spec:
ports:
- name: http
port: 8080
targetPort: 8080
- name: https
port: 8443
targetPort: 8443
selector:
app: keycloak
type: LoadBalancer
---
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:legacy
# args: ["start"]
env:
- name: KEYCLOAK_URL
value: "keycloak.rfed.io"
- name: KEYCLOAK_HOST
value: "keycloak.rfed.io"
- name: KEYCLOAK_USER
value: "admin"
- name: KEYCLOAK_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
- name: https
containerPort: 8443
readinessProbe:
httpGet:
path: /auth/realms/master
port: 8080
# add PVC
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
name: keycloak
namespace: keycloak
spec:
entryPoints:
- tcp
routes:
- match: HostSNI(`keycloak.rfed.io`)
services:
- name: keycloak
port: 8080
tls:
# passthrough: true
domains:
- main: keycloak.rfed.io
secretName: keycloak-tls
---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