Prerequisite – This guide assumes that you already have a kubernetes cluster running on IBM cloud. If not you can create one following this guide.

1. Click on create new resource on your Kubernetes dashboard from the top right area.

create-resource-ibmcloud

2. While in the create from input section, click on Learn More. Then navigate to the link that will open in a new tab.

learn-more-nginx

3. Copy the yaml file code for the nginx deployment.

copy-nginx-yaml

4. Go back to the kubernetes dashboard tab, paste the deployment code and click on upload.

deploy-nginx-ibmcloud

That is all! The nginx application is now successfully deployed in a matter of seconds.

nginx-ready-ibmcloud

From the right hand side, click any of the pod menus and click on exec.

Exec is used to run commands from inside the container.

nginx-container-exec-ibmcloud

You will be dropped inside the container shell, run “service nginx status” inside the container to verify that the nginx service is running. 

nginx-container-shell-ibmcloud
nginx service-ibmcloud

You should see a confirmation and nginx is running successfully. You can then exit from this container.

*All technologies mentioned are trademarks of their respective owners.