40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Chart.Name }}-conductor
|
|
labels:
|
|
app: conductor
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
service: {{ .Chart.Name }}-conductor
|
|
template:
|
|
metadata:
|
|
labels:
|
|
service: {{ .Chart.Name }}-conductor
|
|
spec:
|
|
affinity:
|
|
podAntiAffinity:
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- weight: 100
|
|
podAffinityTerm:
|
|
labelSelector:
|
|
matchExpressions:
|
|
- key: app
|
|
operator: In
|
|
values:
|
|
- conductor
|
|
topologyKey: kubernetes.io/hostname
|
|
imagePullSecrets:
|
|
- name: regsecret
|
|
containers:
|
|
- name: conductor
|
|
{{- include "conductor_resources" . | indent 10 }}
|
|
image: cr.yandex/crphnph9c2s776j32sjd/hrbox-conductor:2.1.1
|
|
imagePullPolicy: IfNotPresent
|
|
env:
|
|
{{- include "envs_all" . | indent 12 }} |