-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.yaml
More file actions
77 lines (72 loc) · 1.28 KB
/
deploy.yaml
File metadata and controls
77 lines (72 loc) · 1.28 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
apiVersion: v1
kind: ConfigMap
metadata:
name: dongle-configmap
data:
DB_HOST: 81.70.154.116
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: dongle-deploy
spec:
replicas: 3
minReadySeconds: 10
revisionHistoryLimit: 5
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
selector:
matchLabels:
app: dongle-deploy
template:
metadata:
labels:
app: dongle-deploy
spec:
imagePullSecrets:
- name: coding-docker
containers:
- name: dongle-deploy
image: hj212223/dongle:v0.0.99
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 3000
envFrom:
- configMapRef:
name: dongle-configmap
---
apiVersion: v1
kind: Service
metadata:
name: dongle-service
spec:
selector:
app: dongle-deploy
ports:
- port: 3000
targetPort: 3000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dongle-ingress
labels:
name: dongle-ingress
spec:
rules:
- host: 81.70.154.116
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: dongle-service
port:
number: 3000