forked from keel-hq/push-workflow-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
36 lines (36 loc) · 987 Bytes
/
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: pushwf
labels:
name: "pushwf"
# force policy will ensure that deployment is updated
# even when tag is unchanged (latest remains)
annotations:
keel.sh/policy: force
keel.sh/trigger: poll # enable active repository checking (webhooks and GCR would still work)
keel.sh/pollSchedule: "@every 5m"
spec:
replicas: 1
revisionHistoryLimit: 5
selector:
matchLabels:
app: pushwf
template:
metadata:
name: pushwf
labels:
app: pushwf
spec:
containers:
- image: prajyotparab1904/push-workflow-example:latest
imagePullPolicy: Always # this is required to force pull image
name: pushwf
ports:
- containerPort: 8500
livenessProbe:
httpGet:
path: /
port: 8500
initialDelaySeconds: 10
timeoutSeconds: 5