$ kubectl create -f kubernetes-cockpit.json -n cockpit-demo



replicationcontroller "kubernetes-cockpit" created

service "kubernetes-cockpit” created



$ kubectl get svc -n cockpit-demo



NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE

kubernetes-cockpit LoadBalancer 10.39.244.214. 35.198.192.81 443:31418/TCP 45s

Browse the cockpit dashboard https://35.198.192.81. Get the credentials from GKE. (Click Show credentials)

Google Kubernetes Engine

Cockpit Dashboard

NOTE:

The cockpit kubernetes dashboard can be deployed as a pod on Kubernetes requiring users to log in using the standard standard authentication configured for access to its API.

This pod can be used on kubernetes that is configured with basic authentication. By default the pod tries to access the kubernetes API securely and expects that the kubernetes API server has been deployed with a CA, certificate files and service account key. In order to change this behavior, edit the kubernetes-cockpit.json and change the KUBE_INSECURE environment variable to true.

After successful login …

Cockpit dashboard integrated with GKE

Congratulations !!! Cockpit dashboard is now running as a kubernetes pod on GKE. Enjoy Learning Kubernetes using cockpit.

Please check: