forked from manifoldco/kubernetes-credentials
-
Notifications
You must be signed in to change notification settings - Fork 1
/
manifest.yml
35 lines (35 loc) · 979 Bytes
/
manifest.yml
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: my-service
spec:
replicas: 2
template:
metadata:
labels:
app: my-service
spec:
containers:
- name: my-service
image: manifoldco/my-service:latest
env:
- name: CUSTOM_TOKEN_ID
valueFrom:
secretKeyRef:
name: secret-manifold-project
key: TOKEN_ID
- name: RESOURCE2_USERNAME
valueFrom:
secretKeyRef:
name: secret-manifold-project
key: USERNAME
- name: CUSTOM_TOKEN_SECRET
valueFrom:
secretKeyRef:
name: secret-manifold-resource
key: alias-name
- name: NON_EXISTING_TOKEN
valueFrom:
secretKeyRef:
name: secret-manifold-resource
key: NON_EXISTING