Skip to content

Commit

Permalink
chore(k8s-metacollector): Add podLabels
Browse files Browse the repository at this point in the history
Signed-off-by: sipr-invivo <[email protected]>
  • Loading branch information
sipr-invivo committed Jul 5, 2024
1 parent bb4fc15 commit bf1c689
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions charts/k8s-metacollector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
3 changes: 3 additions & 0 deletions charts/k8s-metacollector/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion charts/k8s-metacollector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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:
Expand Down

0 comments on commit bf1c689

Please sign in to comment.