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 619e1cb
Showing 1 changed file with 60 additions and 14 deletions.
74 changes: 60 additions & 14 deletions kustomize/sd3/frontend/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,69 @@ 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:
- name: sd3-frontend
image: sd3-frontend
ports:
- containerPort: 80
name: http
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 200m
memory: 256Mi
- name: sd3-frontend
image: sd3-frontend
command:
["/bin/sh", "-c"]
args:
['source /secrets/sd3-api-env && nginx -g "daemon off;"']
ports:
- containerPort: 80

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] wrong indentation: expected 8 but found 10 (indentation)
name: http
resources:
requests:
cpu: 200m

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)
memory: 256Mi

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

View check run for this annotation

otc-zuul / eco/check

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

linters: [error] trailing spaces (trailing-spaces)
limits:
cpu: 500m

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

View check run for this annotation

otc-zuul / eco/check

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

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

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

View check run for this annotation

otc-zuul / eco/check

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

linters: [error] trailing spaces (trailing-spaces)
volumeMounts:
- mountPath: "/secrets"

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

View check run for this annotation

otc-zuul / eco/check

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

linters: [error] wrong indentation: expected 8 but found 10 (indentation)
name: "secrets"
initContainers:
- name: "vault-agent"
command:
- "sh"
- "-c"
- "vault agent -config=/etc/vault/vault-agent.hcl -exit-after-auth=true"
env:
- name: "VAULT_ADDR"
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"
name: "vault-agent-config"
- mountPath: "/secrets"
name: "secrets"
- mountPath: "/var/run/secrets/tokens"
name: "k8-tokens"
readOnly: true
volumes:
- name: vault-agent-config
configMap:
defaultMode: 420
name: sd3-front-vault-config
- name: secrets
emptyDir: {}

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

View check run for this annotation

otc-zuul / eco/check

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

linters: [error] trailing spaces (trailing-spaces)
- name: "k8-tokens"
projected:
defaultMode: 420
sources:
- serviceAccountToken:
expirationSeconds: 7200

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

View check run for this annotation

otc-zuul / eco/check

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

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

0 comments on commit 619e1cb

Please sign in to comment.