随笔分类 -  Py - K8S

摘要:handle.py ... def _terminal_start(self, namespace, pod_name, container): command = [ "/bin/sh", "-c", 'TERM=xterm-256color; export TERM; [ -x /bin/bas 阅读全文
posted @ 2023-06-02 14:48 醒日是归时 编辑
摘要:apiVersion: v1 #必选,版本号,例如v1,版本号必须可以用 kubectl api-versions 查询到 . kind: Pod #必选,Pod metadata: #必选,元数据 name: string #必选,Pod名称 namespace: string #必选,Pod所属 阅读全文
posted @ 2020-11-19 17:19 醒日是归时 阅读(695) 评论(0) 推荐(0) 编辑
摘要:kubernetes API官方文档在github上经常打不开,于是就放在博客了,以下内容均复制于github All URIs are relative to http://localhost MethodHTTP requestDescription connect_delete_namespa 阅读全文
posted @ 2020-09-04 10:15 醒日是归时 阅读(2548) 评论(0) 推荐(0) 编辑
摘要:查看K8S版本:kubectl version 查看K8S运行环境信息:kubectl cluster-info 查看master组件健康状态:kubectl get componentstatus 查看node健康状态:kubectl get nodes 查看node节点描述:kubectl de 阅读全文
posted @ 2020-08-27 09:53 醒日是归时 阅读(414) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示