-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdeployment.yaml
More file actions
50 lines (50 loc) · 1.33 KB
/
deployment.yaml
File metadata and controls
50 lines (50 loc) · 1.33 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
48
49
50
---
apiVersion: "apps/v1"
kind: "Deployment"
metadata:
name: "python-app"
namespace: "default"
labels:
app: "python-app"
env: "prod"
spec:
replicas: 1
selector:
matchLabels:
app: "python-app"
env: "prod"
template:
metadata:
labels:
app: "python-app"
env: "prod"
spec:
containers:
- name: "vngrs-sha256-1"
image: "gcr.io/kubernetesproject-328818/vngrs@sha256:71440017a605152d99328ee78b264268327d4b7efb0c8eb0255901232616b2dd"
env:
- name: "MYSQL_INSTANCE_NAME"
valueFrom:
configMapKeyRef:
key: "MYSQL_INSTANCE_NAME"
name: "python-app-config-mrqi"
- name: "MYSQL_PORT_3306_TCP_ADDR"
valueFrom:
configMapKeyRef:
key: "MYSQL_PORT_3306_TCP_ADDR"
name: "python-app-config-mrqi"
- name: "MYSQL_PORT_3306_TCP_PORT"
valueFrom:
configMapKeyRef:
key: "MYSQL_PORT_3306_TCP_PORT"
name: "python-app-config-mrqi"
- name: "MYSQL_USERNAME"
valueFrom:
secretKeyRef:
key: "MYSQL_USERNAME"
name: "credentials"
- name: "MYSQL_PASSWORD"
valueFrom:
secretKeyRef:
key: "MYSQL_PASSWORD"
name: "credentials"