-
Notifications
You must be signed in to change notification settings - Fork 13
/
k8s-keycloak.yaml
53 lines (53 loc) · 1.19 KB
/
k8s-keycloak.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: keycloak
labels:
name: keycloak
app: keycloak
spec:
replicas: 1
selector:
matchLabels:
app: keycloak
template:
metadata:
name: keycloak
labels:
app: keycloak
name: keycloak
spec:
restartPolicy: Always
containers:
- name: keycloak
image: jboss/keycloak:6.0.1
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
protocol: TCP
resources:
requests:
cpu: 200m
memory: 512Mi
limits:
cpu: 1
memory: 1024Mi
env:
- name: KEYCLOAK_USER
value: "admin"
- name: KEYCLOAK_PASSWORD
value: "admin"
- name: DB_VENDOR
value: "postgres"
- name: DB_USER
value: "keycloak"
- name: DB_PASSWORD
value: "password"
- name: DB_ADDR
value: "keycloakdb-postgresql"
- name: DB_PORT
value: "5432"
- name: DB_DATABASE
value: "keycloakdb"
- name: PROXY_ADDRESS_FORWARDING
value: "true"