apiVersion: apps/v1 kind: Deployment metadata: namespace: {{ .Release.Namespace }} name: {{ .Release.Name }}-live-helper labels: app: live-helper chart: {{ .Chart.Name }}-{{ .Chart.Version }} release: {{ .Release.Name }} spec: replicas: {{ .Values.liveHelper.replicaCount }} selector: matchLabels: app: live-helper release: {{ .Release.Name }} template: metadata: labels: app: live-helper release: {{ .Release.Name }} spec: containers: - name: live-helper image: "{{ .Values.images.liveHelper.repository }}:{{ .Values.images.liveHelper.tag }}" imagePullPolicy: {{ .Values.images.liveHelper.pullPolicy }} ports: - name: http containerPort: {{ .Values.liveHelper.port }} protocol: TCP env: - name: ALLOW_DOWNLOAD value: "{{ .Values.liveHelper.allowDownload }}" volumeMounts: - name: config mountPath: /cmii/live-helper/config.yaml subPath: config.yaml resources: {{- toYaml .Values.liveHelper.resources | nindent 12 }} volumes: - name: config configMap: name: {{ .Release.Name }}-live-helper-config imagePullSecrets: - name: {{ .Values.images.secretName }} --- apiVersion: v1 kind: Service metadata: namespace: {{ .Release.Namespace }} name: {{ .Release.Name }}-live-helper labels: app: live-helper chart: {{ .Chart.Name }}-{{ .Chart.Version }} release: {{ .Release.Name }} spec: type: NodePort ports: - name: http port: {{ .Values.liveHelper.port }} targetPort: http nodePort: {{ .Values.network.liveHelperNodePort }} protocol: TCP selector: app: live-helper release: {{ .Release.Name }}