blob: 571badf531aa13e39c987b040aeafd7a774e779a [file] [log] [blame]
ktimoney6be05292022-03-02 12:53:14 +00001apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: rapps-keycloak-mgr-deployment
5 namespace: default
6 labels:
7 app: rapps-keycloak-mgr
8spec:
9 selector:
10 matchLabels:
11 app: rapps-keycloak-mgr
12 template:
13 metadata:
14 labels:
15 app: rapps-keycloak-mgr
16 version: v1
17 spec:
18 containers:
19 - name: rapps-keycloak-mgr
20 image: ktimoney/rapps-keycloak-mgr
21 imagePullPolicy: IfNotPresent
22 ports:
23 - containerPort: 9000
24 resources:
25 limits:
26 memory: 256Mi
27 cpu: "250m"
28 requests:
29 memory: 128Mi
30 cpu: "80m"
ktimoney8ead72a2022-04-12 15:10:10 +010031 volumeMounts:
ktimoney90fcec92022-04-29 15:46:50 +010032 - name: certsdir
ktimoney8ead72a2022-04-12 15:10:10 +010033 mountPath: /certs
ktimoney90fcec92022-04-29 15:46:50 +010034 readOnly: true
ktimoney8ead72a2022-04-12 15:10:10 +010035 volumes:
ktimoney90fcec92022-04-29 15:46:50 +010036 - name: certsdir
37 hostPath:
38 # Ensure the file directory is created.
39 path: /var/rapps/certs
40 type: DirectoryOrCreate
ktimoney6be05292022-03-02 12:53:14 +000041 serviceAccountName: helm-app
42 replicas: 1
43---
44apiVersion: v1
45kind: Service
46metadata:
47 name: rapps-keycloak-mgr
48 namespace: default
49spec:
50 selector:
51 app: rapps-keycloak-mgr
52 ports:
53 - protocol: TCP
54 port: 80
55 targetPort: 9000
56 nodePort: 31600
57 type: NodePort