Added deployment annotations to chart
This commit is contained in:
parent
1b503bb6b3
commit
8f612abc72
|
@ -9,6 +9,10 @@ metadata:
|
||||||
{{- include "mastodon.labels" $context | nindent 4 }}
|
{{- include "mastodon.labels" $context | nindent 4 }}
|
||||||
app.kubernetes.io/component: sidekiq-{{ .name }}
|
app.kubernetes.io/component: sidekiq-{{ .name }}
|
||||||
app.kubernetes.io/part-of: rails
|
app.kubernetes.io/part-of: rails
|
||||||
|
annotations:
|
||||||
|
{{- with $context.Values.deployAnnotations }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- if (has "scheduler" .queues) }}
|
{{- if (has "scheduler" .queues) }}
|
||||||
{{- if (gt (int .replicas) 1) }}
|
{{- if (gt (int .replicas) 1) }}
|
||||||
|
|
|
@ -4,6 +4,10 @@ metadata:
|
||||||
name: {{ include "mastodon.fullname" . }}-streaming
|
name: {{ include "mastodon.fullname" . }}-streaming
|
||||||
labels:
|
labels:
|
||||||
{{- include "mastodon.labels" . | nindent 4 }}
|
{{- include "mastodon.labels" . | nindent 4 }}
|
||||||
|
annotations:
|
||||||
|
{{- with .Values.deployAnnotations }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.mastodon.streaming.replicas }}
|
replicas: {{ .Values.mastodon.streaming.replicas }}
|
||||||
selector:
|
selector:
|
||||||
|
|
|
@ -4,6 +4,10 @@ metadata:
|
||||||
name: {{ include "mastodon.fullname" . }}-web
|
name: {{ include "mastodon.fullname" . }}-web
|
||||||
labels:
|
labels:
|
||||||
{{- include "mastodon.labels" . | nindent 4 }}
|
{{- include "mastodon.labels" . | nindent 4 }}
|
||||||
|
annotations:
|
||||||
|
{{- with .Values.deployAnnotations }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.mastodon.web.replicas }}
|
replicas: {{ .Values.mastodon.web.replicas }}
|
||||||
selector:
|
selector:
|
||||||
|
|
|
@ -408,6 +408,10 @@ serviceAccount:
|
||||||
# If not set and create is true, a name is generated using the fullname template
|
# If not set and create is true, a name is generated using the fullname template
|
||||||
name: ""
|
name: ""
|
||||||
|
|
||||||
|
# Custom annotations to apply to all created deployment objects. These can be
|
||||||
|
# used to help mastodon interact with other services in the cluster.
|
||||||
|
deployAnnotations: {}
|
||||||
|
|
||||||
# -- Kubernetes manages pods for jobs and pods for deployments differently, so you might
|
# -- Kubernetes manages pods for jobs and pods for deployments differently, so you might
|
||||||
# need to apply different annotations to the two different sets of pods. The annotations
|
# need to apply different annotations to the two different sets of pods. The annotations
|
||||||
# set with podAnnotations will be added to all deployment-managed pods.
|
# set with podAnnotations will be added to all deployment-managed pods.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user