add service for nginx app

This commit is contained in:
Inderpreet committed 2022-10-29 11:05:24 +05:30
1 parent 75edb1cf21
commit 861d2674d7
1 file changed
+15
+15
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