diff --git a/helm/templates/service.yaml b/helm/templates/service.yaml index 1c646ac..fb91404 100644 --- a/helm/templates/service.yaml +++ b/helm/templates/service.yaml @@ -43,6 +43,9 @@ spec: metadata: labels: app.kubernetes.io/instance: {{ .Release.Name }} + {{- with .Values.labels }} + {{- toYaml . | nindent 8 }} + {{- end }} spec: serviceAccountName: {{ .Values.serviceAccount.name | quote }} restartPolicy: Always diff --git a/helm/values.yaml b/helm/values.yaml index 9b33e86..6a548b6 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -48,3 +48,7 @@ serviceAccount: # nodeSelector -- Node labels for constraining the coder-logstream pod to specific nodes. nodeSelector: {} + +# labels -- The pod labels for coder-logstream-kube. See: +# https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ +labels: {}