GCP | How to deploy nginx on Kubernetes cluster

Below are the commands to deploy nginx in kubernetes cluster. for creating a kubernetes in GCP cluster click here

  • In the GCP Console, click Activate Cloud Shell and start Cloud shell
  • Run below kubectl run command, this will create two replicas for nginx
  • Run below command to check the status of pods
  • Run below command to allow access to nginx deployment

  • Category: GCP