You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.9 KiB
60 lines
1.9 KiB
4 years ago
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: {{ include "aws-efs-csi-pv-provisioner.fullname" . }}
|
||
|
labels:
|
||
|
{{- include "aws-efs-csi-pv-provisioner.labels" . | nindent 4 }}
|
||
|
spec:
|
||
|
replicas: {{ .Values.replicaCount }}
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
{{- include "aws-efs-csi-pv-provisioner.selectorLabels" . | nindent 6 }}
|
||
|
template:
|
||
|
metadata:
|
||
|
{{- with .Values.podAnnotations }}
|
||
|
annotations:
|
||
|
{{- toYaml . | nindent 8 }}
|
||
|
{{- end }}
|
||
|
labels:
|
||
|
{{- include "aws-efs-csi-pv-provisioner.selectorLabels" . | nindent 8 }}
|
||
|
spec:
|
||
|
{{- if .Values.priorityClassName }}
|
||
|
priorityClassName: {{ .Values.priorityClassName }}
|
||
|
{{- end }}
|
||
|
{{- if .Values.imagePullSecrets }}
|
||
|
imagePullSecrets:
|
||
|
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
|
||
|
{{- end }}
|
||
|
serviceAccountName: {{ include "aws-efs-csi-pv-provisioner.serviceAccountName" . }}
|
||
|
securityContext:
|
||
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||
|
containers:
|
||
|
- name: {{ .Chart.Name }}
|
||
|
securityContext:
|
||
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||
|
args:
|
||
|
- -file-system-id={{ .Values.fileSystemId }}
|
||
|
resources:
|
||
|
{{- toYaml .Values.resources | nindent 12 }}
|
||
|
volumeMounts:
|
||
|
- mountPath: /efs
|
||
|
name: efs
|
||
|
volumes:
|
||
|
- name: efs
|
||
|
persistentVolumeClaim:
|
||
|
claimName: {{ include "aws-efs-csi-pv-provisioner.fullname" . }}-root
|
||
|
{{- with .Values.nodeSelector }}
|
||
|
nodeSelector:
|
||
|
{{- toYaml . | nindent 8 }}
|
||
|
{{- end }}
|
||
|
{{- with .Values.affinity }}
|
||
|
affinity:
|
||
|
{{- toYaml . | nindent 8 }}
|
||
|
{{- end }}
|
||
|
{{- with .Values.tolerations }}
|
||
|
tolerations:
|
||
|
{{- toYaml . | nindent 8 }}
|
||
|
{{- end }}
|