写在前面博文内容主要为Octant介绍以及桌面Web端的安装教程涉及LinuxWindows的安装。理解不足小伙伴帮忙指正 其实当你什么都经历了,会发现,人生无论你怎么精心策划都抵不过一场命运的安排。 Octant不是仪表板,Octant是一个带有仪表板视图的平台,需要说明的时,这个项目有近10个月没有维护,不过对于k8s工具来讲,我认为它是不次于Lens的项目,并且它开源,Lens要收费了,如果考虑费用问题,我认为这是一个不错的选择。Octant可以展示当前资源的依赖视图,这对于可以直观的看到API资源的依赖关系是很有帮助的。 Octant提供了一种理解复杂Kubernetes环境的新方法。它可以部署为Web,通过浏览器客户端访问,也可以以桌面的方法来安装,你需要的仅仅是一个做了授权的kubeconfig文件。 对于类似的k8s工具,在生产中,Octant结合Rancher可以满足大部分需求。如果你的访问权限受限,只有一个终端,推荐使用kubebox或者k8s。特征:资源查看器:以图形方式可视化Kubernetes集群中对象之间的关系。各个对象的状态用颜色表示以显示工作负载性能。摘要视图:从通常使用多个kubectl命令找到的输出中聚合的单个页面中的合并状态和配置信息。端口转发:使用用于调试应用程序的单个按钮将本地端口转发到正在运行的pod,甚至跨命名空间端口转发多个pod。日志流:查看Pod和容器活动的日志流,以便在不打开多个终端的情况下进行故障排除或监控。标签过滤器:使用标签过滤组织工作负载,以检查命名空间中包含大量对象的集群。集群导航:在不同集群的命名空间或上下文之间轻松更改。还支持多个kubeconfig文件。插件系统:高度可扩展的插件系统,供用户通过gRPC提供额外的功能。插件作者可以在现有视图之上添加组件。桌面端安装window安装PSC:Users山河已无恙DownloadscurloOctant。Setup。0。25。1。exehttps:github。comvmwaretanzuoctantreleasesdownloadv0。25。1Octant。Setup。0。25。1。exe 下载好之后安装,之后桌面上会有一个图标 点击启动它,第一次打开会提示输入kubeconfig文件。 〔rootvms81。liruilongs。github。io〕〔varrun〕cat。kubeconfig 然后点击加载,就可以查看集群信息 哈,可能我机器CPU不行,感觉桌面端很耗资源。 web端安装window安装PSC:Users山河已无恙chocoinstalloctantconfirmforceChocolateyv1。1。0Installingthefollowingpackages:octantByinstalling,youacceptlicensesforthepackages。octantv0。25。1alreadyinstalled。Forcingreinstallofversion0。25。1。Pleaseuseupgradeifyoumeanttoupgradetoanewversion。octantv0。25。1(forced)〔Approved〕octantpackagefilesinstallcompleted。Performingotherinstallationsteps。Usingsystemproxyserver127。0。0。1:49739。Downloadingoctant64bitfromhttps:github。comvmwaretanzuoctantreleasesdownloadv0。25。1octant0。25。1Windows64bit。zipUsingsystemproxyserver127。0。0。1:49739。Progress:100CompleteddownloadofC:Users山河已无恙AppDataLocalTempchocolateyoctant。25。1octant0。25。1Windows64bit。zip(54。37MB)。Downloadofoctant0。25。1Windows64bit。zip(54。37MB)completed。Hashesmatch。ExtractingC:Users山河已无恙AppDataLocalTempchocolateyoctant。25。1octant0。25。1Windows64bit。ziptoC:ProgramDatachocolateyliboctantools。。。C:ProgramDatachocolateyliboctantoolsShimGenhassuccessfullycreatedashimforoctant。exeTheinstallofoctantwassuccessful。SoftwareinstalledtoC:ProgramDatachocolateyliboctantoolsChocolateyinstalled11packages。Seethelogfordetails(C:ProgramDatachocolateylogschocolatey。log)。EnjoyusingChocolatey?Exploremoreamazingfeaturestotakeyourexperiencetothenextlevelathttps:chocolatey。orgcomparePSC:Users山河已无恙 启动运行PSC:ProgramDatachocolateyliboctantoolsoctant0。25。1Windows64bit。octant。exe20230114T06:12:55。5340500INFOdashdash。go:637cannotfindkubeconfig:C:Users山河已无恙。kubeconfig20230114T06:12:55。5340500INFOdashdash。go:134novalidkubeconfigfound,initializingloadingAPI20230114T06:12:55。5360500INFOdashdash。go:154waitingforkubeconfig。。。20230114T06:12:55。5770500INFOdashdash。go:546Dashboardisavailableathttp:127。0。0。1:7777 输入kubeconfig文件信息 可以更换主题,查看集群信息。 Linux下安装 下载安装包curlooctant0。25。1Linux64bit。tar。gzhttps:github。comvmwaretanzuoctantreleasesdownloadv0。25。1octant0。25。1Linux64bit。tar。gz 解压查看版本信息。〔rootvms81。liruilongs。github。io〕〔ansibleoctant〕tarzxvfoctant0。25。1Linux64bit。tar。gzoctant0。25。1Linux64bitREADME。mdoctant0。25。1Linux64bitoctant〔rootvms81。liruilongs。github。io〕〔ansibleoctant〕octant0。25。1Linux64bitoctantversionVersion:0。25。1Gitcommit:f16cbb951905f1f8549469dfc116ca16cf679d46Built:20220224T23:02:15Z 查看帮助文档了解启动信息〔rootvms81。liruilongs。github。io〕〔ansibleoctant〕octant0。25。1Linux64bitoctanthelpoctantisadashboardforhighbandwidthclusteranalysisoperationsUsage:octant〔flags〕octant〔command〕AvailableCommands:completiongeneratetheautocompletionscriptforthespecifiedshellhelpHelpaboutanycommandversionShowversionFlags:contextstringinitialcontextdisableclusteroverviewdisableclusteroverviewenablefeatureapplicationsenableapplicationsfeaturekubeconfigstringabsolutepathtokubeConfigfilen,namespacestringinitialnamespacenamespaceliststringsalistofnamespacestouseonstartpluginpathstringpluginpathv,verboseturnondebugloggingclientmaxrecvmsgsizeintclientmaxreceivermessagesize(default16777216)acceptedhostsstringacceptedhostslist〔DEV〕clientqpsfloat32maximumQPSforclient〔DEV〕(default200)clientburstintmaximumburstforclientthrottle〔DEV〕(default400)disableopenbrowserdisableautomaticlaunchingofthebrowser〔DEV〕disableorigincheckdisablecrossoriginresourcecheckc,enableopencensusenableopencensus〔DEV〕klogverbosityintklogverbositylevel〔DEV〕listeneraddrstringlisteneraddressfortheoctantfrontend〔DEV〕localcontentstringlocalcontentpath〔DEV〕proxyfrontendstringurltosendfrontendrequestto〔DEV〕uiurlstringdashboardurl〔DEV〕browserpathstringthebrowserpathtoopenthebrowseronmemstatsstringlogmemoryusagetothisfilememintervalstringintervaltopollmemoryusage(requiresmemstats),validtimeunitsarens,us(ors),ms,s,m,h。(default100ms)h,helphelpforoctantUseoctant〔command〕helpformoreinformationaboutacommand。 这里在启动的时候需要注意一下,如果终端没有浏览器,需要指定disableopenbrowser,同时如果是其他机器通过IP访问,需要添加监听的任意IP对端口的访问listeneraddr0。0。0。0:7777,默认情况下,Octant会在启动时候自动打开默认浏览器,并且只监听本地对指定端口的访问。〔rootvms81。liruilongs。github。io〕〔ansibleoctantoctant0。25。1Linux64bit〕。octantkubeconfig。kubeconfigdisableopenbrowserdisableoriginchecklisteneraddr0。0。0。0:777720230114T20:05:20。6730800INFOdashwatcher。go:117watchingconfigfile{component:configwatcher,config:root。kubeconfig}。。。。。。。。。。。。。20230114T20:05:20。6770800INFOmodulemanager。go:87registeringaction{component:modulemanager,actionPath:action。octant。devdeleteObject,modulename:configuration}20230114T20:05:20。6770800WARNpluginmanager。go:405Unabletoaddroot。configoctantpluginstothepluginwatcher。Error:nosuchfileordirectorygithub。comvmwaretanzuoctantpkgplugin。(Manager)。watchPluginFileswoctantoctantpkgpluginmanager。go:40520230114T20:05:20。6910800INFOdashdash。go:546Dashboardisavailableathttp:〔::〕:7777 其他机器测试。可以直接进入当前pod的内部环境 查看日志信息 查看资源依赖关系 不对不说,octant很消耗资源,尤其是对CPU,所以不太建议部署到集群相关的节点。 关于octant和小伙伴分享到这里,安装很简单,赶快去尝试吧。博文参考 https:octant。dev https:github。comvmwaretanzuoctant https:reference。octant。dev?pathstorydocsintropage