diff --git a/charts/kyuubi/templates/kyuubi-headless-service.yaml b/charts/kyuubi/templates/kyuubi-headless-service.yaml index 7eac7c1d0..2457c4708 100644 --- a/charts/kyuubi/templates/kyuubi-headless-service.yaml +++ b/charts/kyuubi/templates/kyuubi-headless-service.yaml @@ -21,6 +21,10 @@ metadata: name: {{ .Release.Name }}-headless labels: {{- include "kyuubi.labels" $ | nindent 4 }} + {{- with .Values.service.headless.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: ClusterIP clusterIP: None diff --git a/charts/kyuubi/templates/kyuubi-statefulset.yaml b/charts/kyuubi/templates/kyuubi-statefulset.yaml index ba57ca52b..62a0b02eb 100644 --- a/charts/kyuubi/templates/kyuubi-statefulset.yaml +++ b/charts/kyuubi/templates/kyuubi-statefulset.yaml @@ -40,6 +40,9 @@ spec: annotations: checksum/conf: {{ include (print $.Template.BasePath "/kyuubi-configmap.yaml") . | sha256sum }} checksum/conf-hadoop: {{ include (print $.Template.BasePath "/kyuubi-hadoop-configmap.yaml") . | sha256sum }} + {{- with .Values.podAnnotations }} + {{- toYaml . | nindent 8 }} + {{- end }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} diff --git a/charts/kyuubi/values.yaml b/charts/kyuubi/values.yaml index e70098b21..5a5640a29 100644 --- a/charts/kyuubi/values.yaml +++ b/charts/kyuubi/values.yaml @@ -27,6 +27,9 @@ replicaCount: 2 # The default policy is `OrderedReady`, alternative policy is `Parallel`. podManagementPolicy: OrderedReady +# Optional additional annotations to add to Kyuubi server pods +podAnnotations: {} + # Minimum number of seconds for which a newly created kyuubi server # should be ready without any of its container crashing for it to be considered available. minReadySeconds: 30 @@ -76,6 +79,12 @@ rbac: resources: ["pods"] verbs: ["create", "list", "delete"] +service: + # configuration of the headless service + headless: + # Optional additional annotations to add to the headless service + annotations: {} + server: # Thrift Binary protocol (HiveServer2 compatible) thriftBinary: