[fix] Fix broker service annotations issue and other annotations issues (#574)
* Fix broker services annotations issues * Add annotations support to autorecovery.service * Consistently use similar way to handle annotations * Add autorecovery service annotations key to values.yaml
This commit is contained in:
parent
f928380124
commit
4386eacba8
@ -26,6 +26,10 @@ metadata:
|
||||
labels:
|
||||
{{- include "pulsar.standardLabels" . | nindent 4 }}
|
||||
component: {{ .Values.autorecovery.component }}
|
||||
{{- with .Values.autorecovery.service.annotations }}
|
||||
annotations:
|
||||
{{ toYaml . | indent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
|
||||
@ -26,9 +26,9 @@ metadata:
|
||||
labels:
|
||||
{{- include "pulsar.standardLabels" . | nindent 4 }}
|
||||
component: {{ .Values.bookkeeper.component }}
|
||||
{{- if .Values.bookkeeper.service.annotations }}
|
||||
{{- with .Values.bookkeeper.service.annotations }}
|
||||
annotations:
|
||||
{{ toYaml .Values.bookkeeper.service.annotations | indent 4 }}
|
||||
{{ toYaml . | indent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
ports:
|
||||
|
||||
@ -26,7 +26,7 @@ metadata:
|
||||
labels:
|
||||
{{- include "pulsar.standardLabels" . | nindent 4 }}
|
||||
component: {{ .Values.broker.component }}
|
||||
{{- with .Values.broker.service_account.annotations }}
|
||||
{{- with .Values.broker.service.annotations }}
|
||||
annotations:
|
||||
{{ toYaml . | indent 4 }}
|
||||
{{- end }}
|
||||
|
||||
@ -26,8 +26,10 @@ metadata:
|
||||
labels:
|
||||
{{- include "pulsar.standardLabels" . | nindent 4 }}
|
||||
component: {{ .Values.pulsar_manager.component }}
|
||||
{{- with .Values.pulsar_manager.service.annotations }}
|
||||
annotations:
|
||||
{{ toYaml .Values.pulsar_manager.service.annotations | indent 4 }}
|
||||
{{ toYaml . | indent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
type: {{ .Values.pulsar_manager.service.type }}
|
||||
{{- if .Values.pulsar_manager.service.externalTrafficPolicy }}
|
||||
@ -58,8 +60,10 @@ metadata:
|
||||
labels:
|
||||
{{- include "pulsar.standardLabels" . | nindent 4 }}
|
||||
component: {{ .Values.pulsar_manager.component }}
|
||||
{{- with .Values.pulsar_manager.adminService.annotations }}
|
||||
annotations:
|
||||
{{ toYaml .Values.pulsar_manager.adminService.annotations | indent 4 }}
|
||||
{{ toYaml . | indent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
type: {{ .Values.pulsar_manager.adminService.type }}
|
||||
ports:
|
||||
|
||||
@ -28,7 +28,10 @@ metadata:
|
||||
{{- include "pulsar.standardLabels" . | nindent 4 }}
|
||||
component: {{ .Values.zookeeper.component }}
|
||||
annotations:
|
||||
{{ toYaml .Values.zookeeper.service.annotations | indent 4 }}
|
||||
{{- with .Values.zookeeper.service.annotations }}
|
||||
annotations:
|
||||
{{ toYaml . | indent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
ports:
|
||||
# prometheus needs to access /metrics endpoint
|
||||
|
||||
@ -833,6 +833,10 @@ autorecovery:
|
||||
requests:
|
||||
memory: 64Mi
|
||||
cpu: 0.05
|
||||
## Bookkeeper auto-recovery service
|
||||
## templates/autorecovery-service.yaml
|
||||
service:
|
||||
annotations: {}
|
||||
## Bookkeeper auto-recovery service account
|
||||
## templates/autorecovery-service-account.yaml
|
||||
service_account:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user