06 – Getting onto Oracle Kubernetes Engine Dashboard

Navigation Menu

Starting Kubernetes Dashboard on Host Machine
[email protected]:~$ kubectl proxy
error: Error loading config file "/home/oracle/.kube/config": 
read /home/oracle/.kube/config: is a directory
[email protected]:~$ export KUBECONFIG=$HOME/kubernetes/kubeconfig3
[email protected]:~$ kubectl proxy
Starting to serve on

the Browser URL will be


This will launch login page upload the file that we generated in previous chapter

Login to Kubernetes Dashboard

Deploy Sample Ngnix App on Cluster using Kubectl 
[email protected]:~/kube/hello$ export KUBECONFIG=$HOME/kubernetes/kubeconfig3
[email protected]:~/kube/hello$ kubectl run nginx --image=nginx --port=80 --replicas=3
kubectl run --generator=deployment/apps.v1beta1 is DEPRECATED and will be removed in a future version. Use kubectl create instead.
deployment.apps/nginx created
[email protected]:~/kube/hello$ kubectl get deployments
nginx   3         3         3            3           37s
[email protected]:~/kube/hello$ kubectl get pods -o wide
NAME                     READY   STATUS    RESTARTS   AGE   IP           NODE
nginx-6f858d4d45-jmnw5   1/1     Running   0          1m
nginx-6f858d4d45-whc4k   1/1     Running   0          1m
nginx-6f858d4d45-xk257   1/1     Running   0          1m
View the Deployment on Kubernetes Dashboard

Running on Load Balancer
[email protected]:~/kube/hello$ 
kubectl expose deployment nginx --port=80 --type=LoadBalancer
service/nginx exposed
[email protected]:~/kube/hello$ 

Check the Load Balancer tab under Networking Menu


Check the Public IP of Load balancer to view Nginx home page

What Next >> 07 Pod Configuration using a YAML Deployment