-
Notifications
You must be signed in to change notification settings - Fork 1
/
deployment.yaml
53 lines (52 loc) · 1.41 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
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: varnish-cache-invalidator
name: varnish-cache-invalidator
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: varnish-cache-invalidator
deployment: varnish-cache-invalidator
template:
metadata:
labels:
app: varnish-cache-invalidator
deployment: varnish-cache-invalidator
spec:
serviceAccountName: varnish-cache-invalidator
containers:
- command: [ "varnish-cache-invalidator" ]
args: [
"--varnishNamespace", "default",
"--varnishLabel", "app=varnish",
"--inCluster=true"
]
image: 'docker.io/bilalcaliskan/varnish-cache-invalidator:latest'
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 3000
timeoutSeconds: 10
name: varnish
ports:
- containerPort: 3000
protocol: TCP
- containerPort: 3001
protocol: TCP
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 3000
timeoutSeconds: 10