Skip to content

Commit

Permalink
fix: adjust metrics server settings for OpenShift
Browse files Browse the repository at this point in the history
  • Loading branch information
kasia-kujawa committed Jul 17, 2024
1 parent b103c74 commit b7d162d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/samples/all_enabled_openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ spec:
## Set the enabled flag to true for enabling metrics-server.
## This is required before enabling autoscaling unless you have an existing metrics-server in the cluster.
enabled: true
apiService:
create: false
global:
compatibility:
## Compatibility adaptations for Openshift
##
openshift:
## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)
##
adaptSecurityContext: auto

## Configure kube-prometheus-stack
## ref: https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml
Expand Down
8 changes: 8 additions & 0 deletions tests/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ metrics-server:
enabled: true
apiService:
create: false
global:
compatibility:
## Compatibility adaptations for Openshift
##
openshift:
## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)
##
adaptSecurityContext: auto

telegraf-operator:
enabled: true

0 comments on commit b7d162d

Please sign in to comment.