摘要:
交叉编译环境准备 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 阅读全文
摘要:
包括了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 阅读全文
摘要:
master 节点执行 node=node01 kubectl drain $node --ignore-daemonsets --delete-emptydir-data node 节点执行 systemctl stop kubelet docker.socket docker.service c 阅读全文
摘要:
wget https://raw.githubusercontent.com/magnific0/wondershaper/master/wondershaper chmod +x wondershaper # 查看帮助 ./wondershaper --help # 设置最大的下载速率为 1024 阅读全文
摘要:
k8s下载脚本的使用方法 设置k8s及相关组件的版本,在k8s_donwload.sh文件同级目录下创建releases文件,并填写版本号,如下示例。如果没有该文件,脚本会从github上自动获取最新版本,并生成releases文件 containerd_version=v1.7.7 runc_ve 阅读全文
摘要:
docker_install.sh #!/bin/bash base_path=$( cd "$(dirname "$0")" || exit 1 pwd ) function download_jq() { wget "https://github.com/jqlang/jq/releases/d 阅读全文
摘要:
docker_install.sh #!/bin/bash base_path=$( cd "$(dirname "$0")" || exit 1 pwd ) function download_jq() { wget "https://github.com/jqlang/jq/releases/d 阅读全文
摘要:
myscript.sh #!/bin/bash org="" name="" # Define the usage function usage() { echo "Usage: $0 [-o|--org <org>] [-n|--name <name>] [-h|--help]" exit 1 } 阅读全文
摘要:
获取源码 k8s_version="v1.27.6" git clone --depth=1 -b ${k8s_version} https://github.com/kubernetes/kubernetes.git 修改源码 sed -i 's/CertificateValidity = tim 阅读全文
摘要:
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 阅读全文