Google Cloud Platform

[GKE] Deploying Nginx on GKE

nockdoo 2020. 5. 19. 21:50

kubectl create deployment nginx --image=nginx:1.10.0

 

kubectl get pods

 

kubectl expose deployment nginx --port 80 --type LoadBalancer

 

kubectl get services

 

curl http://<External IP>:80