Skip to content

Commit

Permalink
add vault injector
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirvshivkov committed Nov 21, 2024
1 parent 1187ede commit 2671bb4
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions kustomize/sd3/frontend/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,45 @@ spec:
limits:
cpu: 200m
memory: 256Mi
volumeMounts:
- mountPath: "/secrets"
name: "secrets"
initContainers:
- name: "vault-agent"

Check warning on line 35 in kustomize/sd3/frontend/base/deployment.yaml

View check run for this annotation

otc-zuul / eco/check

kustomize/sd3/frontend/base/deployment.yaml#L35

linters: [error] wrong indentation: expected 8 but found 6 (indentation)
command:
- "sh"

Check warning on line 37 in kustomize/sd3/frontend/base/deployment.yaml

View check run for this annotation

otc-zuul / eco/check

kustomize/sd3/frontend/base/deployment.yaml#L37

linters: [error] wrong indentation: expected 10 but found 8 (indentation)
- "-c"
- "vault agent -config=/etc/vault/vault-agent.hcl -exit-after-auth=true"
env:
- name: "VAULT_ADDR"

Check warning on line 41 in kustomize/sd3/frontend/base/deployment.yaml

View check run for this annotation

otc-zuul / eco/check

kustomize/sd3/frontend/base/deployment.yaml#L41

linters: [error] wrong indentation: expected 10 but found 8 (indentation)
value: "https://vault-lb.eco.tsi-dev.otc-service.com:8200"
image: "hashicorp/vault"
resources:
limits:
cpu: "300m"
memory: "300Mi"
requests:
cpu: "50m"
memory: "50Mi"
volumeMounts:
- mountPath: "/etc/vault"

Check warning on line 52 in kustomize/sd3/frontend/base/deployment.yaml

View check run for this annotation

otc-zuul / eco/check

kustomize/sd3/frontend/base/deployment.yaml#L52

linters: [error] wrong indentation: expected 10 but found 8 (indentation)
name: "vault-agent-config"
- mountPath: "/secrets"
name: "secrets"
- mountPath: "/var/run/secrets/tokens"
name: "k8-tokens"
readOnly: true
volumes:
- name: vault-agent-config

Check warning on line 60 in kustomize/sd3/frontend/base/deployment.yaml

View check run for this annotation

otc-zuul / eco/check

kustomize/sd3/frontend/base/deployment.yaml#L60

linters: [error] wrong indentation: expected 8 but found 6 (indentation)
configMap:
defaultMode: 420
name: sd3-front-vault-config
- name: secrets
emptyDir: {}
- name: "k8-tokens"
projected:
defaultMode: 420
sources:
- serviceAccountToken:

Check warning on line 70 in kustomize/sd3/frontend/base/deployment.yaml

View check run for this annotation

otc-zuul / eco/check

kustomize/sd3/frontend/base/deployment.yaml#L70

linters: [error] wrong indentation: expected 12 but found 10 (indentation)
expirationSeconds: 7200
path: "vault-token"

0 comments on commit 2671bb4

Please sign in to comment.