-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.yaml
executable file
·50 lines (50 loc) · 1.02 KB
/
dev.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: vite-project
namespace: dt
spec:
replicas: 3
selector: # added selector to match with labels in template 8/10 try to not use selector
matchLabels:
component: vite-project
revisionHistoryLimit: 10
template:
metadata:
labels:
component: vite-project
spec:
containers:
- name: vite-project-dev
image: dscacr.azurecr.io/dt-front:v0.1.2
imagePullPolicy: Always
env:
- name: TZ
value: Asia/Shanghai
resources:
limits:
cpu: 1
memory: 1024Mi
requests:
cpu: 0.2
memory: 256Mi
ports:
- containerPort: 80
imagePullSecrets:
- name: dt-pull-img
---
apiVersion: v1
kind: Service
metadata:
name: vite-project
namespace: dt
labels:
component: vite-project
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
component: vite-project