Integrate Openness EAA
[multicloud/k8s.git] / kud / tests / openness / eaa / helm / eaa / templates / eaa-deployment.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: {{ .Values.deployment.eaa.name }}
5   namespace: {{ .Release.Namespace }}
6 spec:
7   replicas: 1
8   selector:
9     matchLabels:
10       name: {{ .Values.deployment.eaa.name }}
11   template:
12     metadata:
13       labels:
14         name: {{ .Values.deployment.eaa.name }}
15     spec:
16       initContainers:
17       - name: {{ .Values.initContainer.name }}
18         image: {{ .Values.initContainer.image }}
19         command: ["/bin/sh"]
20         args: ["-c", "pwd"]
21         imagePullPolicy: IfNotPresent
22         resources:
23           requests:
24             cpu: {{ .Values.initContainer.resource.requests.cpu }}
25           limits:
26             cpu: {{ .Values.initContainer.resource.limits.cpu }}
27             memory: {{ .Values.initContainer.resource.limits.memory }}
28         volumeMounts:
29         - name: {{ .Values.initContainer.volumeMounts.certsSec.name }}
30           mountPath: {{ .Values.initContainer.volumeMounts.certsSec.mountPath }}
31         - name: {{ .Values.initContainer.volumeMounts.certs.name }}
32           mountPath: {{ .Values.initContainer.volumeMounts.certs.mountPath }}
33       containers:
34       - name: {{ .Values.container.name }}
35         image: {{ .Values.container.image }}
36         imagePullPolicy: IfNotPresent
37         securityContext:
38           readOnlyRootFilesystem: true
39         resources:
40           requests:
41             cpu: {{ .Values.container.resource.requests.cpu }}
42           limits:
43             cpu: {{ .Values.container.resource.limits.cpu }}
44             memory: {{ .Values.container.resource.limits.memory }}
45         volumeMounts:
46         - name: {{ .Values.container.volumeMounts.certs.name }}
47           mountPath: {{ .Values.container.volumeMounts.certs.mountPath }}
48         - name: {{ .Values.container.volumeMounts.certsSec.name }}
49           mountPath: {{ .Values.container.volumeMounts.certsSec.mountPath }}
50       volumes:
51       - name: {{ .Values.volumes.certsSec.name }}
52         secret:
53           secretName: {{ .Values.volumes.certsSec.secret.secretName }}
54       - name: {{ .Values.volumes.certs.name }}
55         hostPath:
56           path: {{ .Values.volumes.certs.hostPath.path }}