Browse Source

Run edemocracia components on the same server

master
Fábio Kaiser Rauber 3 years ago
parent
commit
76c6e87a92
  1. 22
      charts/edemocracia/v0.4.0/templates/audienciasweb-deployment.yaml
  2. 22
      charts/edemocracia/v0.4.0/templates/audienciasworker-deployment.yaml
  3. 22
      charts/edemocracia/v0.4.0/templates/discourse-deployment.yaml
  4. 2
      charts/edemocracia/v0.4.0/templates/edemocracia-deployment.yaml
  5. 20
      charts/edemocracia/v0.4.0/templates/nginx-deployment.yaml
  6. 22
      charts/edemocracia/v0.4.0/templates/wikilegis-deployment.yaml

22
charts/edemocracia/v0.4.0/templates/audienciasweb-deployment.yaml

@ -7,11 +7,13 @@ metadata:
labels:
{{- include "edemocracia.labels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-audienciasweb
app.kubernetes.io/component: audiencias
spec:
selector:
matchLabels:
{{- include "edemocracia.selectorLabels" . | nindent 6 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-audienciasweb
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 }}

22
charts/edemocracia/v0.4.0/templates/audienciasworker-deployment.yaml

@ -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 }}

22
charts/edemocracia/v0.4.0/templates/discourse-deployment.yaml

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

2
charts/edemocracia/v0.4.0/templates/edemocracia-deployment.yaml

@ -5,11 +5,13 @@ metadata:
name: {{ include "edemocracia.fullname" . }}-edemocracia
labels:
{{- include "edemocracia.labels" . | nindent 4 }}
app.kubernetes.io/component: edemocracia
io.kompose.service: {{ include "edemocracia.fullname" . }}-edemocracia
spec:
selector:
matchLabels:
{{- include "edemocracia.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: edemocracia
io.kompose.service: {{ include "edemocracia.fullname" . }}-edemocracia
strategy:
type: Recreate

20
charts/edemocracia/v0.4.0/templates/nginx-deployment.yaml

@ -96,10 +96,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 }}

22
charts/edemocracia/v0.4.0/templates/wikilegis-deployment.yaml

@ -7,11 +7,13 @@ metadata:
labels:
{{- include "edemocracia.labels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-wikilegis
app.kubernetes.io/component: wikilegis
spec:
selector:
matchLabels:
{{- include "edemocracia.selectorLabels" . | nindent 6 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-wikilegis
app.kubernetes.io/component: wikilegis
strategy:
type: Recreate
template:
@ -117,10 +119,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 }}

Loading…
Cancel
Save