|
@ -11,6 +11,7 @@ spec: |
|
|
selector: |
|
|
selector: |
|
|
matchLabels: |
|
|
matchLabels: |
|
|
{{- include "edemocracia.selectorLabels" . | nindent 6 }} |
|
|
{{- include "edemocracia.selectorLabels" . | nindent 6 }} |
|
|
|
|
|
app.kubernetes.io/component: discourse |
|
|
io.kompose.service: {{ include "edemocracia.fullname" . }}-discourse |
|
|
io.kompose.service: {{ include "edemocracia.fullname" . }}-discourse |
|
|
strategy: |
|
|
strategy: |
|
|
type: Recreate |
|
|
type: Recreate |
|
@ -18,6 +19,7 @@ spec: |
|
|
metadata: |
|
|
metadata: |
|
|
labels: |
|
|
labels: |
|
|
{{- include "edemocracia.selectorLabels" . | nindent 8 }} |
|
|
{{- include "edemocracia.selectorLabels" . | nindent 8 }} |
|
|
|
|
|
app.kubernetes.io/component: discourse |
|
|
io.kompose.service: {{ include "edemocracia.fullname" . }}-discourse |
|
|
io.kompose.service: {{ include "edemocracia.fullname" . }}-discourse |
|
|
spec: |
|
|
spec: |
|
|
{{- with .Values.imagePullSecrets }} |
|
|
{{- with .Values.imagePullSecrets }} |
|
@ -117,10 +119,24 @@ spec: |
|
|
nodeSelector: |
|
|
nodeSelector: |
|
|
{{- toYaml . | nindent 8 }} |
|
|
{{- toYaml . | nindent 8 }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- with .Values.affinity }} |
|
|
|
|
|
affinity: |
|
|
affinity: |
|
|
{{- toYaml . | nindent 8 }} |
|
|
podAffinity: |
|
|
{{- end }} |
|
|
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 }} |
|
|
{{- with .Values.tolerations }} |
|
|
tolerations: |
|
|
tolerations: |
|
|
{{- toYaml . | nindent 8 }} |
|
|
{{- toYaml . | nindent 8 }} |
|
|