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 02f75c1
Showing 1 changed file with 48 additions and 6 deletions.
54 changes: 48 additions & 6 deletions kustomize/sd3/frontend/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ spec:
replicas: 1
selector:
matchLabels:
app: sd3-frontend
app: sd3-frontend

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

View check run for this annotation

otc-zuul / eco/check

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

linters: [error] trailing spaces (trailing-spaces)
template:
metadata:
labels:
app: sd3-frontend
app: sd3-frontend

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

View check run for this annotation

otc-zuul / eco/check

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

linters: [error] trailing spaces (trailing-spaces)
spec:
serviceAccount: sd3
containers:
Expand All @@ -23,8 +23,50 @@ spec:
name: http
resources:
requests:
cpu: 100m
memory: 128Mi
cpu: 200m

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

View check run for this annotation

otc-zuul / eco/check

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

linters: [error] trailing spaces (trailing-spaces)
memory: 256Mi

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

View check run for this annotation

otc-zuul / eco/check

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

linters: [error] trailing spaces (trailing-spaces)
limits:
cpu: 200m
memory: 256Mi
cpu: 500m

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

View check run for this annotation

otc-zuul / eco/check

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

linters: [error] trailing spaces (trailing-spaces)
memory: 512Mi

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

View check run for this annotation

otc-zuul / eco/check

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

linters: [error] trailing spaces (trailing-spaces)
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: {}

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

View check run for this annotation

otc-zuul / eco/check

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

linters: [error] trailing spaces (trailing-spaces)
- 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

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

View check run for this annotation

otc-zuul / eco/check

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

linters: [error] trailing spaces (trailing-spaces)
path: "vault-token"

0 comments on commit 02f75c1

Please sign in to comment.