How to Deploy a test app on Kubernetes on vSphere

In this guide I will show you how to deploy a test app on Kubernetes running on vSphere.


Kubernetes installed and configured on vSphere using this guide

Use kubectl to deploy a stateless container

kubectl run --image=vmtocloud/myblog vmtocloud-myblog --port=80 --env="DOMAIN=cluster"

Use a service to access the application

kubectl expose deployment vmtocloud-myblog --type=NodePort --name=vmtocloud-myblog

Get the NodePort

kubectl describe services vmtocloud-myblog

Get the cluster external IP

kubectl cluster-info

Open a web browser to the app

In my example the address is

View stats on your running app in the Kubernetes Dashboard

Remember sharing is caring!

2 Replies to “How to Deploy a test app on Kubernetes on vSphere”

  1. Pingback: Containers for the vSphere Admin: After School Special Update –

  2. Pingback: KubeWeekly #99 – KubeWeekly

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.