hashicorp / vault-helm

Helm chart to install Vault and other associated components.
Mozilla Public License 2.0
1.07k stars 873 forks source link

Would violate PodSecurity "restricted:latest" when installing Helm chart #1035

Closed joel-teratis closed 3 months ago

joel-teratis commented 3 months ago

Describe the bug Following this guide I am facing an error installing the vault helm chart.

vault-injector.yaml:

# vault-injector.yaml
global:
  enabled: true
  externalVaultAddr: {my_vault_addr}
server:
  enabled: false
injector:
  enabled: true
  authPath: auth/kubernetes-dc1

helm install vault-dc1 -f vault-injector.yaml hashicorp/vault --wait

This returns the following error:

would violate PodSecurity "restricted:latest": seccompProfile (pod or container "sidecar-injector" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")

Because of this the injector pod never starts.

Expected behavior The expected behavior is no error showing when installing the chart and the injector pod starting.

Environment

Chart values:

# vault-injector.yaml
global:
  enabled: true
  externalVaultAddr: {my_vault_addr}
server:
  enabled: false
injector:
  enabled: true
  authPath: auth/kubernetes-dc1