apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ include "eechart.fullname" . }} labels: {{ include "eechart.labels" . | indent 4 }} spec: serviceName: {{ include "eechart.fullname" . }} replicas: {{ .Values.replicaCount }} selector: matchLabels: app.kubernetes.io/name: {{ include "eechart.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} template: metadata: labels: app.kubernetes.io/name: {{ include "eechart.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} spec: imagePullSecrets: - name: regcred serviceAccountName: {{ template "eechart.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: grpc containerPort: 50051 protocol: TCP resources: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: - name: osm-ee mountPath: /app/storage - name: osm-ee-source mountPath: /app/EE/osm_ee/vnf volumes: - name: osm-ee-source configMap: name: {{ include "eechart.fullname" . }} volumeClaimTemplates: - metadata: name: osm-ee spec: accessModes: [ "ReadWriteOnce" ] resources: requests: storage: 1Gi {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }}