-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspeedtest-deployment-svc-new.yml
120 lines (114 loc) · 2.62 KB
/
speedtest-deployment-svc-new.yml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.octohelm.tech/name: speedtest
name: speedtest
namespace: kube-system
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: speedtest
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: speedtest
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
- arm64
containers:
- args:
- serve
env:
- name: SPEEDTEST_SERVER_ADDR
value: :80
envFrom:
- configMapRef:
name: speedtest
#image: 10.68.37.32:5000/inner/speedtest:v0.0.0-20230613112752-2f1750106fd0
image: maqingjie/speedtest:v0.0.0-20230613112752-2f1750106fd0
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /
port: 80
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: server
ports:
- containerPort: 80
name: http
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /
port: 80
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
---
apiVersion: v1
data:
SPEEDTEST_LOG_ASYNC: "false"
SPEEDTEST_LOG_FILTER: Always
SPEEDTEST_LOG_LEVEL: info
SPEEDTEST_SERVER_ENABLE_DEBUG: "false"
SPEEDTEST_TRACE_COLLECTOR_ENDPOINT: " "
kind: ConfigMap
metadata:
labels:
app.octohelm.tech/name: speedtest
name: speedtest
namespace: kube-system
---
apiVersion: v1
kind: Service
metadata:
name: speedtest
namespace: kube-system
spec:
clusterIP:
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- name: http
port: 80
protocol: TCP
targetPort: http
selector:
app: speedtest
sessionAffinity: None
type: NodePort