-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-deployment-rsc.yaml
69 lines (69 loc) · 1.76 KB
/
k8s-deployment-rsc.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.22.0 (955b78124)
creationTimestamp: null
labels:
io.kompose.service: app-name
name: app-name
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: app-name
strategy: {}
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.22.0 (955b78124)
creationTimestamp: null
labels:
io.kompose.network/appnet: "true"
io.kompose.service: app-name
spec:
containers:
- env:
- name: APP_DEBUG
value: "true"
- name: APP_ENV
value: local
- name: APP_KEY
value: ''
- name: DB_DATABASE
valueFrom:
configMapKeyRef:
key: MYSQL_DB
name: env
- name: DB_USERNAME
valueFrom:
secretKeyRef:
name: mysql-secret
key: MYSQL_USERNAME
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: mysql-secret
key: MYSQL_PASSWORD
- name: DB_HOST
value: db
- name: DB_PORT
valueFrom:
configMapKeyRef:
key: MYSQL_PORT
name: env
image: gcr.io/$PROJECT_ID/img-name:tag
imagePullPolicy: IfNotPresent
name: container-name
ports:
- containerPort: 80
protocol: TCP
resources:
limits:
cpu: "2"
requests:
cpu: "250m"
restartPolicy: Always
status: {}