-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdb-service.yaml
21 lines (20 loc) · 1.25 KB
/
db-service.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#This is a sample answer yaml file for the KKE Devops task deploy-voting app on k8s
#Edit the below codes as per your question details.
#Check this blog https://thirigiri.blogspot.com for kubenetes commands, how to deply this file and how to complete the task.
#I have done a smilir task on my own envrinment check above blog for more details.
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app: db-deployment
name: db
namespace: vote
spec:
ports:
- port: 5432
protocol: TCP
targetPort: 5432
selector:
app: db-deployment
type: ClusterIP