宵待夜雨的博客

k8s Ingress 获取真实IP

apiVersion: v1 data: use-forwarded-headers: 'true' # 主要配置 proxy-real-ip-cidr: 0.0.0.0/0 # 备选 kind: ConfigMap metadata: annotations: {} labels:

徐智军 Published on 2025-07-30

K3s离线安装

以v1.28.14+k3s1为例 一、准备机器 master:192.168.5.200 worker:192.168.5.200   修改hostname hostnamectl set-hostname <hostname>   关闭防火墙 systemctl stop firewalld sy

徐智军 Published on 2024-10-10

K8s预先拉取镜像

Contianerd作为容器 ctr -n k8s.io image pull registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.6 && ctr -n k8s.io image tag registry.cn-hangzhou.

徐智军 Published on 2024-09-11

同步镜像

skopeo copy --src-creds {源账号}:{源密码} --dest-creds {目的账号}:{目的密码} docker://registry.cn-hangzhou.aliyuncs.com/${image_src} docker://registry.cn-hangzhou.

徐智军 Published on 2024-08-22

K3s安装

中国镜像安装 curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn sh - 用docker作为容器 curl -sfL https://rancher-mirror.ranche

徐智军 Published on 2024-08-21