ktimoney | 6be0529 | 2022-03-02 12:53:14 +0000 | [diff] [blame^] | 1 | apiVersion: apps/v1 |
2 | kind: Deployment | ||||
3 | metadata: | ||||
4 | name: rapps-keycloak-mgr-deployment | ||||
5 | namespace: default | ||||
6 | labels: | ||||
7 | app: rapps-keycloak-mgr | ||||
8 | spec: | ||||
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" | ||||
31 | serviceAccountName: helm-app | ||||
32 | replicas: 1 | ||||
33 | --- | ||||
34 | apiVersion: v1 | ||||
35 | kind: Service | ||||
36 | metadata: | ||||
37 | name: rapps-keycloak-mgr | ||||
38 | namespace: default | ||||
39 | spec: | ||||
40 | selector: | ||||
41 | app: rapps-keycloak-mgr | ||||
42 | ports: | ||||
43 | - protocol: TCP | ||||
44 | port: 80 | ||||
45 | targetPort: 9000 | ||||
46 | nodePort: 31600 | ||||
47 | type: NodePort |