diff --git a/charts/k8s-metacollector/README.md b/charts/k8s-metacollector/README.md index 6c2589350..afac13a98 100644 --- a/charts/k8s-metacollector/README.md +++ b/charts/k8s-metacollector/README.md @@ -110,6 +110,7 @@ The following table lists the main configurable parameters of the k8s-metacollec | namespaceOverride | string | `""` | namespaceOverride overrides the deployment namespace. It's useful for multi-namespace deployments in combined charts. | | nodeSelector | object | `{}` | nodeSelector specifies a set of key-value pairs that must match labels assigned to nodes for the Pod to be eligible for scheduling on that node. | | podAnnotations | object | `{}` | podAnnotations are custom annotations to be added to the pod. | +| podLabels | object | `{}` | podLabels are labels to be added to the pod. | | podSecurityContext | object | `{"fsGroup":1000,"runAsGroup":1000,"runAsNonRoot":true,"runAsUser":1000}` | These settings are override by the ones specified for the container when there is overlap. | | podSecurityContext.fsGroup | int | `1000` | fsGroup specifies the group ID (GID) that should be used for the volume mounted within a Pod. | | podSecurityContext.runAsGroup | int | `1000` | runAsGroup specifies the group ID (GID) that the containers inside the pod should run as. | diff --git a/charts/k8s-metacollector/templates/deployment.yaml b/charts/k8s-metacollector/templates/deployment.yaml index 896248ce8..7688a215a 100644 --- a/charts/k8s-metacollector/templates/deployment.yaml +++ b/charts/k8s-metacollector/templates/deployment.yaml @@ -18,6 +18,9 @@ spec: {{- end }} labels: {{- include "k8s-metacollector.selectorLabels" . | nindent 8 }} + {{- if .Values.podLabels }} + {{ toYaml .Values.podLabels | nindent 8 }} + {{- end }} spec: {{- with .Values.image.pullSecrets }} imagePullSecrets: diff --git a/charts/k8s-metacollector/values.yaml b/charts/k8s-metacollector/values.yaml index b6dcc2563..98e1fa24e 100644 --- a/charts/k8s-metacollector/values.yaml +++ b/charts/k8s-metacollector/values.yaml @@ -25,7 +25,6 @@ fullnameOverride: "" # -- namespaceOverride overrides the deployment namespace. It's useful for multi-namespace deployments in combined charts. namespaceOverride: "" - # -- serviceAccount is the configuration for the service account. serviceAccount: # -- create specifies whether a service account should be created. @@ -39,6 +38,9 @@ serviceAccount: # -- podAnnotations are custom annotations to be added to the pod. podAnnotations: {} +# -- podLabels are labels to be added to the pod. +podLabels: {} + # -- podSecurityContext holds the security settings for the pod. # -- These settings are override by the ones specified for the container when there is overlap. podSecurityContext: