Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "do not repeat ENVs in init containers" #379

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions kyverno/policies/pods/injectSidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ spec:
- -listen-address=127.0.0.1:8198
- -operational-address=:8199
env:
- name: GCE_METADATA_HOST
value: "127.0.0.1:8198"
- name: GCE_METADATA_ROOT
value: "127.0.0.1:8198"
- name: VAULT_CACERT
value: "/etc/tls/ca.crt"
- name: VAULT_ADDR
Expand Down Expand Up @@ -255,6 +259,10 @@ spec:
- sidecar
- -vault-role={{ VKAC_ENVIRONMENT }}_gcp_{{ POD_NAMESPACE }}_{{ POD_SERVICE_ACCOUNT }}
env:
- name: GCE_METADATA_HOST
value: "127.0.0.1:8098"
- name: GCE_METADATA_ROOT
value: "127.0.0.1:8098"
- name: VAULT_CACERT
value: "/etc/tls/ca.crt"
- name: VAULT_ADDR
Expand Down Expand Up @@ -368,11 +376,15 @@ spec:
' > config.hcl
/usr/bin/dumb-init -- vault agent -config=config.hcl
env:
- name: AWS_SHARED_CREDENTIALS_FILE
value: "/etc/aws/credentials"
- name: VAULT_CACERT
value: "/etc/tls/ca.crt"
- name: VAULT_ADDR
value: "https://vault.sys-vault:8200"
volumeMounts:
- name: vault-aws-credentials
mountPath: /etc/aws
- name: vault-tls
mountPath: /etc/tls
- (name): "*"
Expand Down
Loading