ks是KubeSphere的命令行客户端,可以简化用户、开发者的日常操作。
Getstarted通过brew安装:brewinstalllinuxsuren/linuxsuren/ks 通过hd安装:hdinstalllinuxsuren/ks
特色功能以下的表述默认是以KubeSphere为上下文的:
组件管理启用、禁用组件手动(或自动)更新指定组件输出组件日志编辑组件查看组件的事件(也就是命令kubectldescribe的包装)流水线管理通过java,go等模板创建流水线编辑流水线重置用户密码支持通过设置环境变量kubernetes_type=k3s操作k3s安装KubeSphere通过ks-installer安装通过k3d安装通过kubekey安装通过kind安装组件➜~kubectlkscomManagethecomponentsofKubeSphere Usage:kscomponent[command] Aliases:component,com AvailableCommands:editEditthetargetcomponentenableEnableordisablethespecificKubeSpherecomponentexecExecuteacommandinacontainer.killKillthepodsofthecomponentslogOutputthelogofKubeSpherecomponentresetResetthecomponentbynamewatchUpdateimagesofks-apiserver,ks-controller-manager,ks-console流水线➜~kubectlkspipUsage:kspipeline[flags]kspipeline[command] Aliases:pipeline,pip AvailableCommands:createCreateaPipelineintheKubeSphereclusterdeleteDeleteaspecificPipelineofKubeSphereDevOpseditEditthetargetpipelineviewOutputtheYAMLformatofaPipeline Flags:-h,--helphelpforpipeline Use"kspipeline[command]--help"formoreinformationaboutacommand.安装InstallKubeSpherewithkindorkk Usage:ksinstall[command] AvailableCommands:kindInstallKubeSpherewithkindkkInstallKubeSpherewithkubekey(akakk)
评论