-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdeployment.yml
More file actions
37 lines (33 loc) · 958 Bytes
/
Copy pathdeployment.yml
File metadata and controls
37 lines (33 loc) · 958 Bytes
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
apiVersion: apps/v1
kind: Deployment # Kubernetes resource kind we are creating
metadata:
name: taskmaster-deployment
spec:
selector:
matchLabels:
app: taskmaster
replicas: 3 # Number of replicas that will be created for this deployment
template:
metadata:
labels:
app: taskmaster
spec:
containers:
- name: taskmaster
image: shubzz/prodtaskmaster:latest # Image that will be used to containers in the cluster
imagePullPolicy: Always
ports:
- containerPort: 8080 # The port that the container is running on in the cluster
---
apiVersion: v1 # Kubernetes API version
kind: Service # Kubernetes resource kind we are creating
metadata: # Metadata of the resource kind we are creating
name: taskmaster-ssvc
spec:
selector:
app: taskmaster
ports:
- protocol: "TCP"
port: 80
targetPort: 8080
type: LoadBalancer # type of the service.