-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathauction-kubernetes-file.yaml
63 lines (63 loc) · 1.27 KB
/
auction-kubernetes-file.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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: auction-sys
name: auction-sys
namespace: deployment-service
spec:
progressDeadlineSeconds: 600
replicas: 3
selector:
matchLabels:
app: auction-sys
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: auction-sys
spec:
containers:
- image: arthur2104/auction:latest
imagePullPolicy: Always
name: auction-sys
ports:
- containerPort: 8443
protocol: TCP
resources:
limits:
memory: 512Mi
cpu: "1"
requests:
memory: 512Mi
cpu: "1"
restartPolicy: Always
terminationGracePeriodSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
labels:
app: auction-sys
name: auction-sys
namespace: deployment-service
spec:
allocateLoadBalancerNodePorts: true
externalTrafficPolicy: Cluster
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- port: 8443
protocol: TCP
targetPort: 8443
nodePort: 31598
selector:
app: auction-sys
sessionAffinity: None
type: NodePort