diff options
Diffstat (limited to 'vnfs/DAaaS/deploy/collection/charts/prom-kafka-writer/templates/deployment.yaml')
-rw-r--r-- | vnfs/DAaaS/deploy/collection/charts/prom-kafka-writer/templates/deployment.yaml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/vnfs/DAaaS/deploy/collection/charts/prom-kafka-writer/templates/deployment.yaml b/vnfs/DAaaS/deploy/collection/charts/prom-kafka-writer/templates/deployment.yaml new file mode 100644 index 00000000..a3b6be3e --- /dev/null +++ b/vnfs/DAaaS/deploy/collection/charts/prom-kafka-writer/templates/deployment.yaml @@ -0,0 +1,48 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "prom-kafka-writer.fullname" . }} + labels: + app.kubernetes.io/name: {{ include "prom-kafka-writer.name" . }} + helm.sh/chart: {{ include "prom-kafka-writer.chart" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/managed-by: {{ .Release.Service }} +spec: + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + app.kubernetes.io/name: {{ include "prom-kafka-writer.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + app: {{ include "prom-kafka-writer.name" . }} + template: + metadata: + labels: + app.kubernetes.io/name: {{ include "prom-kafka-writer.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + app: {{ include "prom-kafka-writer.name" . }} + spec: + containers: + - name: {{ .Chart.Name }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - name: http + containerPort: {{ .Values.service.port }} + protocol: TCP + env: + - name: PORT + value: {{ .Values.service.port | quote }} + resources: + {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} |