摘要: ####### 安装指定版本 https://studygolang.com/dl 找到对应版本 wget https://studygolang.com/dl/golang/go1.17.linux-amd64.tar.gz sudo tar -C /usr/local -xzf go1.17.l 阅读全文
posted @ 2022-04-22 16:33 vx_guanchaoguo0 阅读(34) 评论(0) 推荐(0) 编辑
摘要: gland run code wsl2 ######## install wsl --install wsl -l -v wsl --list --online wsl --install -d DISTRO-NAME wsl --update #内核更新 阅读全文
posted @ 2022-04-22 16:13 vx_guanchaoguo0 阅读(57) 评论(0) 推荐(0) 编辑
摘要: chocolatey 可以类似 mac brew 可以很方便的管理包 官方文档 https://chocolatey.org/install ####### powershell 管理方式打开 Set-ExecutionPolicy Bypass -Scope Process -Force; [Sy 阅读全文
posted @ 2022-04-22 13:10 vx_guanchaoguo0 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 基本命令 kubectl kubeadm 区别 kubeadm 用于初始化Cluster 证书更换 token 添加节点 kubectl 操作对象是集群资源 集群常用资源极其简称 node (节点) po(pod) ns(命名空间namespace) svc(service服务):定义了一个 Pod 阅读全文
posted @ 2022-04-21 17:47 vx_guanchaoguo0 阅读(329) 评论(0) 推荐(0) 编辑
摘要: endpiont serivce 后面的一组可以被访问的端点 一般 Pod 都不是一个独立存在,所以一组 Pod 的端点合在一起称为 EndPoints 只有被 Service Selector 匹配选中并且状态为 Running 的才会被加入到和 Service 同名的 Endpoints 中。 阅读全文
posted @ 2022-04-21 17:33 vx_guanchaoguo0 阅读(38) 评论(0) 推荐(0) 编辑
摘要: dashboard 提示匿名不发访问deflaut namespace 可以给匿名用户创建角色 kubectl create clusterrolebinding test:anonymous --clusterrole=cluster-admin --user=system:anonymous 临 阅读全文
posted @ 2022-04-21 14:33 vx_guanchaoguo0 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 两种方式登录 token 上一篇文章已经介绍 kubeconfig $TOKEN=((kubectl -n kube-system describe secret default | Select-String "token:") -split " +")[1] kubectl config set 阅读全文
posted @ 2022-04-21 14:03 vx_guanchaoguo0 阅读(58) 评论(0) 推荐(0) 编辑
摘要: dashboard 一段时间不操作后token 过期 修改dashboard.yml template: metadata: labels: k8s-app: kubernetes-dashboard spec: containers: - name: kubernetes-dashboard im 阅读全文
posted @ 2022-04-21 12:02 vx_guanchaoguo0 阅读(191) 评论(0) 推荐(0) 编辑
摘要: k8s 证书更新 k8s 每个组件之间是通过证书认证相互通讯 在代码中写死是默认有效期是一年 证书分类 序号 证书作用 类型 1 etcd节点间通讯的证书 服务器和客户端证书(因节点间互相访问) 2 etcd向外提供服务使用 服务器证书(因被访问) 3 apiserver访问etcd使用 客户端证书 阅读全文
posted @ 2022-04-21 10:47 vx_guanchaoguo0 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 背景 k8s开发进入虚拟机 但是发现 Hyper-v 自动创建一个 DockerDesktopVM win +s 输入 hy 回车即可看到 Hyper-v管理器 有一个 DockerDesktopVM 但是无法进入 查询资料后发现 如下方法客可实现 docker run --privileged - 阅读全文
posted @ 2022-04-21 10:28 vx_guanchaoguo0 阅读(491) 评论(0) 推荐(0) 编辑