-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
54 lines (54 loc) · 1.19 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
52
53
54
apiVersion: apps/v1
kind: Deployment
metadata:
name: cronjob-deployment
namespace: default
labels:
app: cronjob
spec:
replicas: 3
selector:
matchLabels:
app: cronjob
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
metadata:
labels:
app: cronjob
spec:
containers:
- name: cronjob
image: cronjob:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
requests:
cpu: "100m"
memory: "128Mi"
limits:
cpu: "500m"
memory: "512Mi"
livenessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /ready
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
envFrom:
- configMapRef:
name: cronjob-config
- secretRef:
name: cronjob-secret
imagePullSecrets:
- name: regcred