-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient-deployment.yaml
41 lines (41 loc) · 1.54 KB
/
client-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: willow
labels:
app: willow
spec:
replicas: 2 # Number of pods to run at any given time
selector:
matchLabels:
app: willow # This deployment applies to any Pods matching the specified label
template: # This deployment will create a set of pods using the configurations in this template
metadata:
labels: # The labels thaminit will be applied to all of the pods in this deployment
app: willow
spec: # Spec for the container which will run in the Pod
containers:
- name: willow
image: vaishvik7568/willow # The image we are getting from dockerhub
imagePullPolicy: IfNotPresent # If we have not pulled it before, get it from dockerhub
ports:
- containerPort: 80 # Should match the port number that the Go application listens on
resources:
limits:
memory: '128Mi'
cpu: '200m'
livenessProbe:
httpGet:
path: /index.html
port: 80
initialDelaySeconds: 15
timeoutSeconds: 2
periodSeconds: 5
failureThreshold: 1
readinessProbe:
httpGet:
path: /index.html
port: 80
initialDelaySeconds: 15
periodSeconds: 5
failureThreshold: 1