随笔分类 -  linux

摘要:kubectl 实现对pod的端口转发 kubectl --namespace drone-service port-forward $POD_NAME 8080:$CONTAINER_PORT 列出pod使用的镜像: $ kubectl get pods --all-namespaces -o j 阅读全文
posted @ 2023-11-21 10:08 liu0076
摘要:使用private-key实现免密登陆配置: 在SSH配置文件(通常是'~/.ssh/config')中,你可以使用'IdentityFile'指令来指定私钥文件,这个指令用于指定身份验证的私钥文件路径。 编辑config文件 Host example.com HostName example.co 阅读全文
posted @ 2023-11-10 22:34 liu0076 阅读(603) 评论(0) 推荐(0)
摘要:rancher中国镜像站地址 https://rancher-mirror.oss-cn-beijing.aliyuncs.com/ https://rancher-mirror.rancher.cn/k3s rancher 路径和中文镜像的对应关系 k3s 安装路径 https://get.k3s 阅读全文
posted @ 2023-01-17 11:08 liu0076 阅读(1624) 评论(0) 推荐(0)