X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm-manager%2Fcharts%2Ftemplates%2Fdeployment.yaml;fp=helm-manager%2Fcharts%2Ftemplates%2Fdeployment.yaml;h=8296ca5fd161f388f0b9315c4861162263a74573;hb=90f14b967777a7a78a1200e748377a64503bbfd9;hp=0000000000000000000000000000000000000000;hpb=0e96b9e7209c06f6e3ce090a737f0c504f5a0948;p=nonrtric.git diff --git a/helm-manager/charts/templates/deployment.yaml b/helm-manager/charts/templates/deployment.yaml new file mode 100644 index 00000000..8296ca5f --- /dev/null +++ b/helm-manager/charts/templates/deployment.yaml @@ -0,0 +1,56 @@ +################################################################################ +# Copyright (c) 2021 Nordix Foundation. # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +################################################################################ + +kind: Deployment +apiVersion: apps/v1 +metadata: + name: {{ template "helmmanager.name" . }} + namespace: {{ template "helmmanager.namespace" . }} + labels: + {{- include "helmmanager.labels" . | nindent 4 }} +spec: + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + {{- include "helmmanager.selectorLabels" . | nindent 6 }} + template: + metadata: + labels: + {{- include "helmmanager.selectorLabels" . | nindent 8 }} + spec: + serviceAccountName: {{ template "helmmanager.name" . }}-sa + containers: + - name: helmmanager + image: {{ .Values.image.registry }}/{{ .Values.image.name }}:{{ .Values.image.tag }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - containerPort: {{ .Values.service.http.containerPort }} + protocol: TCP + - containerPort: {{ .Values.service.tls.containerPort }} + protocol: TCP + volumeMounts: + - name: {{ template "helmmanager.name" . }}-pv + mountPath: /var/helm-manager-service + readinessProbe: +{{ toYaml .Values.readinessProbe | indent 12 }} + livenessProbe: +{{ toYaml .Values.livenessProbe | indent 12 }} + resources: +{{ toYaml .Values.resources | indent 12 }} + volumes: + - name: {{ template "helmmanager.name" . }}-pv + persistentVolumeClaim: + claimName: {{ template "helmmanager.name" . }}-pvc \ No newline at end of file