Below are the commands to deploy nginx in kubernetes cluster. for creating a kubernetes in GCP cluster click here
kubectl run nginx --image=nginx --replicas=2
kubectl get pods -owide
kubectl expose deployment nginx --port=80 --target-port=80 \ --type=LoadBalancer
Category: GCP
Similar Articles