Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rf: ZENKO-758 rename replication pods #194

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ template "backbeat.fullname" . }}-consumer
name: {{ template "backbeat.fullname" . }}-replication-data-processor
labels:
app: {{ template "backbeat.name" . }}-replication
chart: {{ template "backbeat.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replication.consumer.replicaCount }}
replicas: {{ .Values.replication.dataProcessor.replicaCount }}
template:
metadata:
labels:
app: {{ template "backbeat.name" . }}-replication
release: {{ .Release.Name }}
spec:
containers:
- name: {{ template "backbeat.fullname" . }}-consumer
- name: replication-data-processor
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["/usr/src/app/docker-entrypoint.sh"]
Expand Down Expand Up @@ -65,16 +65,16 @@ spec:
path: {{ .Values.health.path.readiness }}
port: {{ .Values.health.port }}
resources:
{{ toYaml .Values.replication.consumer.resources | indent 12 }}
{{- with .Values.replication.consumer.nodeSelector }}
{{ toYaml .Values.replication.dataProcessor.resources | indent 12 }}
{{- with .Values.replication.dataProcessor.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.replication.consumer.affinity }}
{{- with .Values.replication.dataProcessor.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.replication.consumer.tolerations }}
{{- with .Values.replication.dataProcessor.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ template "backbeat.fullname" . }}-producer
name: {{ template "backbeat.fullname" . }}-replication-populator
labels:
app: {{ template "backbeat.name" . }}-replication
chart: {{ template "backbeat.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replication.producer.replicaCount }}
replicas: {{ .Values.replication.populator.replicaCount }}
template:
metadata:
labels:
app: {{ template "backbeat.name" . }}-replication
release: {{ .Release.Name }}
spec:
containers:
- name: {{ template "backbeat.fullname" . }}-producer
- name: replication-populator
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args: ["npm", "run", "queue_populator"]
Expand Down Expand Up @@ -50,16 +50,16 @@ spec:
path: {{ .Values.health.path.readiness }}
port: {{ .Values.health.port }}
resources:
{{ toYaml .Values.replication.producer.resources | indent 12 }}
{{- with .Values.replication.producer.nodeSelector }}
{{ toYaml .Values.replication.populator.resources | indent 12 }}
{{- with .Values.replication.populator.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.replication.producer.affinity }}
{{- with .Values.replication.populator.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.replication.producer.tolerations }}
{{- with .Values.replication.populator.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ template "backbeat.fullname" . }}-status
name: {{ template "backbeat.fullname" . }}-replication-status-processor
labels:
app: {{ template "backbeat.name" . }}-replication
chart: {{ template "backbeat.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replication.status.replicaCount }}
replicas: {{ .Values.replication.statusProcessor.replicaCount }}
template:
metadata:
labels:
app: {{ template "backbeat.name" . }}-replication
release: {{ .Release.Name }}
spec:
containers:
- name: replication-status
- name: replication-status-processor
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["/usr/src/app/docker-entrypoint.sh"]
Expand Down Expand Up @@ -59,16 +59,16 @@ spec:
path: {{ .Values.health.path.readiness }}
port: {{ .Values.health.port }}
resources:
{{ toYaml .Values.replication.status.resources | indent 12 }}
{{- with .Values.replication.status.nodeSelector }}
{{ toYaml .Values.replication.statusProcessor.resources | indent 12 }}
{{- with .Values.replication.statusProcessor.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.replication.status.affinity }}
{{- with .Values.replication.statusProcessor.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.replication.status.tolerations }}
{{- with .Values.replication.statusProcessor.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
6 changes: 3 additions & 3 deletions charts/backbeat/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,23 +101,23 @@ lifecycle:
enabled: True

replication:
consumer:
dataProcessor:
replicaCount: 1

resources: {}
nodeSelector: {}
tolerations: []
affinity: {}

producer:
populator:
replicaCount: 1

resources: {}
nodeSelector: {}
tolerations: []
affinity: {}

status:
statusProcessor:
replicaCount: 1

resources: {}
Expand Down