add service for nginx app

This commit is contained in:
Inderpreet
2022-10-29 11:05:24 +05:30
parent 75edb1cf21
commit 861d2674d7

15
nginx-app/service.yml Normal file
View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: nginx
name: nginx-service
spec:
ports:
- port: 80 #change to 80
protocol: TCP
targetPort: 80 #change to 80
nodePort: 30334
selector:
app: nginx
type: NodePort