Skip to content

Commit

Permalink
Create deployment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shubzz-t authored Aug 4, 2024
1 parent 2064ce7 commit 9dd4dac
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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.

0 comments on commit 9dd4dac

Please sign in to comment.