Changeset View
Changeset View
Standalone View
Standalone View
sysadmin/T3592-elastic-workers/worker/templates/deployment.yaml
Show All 13 Lines | strategy: | ||||
type: RollingUpdate | type: RollingUpdate | ||||
rollingUpdate: | rollingUpdate: | ||||
maxSurge: 1 | maxSurge: 1 | ||||
template: | template: | ||||
metadata: | metadata: | ||||
labels: | labels: | ||||
app: {{ .Values.loader.name }}-{{ .Values.loader.type }} | app: {{ .Values.loader.name }}-{{ .Values.loader.type }} | ||||
spec: | spec: | ||||
terminationGracePeriodSeconds: 60 # pod-level | |||||
containers: | containers: | ||||
- name: loaders | - name: loaders | ||||
image: {{ .Values.swh.loader.image }}:{{ .Values.swh.loader.version }} | image: {{ .Values.swh.loader.image }}:{{ .Values.swh.loader.version }} | ||||
imagePullPolicy: Always | imagePullPolicy: Always | ||||
command: | command: | ||||
- /entrypoint.sh | - /entrypoint.sh | ||||
resources: | resources: | ||||
requests: | requests: | ||||
memory: "256Mi" | memory: "256Mi" | ||||
cpu: "200m" | cpu: "200m" | ||||
limits: | limits: | ||||
memory: "4000Mi" | memory: "4000Mi" | ||||
cpu: "1200m" | cpu: "1200m" | ||||
lifecycle: | lifecycle: | ||||
preStop: | preStop: | ||||
exec: | exec: | ||||
command: ["kill", "1"] | command: ["kill", "1"] | ||||
ports: | |||||
- name: liveness-port | |||||
containerPort: 8080 | |||||
hostPort: 8080 | |||||
livenessProbe: | |||||
httpGet: | |||||
path: /healthz | |||||
port: liveness-port | |||||
failureThreshold: 1 | |||||
periodSeconds: 60 | |||||
env: | env: | ||||
- name: CONCURRENCY | - name: CONCURRENCY | ||||
value: "1" | value: "1" | ||||
- name: MAX_TASKS_PER_CHILD | - name: MAX_TASKS_PER_CHILD | ||||
value: "5" | value: "5" | ||||
- name: LOGLEVEL | - name: LOGLEVEL | ||||
value: "INFO" | value: "INFO" | ||||
- name: SWH_CONFIG_FILENAME | - name: SWH_CONFIG_FILENAME | ||||
Show All 26 Lines |