随笔分类 - Py - K8S
摘要:handle.py ... def _terminal_start(self, namespace, pod_name, container): command = [ "/bin/sh", "-c", 'TERM=xterm-256color; export TERM; [ -x /bin/bas
阅读全文
摘要:apiVersion: v1 #必选,版本号,例如v1,版本号必须可以用 kubectl api-versions 查询到 . kind: Pod #必选,Pod metadata: #必选,元数据 name: string #必选,Pod名称 namespace: string #必选,Pod所属
阅读全文
摘要:kubernetes API官方文档在github上经常打不开,于是就放在博客了,以下内容均复制于github All URIs are relative to http://localhost MethodHTTP requestDescription connect_delete_namespa
阅读全文
摘要:查看K8S版本:kubectl version 查看K8S运行环境信息:kubectl cluster-info 查看master组件健康状态:kubectl get componentstatus 查看node健康状态:kubectl get nodes 查看node节点描述:kubectl de
阅读全文