-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yml
More file actions
47 lines (47 loc) · 1.03 KB
/
deployment.yml
File metadata and controls
47 lines (47 loc) · 1.03 KB
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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: my-app
name: my-app
namespace: my-namespace
spec:
replicas: 1
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
annotations:
configHash: "" # The field we'll use to couple our ConfigMap and Deployment
spec:
containers:
- image: my-app-image:dev
name: my-app
args:
- sh
- ./startup.sh
ports:
- containerPort: 8000
name: my-app
env:
- name: SOME_SECRET
valueFrom:
secretKeyRef:
key: someSecret
name: my-secrets
- name: APPLICATION_CREDENTIALS
value: /var/secrets/key.json
envFrom:
- configMapRef:
name: my-config
volumeMounts:
- name: some-cloud-key
mountPath: /var/secrets
volumes:
- name: some-cloud-key
secret:
secretName: my-secrets
restartPolicy: Always