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" |
ktimoney | 8ead72a | 2022-04-12 15:10:10 +0100 | [diff] [blame] | 31 | volumeMounts: |
ktimoney | 90fcec9 | 2022-04-29 15:46:50 +0100 | [diff] [blame] | 32 | - name: certsdir |
ktimoney | 8ead72a | 2022-04-12 15:10:10 +0100 | [diff] [blame] | 33 | mountPath: /certs |
ktimoney | 90fcec9 | 2022-04-29 15:46:50 +0100 | [diff] [blame] | 34 | readOnly: true |
ktimoney | 8ead72a | 2022-04-12 15:10:10 +0100 | [diff] [blame] | 35 | volumes: |
ktimoney | 90fcec9 | 2022-04-29 15:46:50 +0100 | [diff] [blame] | 36 | - name: certsdir |
| 37 | hostPath: |
| 38 | # Ensure the file directory is created. |
| 39 | path: /var/rapps/certs |
| 40 | type: DirectoryOrCreate |
ktimoney | 6be0529 | 2022-03-02 12:53:14 +0000 | [diff] [blame] | 41 | serviceAccountName: helm-app |
| 42 | replicas: 1 |
| 43 | --- |
| 44 | apiVersion: v1 |
| 45 | kind: Service |
| 46 | metadata: |
| 47 | name: rapps-keycloak-mgr |
| 48 | namespace: default |
| 49 | spec: |
| 50 | selector: |
| 51 | app: rapps-keycloak-mgr |
| 52 | ports: |
| 53 | - protocol: TCP |
| 54 | port: 80 |
| 55 | targetPort: 9000 |
| 56 | nodePort: 31600 |
| 57 | type: NodePort |