Create .yaml file and Ingress in Google Kubernetes Engine (GKE) using google cloud shell

Aniket Shelar
Oct 1, 2021

STEP 1: Log in to Google Cloud Console.

STEP 2: Select Kubernetes Engine from the menu.

STEP 3: Select Cluster from the menu.

STEP 4: If you have not created a cluster then create a new cluster.

STEP 5: Connect cluster from google cloud shell.

STEP 6: This will ask for Authorize.

STEP 7: Create a YAML file using the command.

nano <file_name.yaml>

STEP 8: Create Ingress using the command.

kubectl create -f <yaml_file_path>

STEP 9: Apply the YAML file using the command.

kubectl apply -f <yaml_file_path>

Ingress and YAML files are created now.

--

--