|
|
@ -7,11 +7,13 @@ metadata: |
|
|
|
labels: |
|
|
|
{{- include "edemocracia.labels" . | nindent 4 }} |
|
|
|
io.kompose.service: {{ include "edemocracia.fullname" . }}-audienciasworker |
|
|
|
app.kubernetes.io/component: audiencias |
|
|
|
spec: |
|
|
|
selector: |
|
|
|
matchLabels: |
|
|
|
{{- include "edemocracia.selectorLabels" . | nindent 6 }} |
|
|
|
io.kompose.service: {{ include "edemocracia.fullname" . }}-audienciasworker |
|
|
|
app.kubernetes.io/component: audiencias |
|
|
|
strategy: |
|
|
|
type: Recreate |
|
|
|
template: |
|
|
@ -120,10 +122,24 @@ spec: |
|
|
|
nodeSelector: |
|
|
|
{{- toYaml . | nindent 8 }} |
|
|
|
{{- end }} |
|
|
|
{{- with .Values.affinity }} |
|
|
|
affinity: |
|
|
|
{{- toYaml . | nindent 8 }} |
|
|
|
{{- end }} |
|
|
|
podAffinity: |
|
|
|
requiredDuringSchedulingIgnoredDuringExecution: |
|
|
|
- labelSelector: |
|
|
|
matchExpressions: |
|
|
|
- key: app.kubernetes.io/name |
|
|
|
operator: In |
|
|
|
values: |
|
|
|
- {{ include "edemocracia.name" . }} |
|
|
|
- key: app.kubernetes.io/instance |
|
|
|
operator: In |
|
|
|
values: |
|
|
|
- {{ .Release.Name }} |
|
|
|
- key: app.kubernetes.io/component |
|
|
|
operator: In |
|
|
|
values: |
|
|
|
- edemocracia |
|
|
|
topologyKey: kubernetes.io/hostname |
|
|
|
{{- with .Values.tolerations }} |
|
|
|
tolerations: |
|
|
|
{{- toYaml . | nindent 8 }} |
|
|
|