Skip to content

Commit

Permalink
Added nodePort
Browse files Browse the repository at this point in the history
  • Loading branch information
qtkhajacloud committed Dec 4, 2022
1 parent 9180f87 commit d126d21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dec22/svc/nginx-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ kind: Service
metadata:
name: nginx-svc
spec:
type: ClusterIP
type: NodePort
selector:
app: nginx
ver: "1.0"
ports:
- name: webport
port: 35000
targetPort: 80
targetPort: 80
nodePort: 8080

0 comments on commit d126d21

Please sign in to comment.