会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
小维江湖
管理
2024年3月8日
docker构建多平台镜像
摘要: 交叉编译环境准备 wget https://github.com/docker/buildx/releases/download/v0.9.1/buildx-v0.9.1.linux-amd64 mv buildx-v0.9.1.linux-amd64 ~/.docker/cli-plugins/d
阅读全文
posted @ 2024-03-08 17:23 小维江湖
阅读(63)
评论(0)
推荐(0)
2024年3月6日
ansible dockerfile
摘要: 包括了docker相关的模块功能 dockerfile FROM python:3.12.2-alpine3.19 # ENV ANSIBLE_VER=2.16.4 RUN set -x \ # Build dependencies && apk --no-cache add --virtual b
阅读全文
posted @ 2024-03-06 17:18 小维江湖
阅读(17)
评论(0)
推荐(0)
2024年1月12日
k8s 将 cri 从 docker 切换到 containerd
摘要: master 节点执行 node=node01 kubectl drain $node --ignore-daemonsets --delete-emptydir-data node 节点执行 systemctl stop kubelet docker.socket docker.service c
阅读全文
posted @ 2024-01-12 16:06 小维江湖
阅读(125)
评论(0)
推荐(0)
2023年11月2日
网络速率限制
摘要: wget https://raw.githubusercontent.com/magnific0/wondershaper/master/wondershaper chmod +x wondershaper # 查看帮助 ./wondershaper --help # 设置最大的下载速率为 1024
阅读全文
posted @ 2023-11-02 16:13 小维江湖
阅读(33)
评论(0)
推荐(0)
2023年10月30日
k8s及其基本插件离线文件下载和安装
摘要: k8s下载脚本的使用方法 设置k8s及相关组件的版本,在k8s_donwload.sh文件同级目录下创建releases文件,并填写版本号,如下示例。如果没有该文件,脚本会从github上自动获取最新版本,并生成releases文件 containerd_version=v1.7.7 runc_ve
阅读全文
posted @ 2023-10-30 18:29 小维江湖
阅读(354)
评论(0)
推荐(0)
docker二进制安装
摘要: docker_install.sh #!/bin/bash base_path=$( cd "$(dirname "$0")" || exit 1 pwd ) function download_jq() { wget "https://github.com/jqlang/jq/releases/d
阅读全文
posted @ 2023-10-30 18:25 小维江湖
阅读(99)
评论(0)
推荐(0)
2023年10月27日
安装docker
摘要: docker_install.sh #!/bin/bash base_path=$( cd "$(dirname "$0")" || exit 1 pwd ) function download_jq() { wget "https://github.com/jqlang/jq/releases/d
阅读全文
posted @ 2023-10-27 18:28 小维江湖
阅读(16)
评论(0)
推荐(0)
2023年10月25日
shell 传参模板
摘要: myscript.sh #!/bin/bash org="" name="" # Define the usage function usage() { echo "Usage: $0 [-o|--org <org>] [-n|--name <name>] [-h|--help]" exit 1 }
阅读全文
posted @ 2023-10-25 17:29 小维江湖
阅读(14)
评论(0)
推荐(0)
2023年10月17日
k8s kubeadm编译修改证书默认期限
摘要: 获取源码 k8s_version="v1.27.6" git clone --depth=1 -b ${k8s_version} https://github.com/kubernetes/kubernetes.git 修改源码 sed -i 's/CertificateValidity = tim
阅读全文
posted @ 2023-10-17 15:12 小维江湖
阅读(145)
评论(0)
推荐(0)
2023年10月11日
配置渲染工具
摘要: dockerfile FROM python:3.11.3-alpine3.17 COPY requirements.txt . RUN pip install --upgrade pip -i https://mirrors.cloud.tencent.com/pypi/simple && \ p
阅读全文
posted @ 2023-10-11 16:40 小维江湖
阅读(13)
评论(0)
推荐(0)
下一页
公告