会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
再见理想
Life is not what you have gained but what you have done!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
232
下一页
2024年7月30日
ArgoCD
摘要: 1、安装 # 从github下载包 修改install.yaml中的镜像地址为自己的镜像地址 kubectl apply -f install.yaml # 若要部署在别的ns请确保基于rbac的授权是正确的 # 下载cli包 https://github.com/argoproj/argo-cd/
阅读全文
posted @ 2024-07-30 00:45 牧之丨
阅读(46)
评论(0)
推荐(0)
2024年7月29日
Argo CD使用CLI工具修改默认密码
摘要: 查看默认密码 kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d 下载 CLI 命令行工具 curl -sSL -o /usr/local/bin/ar
阅读全文
posted @ 2024-07-29 00:29 牧之丨
阅读(137)
评论(0)
推荐(0)
2024年7月26日
gitlab runner install
摘要: gitlab-runner install -d /home/gitlab-runner/ --syslog --user gitlab-runner
阅读全文
posted @ 2024-07-26 12:38 牧之丨
阅读(12)
评论(0)
推荐(0)
2024年7月23日
4.4 服务器上的 Git - 配置服务器
摘要: 配置服务器 我们来看看如何配置服务器端的 SSH 访问。 本例中,我们将使用 authorized_keys 方法来对用户进行认证。 同时我们假设你使用的操作系统是标准的 Linux 发行版,比如 Ubuntu。 首先,创建一个操作系统用户 git,并为其建立一个 .ssh 目录。 Note 以下操
阅读全文
posted @ 2024-07-23 02:17 牧之丨
阅读(27)
评论(0)
推荐(0)
/etc/rancher/k3s/registries.yaml
摘要: mirrors: "192.168.50.3": endpoint: - "https://192.168.50.3"configs: "192.168.50.3": auth: username: "hello" password: "hello@123$" tls: cert_file: /ro
阅读全文
posted @ 2024-07-23 00:57 牧之丨
阅读(86)
评论(0)
推荐(0)
2024年7月22日
containerd 导入镜像
摘要: containerd 导入镜像 containerd而非docker,需要离线导入镜像 解决原理https://segmentfault.com/a/1190000019534913ctr --namespace=k8s.io images ls 获取到你需要的镜像名称和版本之后 (参见后面的排查技
阅读全文
posted @ 2024-07-22 21:29 牧之丨
阅读(476)
评论(0)
推荐(0)
ctr命令的基本使用与技巧
摘要: k8s早1.24后放弃docker,并把containerd作为运行时组件,containerd 调用链更短,组件更少,更稳定,占用节点资源更少 ctr是containerd的一个客户端工具 crictl 是 CRI 兼容的容器运行时命令行接口,可以使用它来检查和调试 Kubernetes 节点上的
阅读全文
posted @ 2024-07-22 15:24 牧之丨
阅读(1756)
评论(0)
推荐(0)
id
摘要: sudo hostnamectl set-hostname nvx60-95sudo hostnamectl set-hostname nvx60-96 cat hosts >> /etc/hosts ssh-keygen -t rsa -b 4096 -C "nvx60-95@xxx.com" s
阅读全文
posted @ 2024-07-22 15:07 牧之丨
阅读(31)
评论(0)
推荐(0)
kubernetes批量删除长期处于Terminating状态的namespace
摘要: 环境是k3s 1.19.1版本 有时候跑实验,实验总是卡住,而且还删不了ns,一跑又n个 强行删除有风险,强删需谨慎!! 创建脚本 delns.sh #!/bin/bash for i in "$@" ; do echo "接收到ns名称为$i,准备删除" kubectl get ns $i -o
阅读全文
posted @ 2024-07-22 14:58 牧之丨
阅读(76)
评论(0)
推荐(0)
2024年7月19日
shell 下 exec,source,.,bash和sh以及export得区别
摘要: exec执行命令时,不会启用新的shell进程。 source和 .也不会启用新的shell进程,在当前shell中执行,设定的局部变量在执行完命令后仍然有效。 bash或sh执行时,会另起一个子shell进程,其继承父shell进程的环境变量,其子shell进程的变量执行完后不影响父shell进程
阅读全文
posted @ 2024-07-19 21:16 牧之丨
阅读(98)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
232
下一页
公告