-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
51 lines (51 loc) · 1.07 KB
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
generation: 1
name: nodeinfo
labels:
app: nodeinfo
spec:
replicas: 1
selector:
matchLabels:
app: nodeinfo
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
name: nodeinfo
labels:
app: nodeinfo
spec:
containers:
- name: nodeinfo
image: ghcr.io/openfaas/nodeinfo:latest
imagePullPolicy: Always
resources:
limits:
cpu: 50m
memory: 128Mi
requests:
cpu: 50m
memory: 128Mi
ports:
- containerPort: 8080
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /_/health
port: 8080
scheme: HTTP
initialDelaySeconds: 2
periodSeconds: 2
successThreshold: 1
timeoutSeconds: 1
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30