Create values.yaml from Helm Repository
Create a YAML file named values from the Helm repository by running the following command.
helm show values kedacore/keda > values.yaml
Modify the contents of the `values.yaml` file using the Nano editor with the following syntax.
nano values.yaml
Add runAsUser and runAsNonRoot.
# line 404
# -- [Security context] for all containers
# @default -- [See below](#KEDA-is-secure-by-default)
securityContext:
# -- [Security context] of the operator container
# @default -- [See below](#KEDA-is-secure-by-default)
operator:
capabilities:
drop:
- ALL
allowPrivilegeEscalation: false
runAsUser: 1000
runAsNonRoot: true
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
# -- [Security context] of the metricServer container
# @default -- [See below](#KEDA-is-secure-by-default)
metricServer:
capabilities:
drop:
- ALL
allowPrivilegeEscalation: false
runAsUser: 1000
runAsNonRoot: true
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
# -- [Security context] of the admission webhooks container
# @default -- [See below](#KEDA-is-secure-by-default)
webhooks:
capabilities:
drop:
- ALL
allowPrivilegeEscalation: false
runAsUser: 1000
runAsNonRoot: true
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
Apply the KEDA configuration specified in the `values.yaml` file by running the following command.
helm install keda kedacore/keda --namespace keda --values values.yaml
Last updated