> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/deka-gpu-documentations/panduan-untuk-enterprise/deka-gpu/deka-gpu-autoscaling/keda-autoscalling/create-values.yaml-from-helm-repository.md).

# Membuat values.yaml dari Repositori Helm

Buat file YAML bernama `values.yaml` dari repositori *Helm* dengan menjalankan perintah berikut.

```bash
helm show values kedacore/keda > values.yaml
```

Ubah isi file \`values.yaml\` menggunakan editor *Nano* dengan sintaks berikut.

```bash
nano values.yaml
```

Tambahkan \`runAsUser\` dan \`runAsNonRoot\`.

```yaml
# 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
```

Terapkan konfigurasi *KEDA* yang ditentukan dalam file \`values.yaml\` dengan menjalankan perintah berikut.

```bash
helm install keda kedacore/keda --namespace keda --values values.yaml
```
