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: labels:
{{- include "edemocracia.labels" . | nindent 4 }} {{- include "edemocracia.labels" . | nindent 4 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-audienciasweb io.kompose.service: {{ include "edemocracia.fullname" . }}-audienciasweb
app.kubernetes.io/component: audiencias
spec: spec:
selector: selector:
matchLabels: matchLabels:
{{- include "edemocracia.selectorLabels" . | nindent 6 }} {{- include "edemocracia.selectorLabels" . | nindent 6 }}
io.kompose.service: {{ include "edemocracia.fullname" . }}-audienciasweb io.kompose.service: {{ include "edemocracia.fullname" . }}-audienciasweb
app.kubernetes.io/component: audiencias
strategy: strategy:
type: Recreate type: Recreate
template: template:
@ -120,10 +122,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 }}

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save