Skip to content

Commit

Permalink
add service for nginx app
Browse files Browse the repository at this point in the history
  • Loading branch information
Inderpreet authored and Inderpreet committed Oct 29, 2022
1 parent 75edb1c commit 861d267
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions nginx-app/service.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 861d267

Please sign in to comment.