feat(ansible): ansible 优化
这个提交包含在:
@@ -1,12 +0,0 @@
|
||||
# worker 工作节点
|
||||
server: "https://k3s.dev.cm:6443"
|
||||
token: "K1010dd6f0853e824cfaf417117f31a0d797a738aa2d4b9d01cd5972a9b084c81a0::server:e4836f1f469315fadd5b12c07d7fb10e"
|
||||
|
||||
# 网络相关
|
||||
# WARN 阿里云、华为云因使用100网段作为dns等内部服务 需要关闭netfilter 否则会自动添加iptables规则导致无法访问dns
|
||||
# WARN 需要添加 extraArgs=--netfilter-mode=nodivert
|
||||
vpn-auth: "name=tailscale,joinKey=tskey-auth-kUMo6hWP9711CNTRL-oo21xakMTxCKJBWK8t9XxComm3fAFUvy"
|
||||
|
||||
# 节点相关
|
||||
# 保留节点资源 根据节点做不同配置
|
||||
# kubelet-arg: "kube-reserved=cpu=1000m,memory=1Gi"
|
||||
@@ -1,16 +0,0 @@
|
||||
# server 主节点
|
||||
cluster-init: true
|
||||
tls-san:
|
||||
- "k3s.dev.cm,k3s.fillcode.com"
|
||||
|
||||
# 数据相关
|
||||
etcd-snapshot-retention: "1"
|
||||
etcd-snapshot-schedule-cron: "0 0 * * *"
|
||||
etcd-snapshot-compress: true
|
||||
|
||||
# 网络相关
|
||||
vpn-auth: "name=tailscale,joinKey=tskey-auth-kUMo6hWP9711CNTRL-oo21xakMTxCKJBWK8t9XxComm3fAFUvy"
|
||||
|
||||
# 组件相关
|
||||
disable:
|
||||
- traefik
|
||||
@@ -1,17 +0,0 @@
|
||||
# server 从节点
|
||||
server: "https://tca:6443"
|
||||
token: "K1010dd6f0853e824cfaf417117f31a0d797a738aa2d4b9d01cd5972a9b084c81a0::server:e4836f1f469315fadd5b12c07d7fb10e"
|
||||
tls-san:
|
||||
- "k3s.dev.cm,k3s.fillcode.com"
|
||||
|
||||
# 数据相关
|
||||
etcd-snapshot-retention: "1"
|
||||
etcd-snapshot-schedule-cron: "0 0 * * *"
|
||||
etcd-snapshot-compress: true
|
||||
|
||||
# 网络相关
|
||||
vpn-auth: "name=tailscale,joinKey=tskey-auth-kUMo6hWP9711CNTRL-oo21xakMTxCKJBWK8t9XxComm3fAFUvy"
|
||||
|
||||
# 组件相关
|
||||
disable:
|
||||
- traefik
|
||||
@@ -1,15 +0,0 @@
|
||||
mirrors:
|
||||
"docker.io":
|
||||
endpoint:
|
||||
- "docker.1ms.run"
|
||||
- "docker.m.daocloud.io"
|
||||
- "mirror.ccs.tencentyun.com"
|
||||
"ghcr.io":
|
||||
endpoint:
|
||||
- "ghcr.m.daocloud.io"
|
||||
"registry.k8s.io":
|
||||
endpoint:
|
||||
- "k8s.m.daocloud.io"
|
||||
"quay.io":
|
||||
endpoint:
|
||||
- "quay.m.daocloud.io"
|
||||
在新议题中引用
屏蔽一个用户