--- apiVersion: apps/v1 kind: Deployment metadata: name: {{ .Chart.Name }}-geonames labels: app: geonames spec: minReadySeconds: 5 strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 1 replicas: {{ .Values.app.replicas.geonames }} selector: matchLabels: service: {{ .Chart.Name }}-geonames template: metadata: labels: service: {{ .Chart.Name }}-geonames annotations: prometheus.io/scrape: 'true' prometheus.io/port: '9797' prometheus.io/path: "/info" spec: imagePullSecrets: - name: regsecret containers: - name: geonames {{- include "geonames_resources" . | indent 10}} image: cr.yandex/crphnph9c2s776j32sjd/hrbox-geonames:3.1 imagePullPolicy: Always env: {{- include "envs_all" . | indent 12 }} --- apiVersion: v1 kind: Service metadata: name: {{ .Chart.Name }}-geonames spec: selector: service: {{ .Chart.Name }}-geonames ports: - name: http port: 8181 targetPort: 8181 protocol: TCP