-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecrets-test-deployment.yaml
48 lines (48 loc) · 1.17 KB
/
secrets-test-deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: secrets-test
name: secrets-test
spec:
replicas: 1
selector:
matchLabels:
app: secrets-test
template:
metadata:
labels:
app: secrets-test
spec:
containers:
- command: ["/bin/sh"]
args: ["-c", "echo $OVH_ENDPOINT; echo $OVH_APPLICATION_KEY; echo $OVH_APPLICATION_SECRET;\
\ echo $OVH_CONSUMER_KEY; sleep infinity"]
image: alpine:latest
name: secrets-test
resources:
limits:
memory: 64Mi
cpu: 500m
env:
- name: OVH_ENDPOINT
valueFrom:
secretKeyRef:
name: ovh-secrets
key: endpoint
- name: OVH_APPLICATION_KEY
valueFrom:
secretKeyRef:
name: ovh-secrets
key: application_key
- name: OVH_APPLICATION_SECRET
valueFrom:
secretKeyRef:
name: ovh-secrets
key: application_secret
- name: OVH_CONSUMER_KEY
valueFrom:
secretKeyRef:
name: ovh-secrets
key: consumer_key