This repository has been archived by the owner on Nov 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathkubernetes.yaml
71 lines (71 loc) · 1.49 KB
/
kubernetes.yaml
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
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: keycloak-bulk
spec:
rules:
- host: keycloak-bulk.example.com
http:
paths:
- path: /
backend:
serviceName: keycloak-bulk
servicePort: 5000
---
apiVersion: v1
kind: Service
metadata:
name: keycloak-bulk
spec:
type: ClusterIP
ports:
- protocol: TCP
port: 5000
targetPort: 5000
selector:
app: keycloak-bulk
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: keycloak-bulk
spec:
replicas: 1
template:
metadata:
labels:
app: keycloak-bulk
spec:
containers:
- name: keycloak-bulk
image: int128/keycloak-bulk:1.0
env:
- name: OIDC_ISSUER
value: https://keycloak.example.com/auth/realms/YOUR_REALM
- name: OIDC_CLIENT_ID
value: keycloak-bulk
- name: OIDC_CLIENT_SECRET
value: 80a00dd6-7419-44a1-864d-ac8e44ebf68e
ports:
- name: http
containerPort: 5000
resources:
limits:
memory: 128Mi
requests:
memory: 128Mi
cpu: 500m
livenessProbe:
httpGet:
path: /healthz
port: 5000
initialDelaySeconds: 3
periodSeconds: 10
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /healthz
port: 5000
initialDelaySeconds: 3
periodSeconds: 10
timeoutSeconds: 5