forked from aslanpour/faasHouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathw2-ssd.yaml
226 lines (226 loc) · 7.29 KB
/
w2-ssd.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
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
com.openfaas.function.spec: '{"name":"w1-ssd","image":"aslanpour/ssd:cpu-tpu","annotations":{"com.openfaas.profile":"w1-ssd","linkerd.io/inject":"enabled"},"labels":{"com.openfaas.scale.factor":"100","com.openfaas.scale.max":"1","com.openfaas.scale.min":"1","com.openfaas.scale.zero":"true"},"environment":{"COUNTER":"0","REDIS_SERVER_IP":"10.43.189.161","REDIS_SERVER_PORT":"3679","exec_timeout":"15s","handler_wait_duration":"15s","read_timeout":"15s","version":"1","write_debug":"true","write_timeout":"15s"},"limits":{"cpu":"3600m"},"requests":{"cpu":"1000m"},"readOnlyRootFilesystem":false}'
com.openfaas.profile: w1-ssd
deployment.kubernetes.io/revision: "7"
linkerd.io/inject: enabled
prometheus.io.scrape: "false"
creationTimestamp: "2022-10-20T05:06:06Z"
generation: 7
name: w1-ssd
namespace: openfaas-fn
ownerReferences:
- apiVersion: openfaas.com/v1
blockOwnerDeletion: true
controller: true
kind: Function
name: w1-ssd
uid: cc0822ef-53a8-479e-a6c7-77fd4affdd0b
resourceVersion: "5801389"
uid: df72d445-4329-418b-ba47-09fdbedc415a
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 5
selector:
matchLabels:
app: w1-ssd
controller: w1-ssd
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
annotations:
com.openfaas.function.spec: '{"name":"w1-ssd","image":"aslanpour/ssd:cpu-tpu","annotations":{"com.openfaas.profile":"w1-ssd","linkerd.io/inject":"enabled"},"labels":{"com.openfaas.scale.factor":"100","com.openfaas.scale.max":"1","com.openfaas.scale.min":"1","com.openfaas.scale.zero":"true"},"environment":{"COUNTER":"0","REDIS_SERVER_IP":"10.43.189.161","REDIS_SERVER_PORT":"3679","exec_timeout":"15s","handler_wait_duration":"15s","read_timeout":"15s","version":"1","write_debug":"true","write_timeout":"15s"},"limits":{"cpu":"3600m"},"requests":{"cpu":"1000m"},"readOnlyRootFilesystem":false}'
com.openfaas.profile: w1-ssd
kubectl.kubernetes.io/restartedAt: "2022-10-21T18:28:58+11:00"
linkerd.io/inject: enabled
prometheus.io.scrape: "false"
creationTimestamp: null
labels:
app: w1-ssd
com.openfaas.scale.factor: "100"
com.openfaas.scale.max: "1"
com.openfaas.scale.min: "1"
com.openfaas.scale.zero: "true"
controller: w1-ssd
faas_function: w1-ssd
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- unknown
weight: 50
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- w2
- unknown
- unknown
- unknown
- unknown
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: faas_function
operator: In
values:
- unknown
topologyKey: kubernetes.io/hostname
weight: 50
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: faas_function
operator: In
values:
- unknown
topologyKey: kubernetes.io/hostname
containers:
- env:
- name: handler_wait_duration
value: 15s
- name: version
value: "1"
- name: write_debug
value: "true"
- name: COUNTER
value: "0"
- name: REDIS_SERVER_PORT
value: "3679"
- name: exec_timeout
value: 15s
- name: read_timeout
value: 15s
- name: write_timeout
value: 15s
- name: REDIS_SERVER_IP
value: 10.43.189.161
- name: MODEL_PRE_LOAD
value: "yes"
- name: MODEL_RUN_ON
value: cpu
- name: MODEL_CPU_WORKERS
value: "4"
- name: WAITRESS_THREADS
value: "4"
- name: NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: POD_IPS
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIPs
- name: POD_HOST_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.hostIP
- name: POD_UID
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.uid
image: aslanpour/ssd:cpu-tpu
imagePullPolicy: Never
livenessProbe:
failureThreshold: 3
httpGet:
path: /_/health
port: 8080
scheme: HTTP
initialDelaySeconds: 2
periodSeconds: 2
successThreshold: 1
timeoutSeconds: 1
name: w2-ssd
ports:
- containerPort: 8080
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /_/health
port: 8080
scheme: HTTP
initialDelaySeconds: 2
periodSeconds: 2
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
cpu: 3600m
requests:
cpu: "1"
securityContext:
allowPrivilegeEscalation: true
privileged: true
readOnlyRootFilesystem: false
runAsUser: 0
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /dev/bus/usb
name: usb-devices
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- hostPath:
path: /dev/bus/usb
type: ""
name: usb-devices
status:
availableReplicas: 1
conditions:
- lastTransitionTime: "2022-10-21T05:23:48Z"
lastUpdateTime: "2022-10-21T05:23:48Z"
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
- lastTransitionTime: "2022-10-20T05:06:06Z"
lastUpdateTime: "2022-10-21T07:29:04Z"
message: ReplicaSet "w2-ssd-7886d9c487" has successfully progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressing
observedGeneration: 7
readyReplicas: 1
replicas: 1
updatedReplicas: 1