A Quick overview and install in less than 5 minutesDefinition From the Docs :Octant is a tool for developers to understand how applications run on a Kubernetes cluster. It aims to be part of the developer’s toolkit for gaining insight and approaching complexity found in Kubernetes. Octant offers a combination of introspective tooling, cluster navigation, and object management along with a plugin system to further extend its capabilities.Octant is one of the recent projects by VMware that aims to simplify the kubernetes view for developers. Now the developers would be able to see what all is happening in the cluster when they are deploying their workloads.Let us setup Octant on a Katakoda cluster and see what all capabilities it provides out of the box to the Developers.This tutorial is a quick overview of the latest version of the octant recently launched by the team which is v0.10.0.Steps:1: Got to- https://www.katacoda.com/courses/kubernetes/playground2: Download the latest octant release v0.10.0master $ wget https://github.com/vmware-tanzu/octant/releases/download/v0.10.0/octant_0.10.0_Linux-64bit.tar.gzmaster $ lsoctant_0.10.0_Linux-64bit.tar.gz# Run master $ tar -xzvf octant_0.10.0_Linux-64bit.tar.gzoctant_0.10.0_Linux-64bit/README.mdoctant_0.10.0_Linux-64bit/octant# Verifymaster $ cp ./octant_0.10.0_Linux-64bit/octant /usr/bin/master $ octant versionVersion: 0.10.0Git commit: 72e66943d660dc7bdd2c96b27cc141f9c4e8f9d8Built: 2020-01-24T00:56:15ZRun Octant- In order to Run octant you can run the Octant command, by default it runs on localhost:7777and if you need to pass additional arguments (like running on a different port) runmaster $ OCTANT_DISABLE_OPEN_BROWSER=true OCTANT_LISTENER_ADDR=0.0.0.0:8900 octant2020-01-26T10:17:29.135Z INFO module/manager.go:79 registering action {"component": "module-manager", "actionPath": "overview/serviceEditor", "module-name": "overview"}2020-01-26T10:17:29.135Z INFO module/manager.go:79 registering action {"component": "module-manager", "actionPath": "overview/startPortForward", "module-name": "overview"}2020-01-26T10:17:29.136Z INFO module/manager.go:79 registering action {"component": "module-manager", "actionPath": "overview/stopPortForward", "module-name": "overview"}2020-01-26T10:17:29.137Z INFO module/manager.go:79 registering action {"component": "module-manager", "actionPath": "overview/commandExec", "module-name": "overview"}2020-01-26T10:17:29.137Z INFO module/manager.go:79 registering action {"component": "module-manager", "actionPath": "overview/deleteTerminal", "module-name": "overview"}2020-01-26T10:17:29.138Z INFO module/manager.go:79 registering action {"component": "module-manager", "actionPath": "deployment/configuration", "module-name": "overview"}2020-01-26T10:17:29.139Z INFO module/manager.go:79 registering action {"component": "module-manager", "actionPath": "overview/containerEditor", "module-name": "overview"}2020-01-26T10:17:29.140Z INFO module/manager.go:79 registering action {"component": "module-manager", "actionPath": "octant/deleteObject", "module-name": "configuration"}2020-01-26T10:17:29.140Z INFO dash/dash.go:391 Using embedded Octant frontend2020-01-26T10:17:29.143Z INFO dash/dash.go:370 Dashboard is available at http://[::]:8900You can see that Octant has started, now open port 8900 on Katakoda kubernetes playground to see the Octant dashboard.In order to open port from Katakoda click on the + and select View HTTP port 8080 on Host 1 and change the port to 8900octant dashboardAs you can see whole of the cluster is visible with easy to navigate options. you can navigate through the namespaces, see the pods running. Just run a few podskubectl run nginx –image nginxkubectl run -i -t busybox –image=busybox –restart=NeverNow go to the workloads section and you can see the pods. Getting into the pods will give a much deeper look. Let us take a full view at busybox pod and see what all things you can easily see via the octant dashboard.Overall ViewResource viewer and Pod logsYou can see how easy it is to view the logs, connected resources, overall summary, and the YAML file.Another thing you can do with Octant is, have your own plugins and view them in octant for added functionalityThis was a brief overview of Octant and how you can set up on a katakoda cluster in less than 5 minutesOctant Documentation: https://octant.dev/docs/master/Octant other communication channels for help and contribution:Kubernetes Slack in the #octant channelTwitterGoogle groupGitHub issuesSaiyam Pathakhttps://www.linkedin.com/in/saiyam-pathak-97685a64/https://twitter.com/SaiyamPathakOctant Simplified was originally published in Kubernauts on Medium, where people are continuing the conversation by highlighting and responding to this story.
Quelle: blog.kubernauts.io
Published by