65 lines
1.7 KiB
YAML
65 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include ".fullname" . }}
|
|
labels:
|
|
app: {{ include ".fullname" . }}
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: {{ include ".fullname" . }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ include ".fullname" . }}
|
|
spec:
|
|
{{- with .Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
containers:
|
|
- name: {{ include ".fullname" . }}
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
|
|
# Limit rights
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities: {}
|
|
privileged: false
|
|
readOnlyRootFilesystem: false
|
|
runAsNonRoot: true
|
|
runAsUser: 1111
|
|
|
|
volumeMounts:
|
|
- name: config-volume
|
|
mountPath: /config/config.yaml
|
|
readOnly: true
|
|
subPath: config.yaml
|
|
- name: secrets
|
|
mountPath: /config/data.json
|
|
readOnly: true
|
|
subPath: data.json
|
|
|
|
env:
|
|
# Aggregator settings
|
|
- name: LOGGER_PRINTLEVEL
|
|
value: {{ .Values.config.logLevel }}
|
|
|
|
# Limit provided ressources
|
|
resources:
|
|
{{- toYaml .Values.resources | nindent 10 }}
|
|
volumes:
|
|
- name: config-volume
|
|
configMap:
|
|
name: {{ include ".fullname" . }}-config
|
|
items:
|
|
- key: config.yaml
|
|
path: config.yaml
|
|
- name: secrets
|
|
secret:
|
|
secretName: {{ .Values.dataSecret }}
|
|
items:
|
|
- key: data.json
|
|
path: data.json |