01 2022 档案

摘要:准备工作 1. 检查k8s的版本 [root@k8s-node1 ~]# kubectl version Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.5", GitCommit:"aea7bbadd2fc 阅读全文
posted @ 2022-01-24 17:34 cosmoswong 阅读(3179) 评论(0) 推荐(0) 编辑
摘要:golang中的数据类型 | 类型 | 名称 | 长度 | 零值 | 说明 | | | | | | | | bool | 布尔类型 | 1 | false | 其值不为真即为假,不可以用数字代表true或false | | byte | 字节型 | 1 | 0 | uint8别名 | | rune 阅读全文
posted @ 2022-01-10 11:17 cosmoswong 阅读(8080) 评论(0) 推荐(0) 编辑
摘要:golang中的测试类型 类型 格式 作用 测试函数 函数名前缀为Test 测试程序的一些逻辑行为是否正确 基准函数 函数名前缀为Benchmark 测试函数的性能 示例函数 函数名前缀为Example 为文档提供示例文档 在goland中快速生成测试代码 以字符串分割函数为例,它在作用就是分割字符 阅读全文
posted @ 2022-01-06 17:17 cosmoswong 阅读(557) 评论(0) 推荐(0) 编辑
摘要:我们通常可以见到这种类型的命令: kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') - 阅读全文
posted @ 2022-01-03 22:37 cosmoswong 阅读(413) 评论(0) 推荐(0) 编辑
摘要:多节点集群的安装(https://kubesphere.com.cn/docs/installing-on-linux/introduction/multioverview/) 主机规划 主机 IP 主机名 角色 操作系统 172.30.47.67 master master, etcd CentO 阅读全文
posted @ 2022-01-03 20:55 cosmoswong 阅读(3512) 评论(0) 推荐(0) 编辑

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