aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/ves-collector/_copyEtc.tpl
blob: a3a724741f73d5a1542b05eca84f75080f06fa20 (plain)
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
{{- define "dcaegen2-ves-collector.vesCollectorCopyEtc" -}}
- name: dcae-ves-collector-copy-etc
  command: ["cp", "-R", "/opt/app/VESCollector/etc/.", "/opt/app/VESCollector/etc_rw/"]
  image: {{ default ( include "repositoryGenerator.repository" . ) .Values.imageRepositoryOverride }}/{{ .Values.image }}
  imagePullPolicy: Always
  resources:
    limits:
      cpu: {{ .Values.copyEtc.resources.limits.cpu }}
      memory: {{ .Values.copyEtc.resources.limits.memory }}
    requests:
      cpu: {{ .Values.copyEtc.resources.requests.cpu }}
      memory: {{ .Values.copyEtc.resources.requests.memory }}
  securityContext:
    allowPrivilegeEscalation: false
    capabilities:
      drop:
        - ALL
        - CAP_NET_RAW
    readOnlyRootFilesystem: true
    runAsNonRoot: true
  terminationMessagePath: /dev/termination-log
  terminationMessagePolicy: File
  volumeMounts:
    - mountPath: /opt/app/VESCollector/etc_rw
      name: ves-collector-etc
{{- end }}