Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Latest commit

 

History

History
13 lines (7 loc) · 317 Bytes

README.md

File metadata and controls

13 lines (7 loc) · 317 Bytes

Services

Commands

kubectl expose pod redis --port=6379 --name redis-service --dry-run=client -o yaml

kubectl expose pod nginx --port=80 --name nginx-service --type=NodePort

kubectl create service clusterip --tcp=6379:6379

kubectl create service nodeport nginx --tcp=80:80 --node-port=30080

kubectl get svc