feat(k3s): 集群整体升级
这个提交包含在:
@@ -31,7 +31,7 @@ spec:
|
|||||||
- greenhk
|
- greenhk
|
||||||
image:
|
image:
|
||||||
repository: halohub/halo-pro
|
repository: halohub/halo-pro
|
||||||
tag: 2.20.12
|
tag: 2.20.14
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
ingress:
|
ingress:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ spec:
|
|||||||
repo: https://cloudnative-pg.github.io/charts
|
repo: https://cloudnative-pg.github.io/charts
|
||||||
chart: cloudnative-pg
|
chart: cloudnative-pg
|
||||||
targetNamespace: infra-data
|
targetNamespace: infra-data
|
||||||
version: 0.22.1
|
version: 0.23.0
|
||||||
valuesContent: |-
|
valuesContent: |-
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ spec:
|
|||||||
repo: https://zilliztech.github.io/milvus-helm/
|
repo: https://zilliztech.github.io/milvus-helm/
|
||||||
chart: milvus
|
chart: milvus
|
||||||
targetNamespace: infra-data
|
targetNamespace: infra-data
|
||||||
version: 4.2.15
|
version: 4.2.38
|
||||||
valuesContent: |-
|
valuesContent: |-
|
||||||
cluster:
|
cluster:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
chart: oci://registry-1.docker.io/bitnamicharts/redis
|
chart: oci://registry-1.docker.io/bitnamicharts/redis
|
||||||
targetNamespace: infra-data
|
targetNamespace: infra-data
|
||||||
version: 20.2.1
|
version: 20.7.0
|
||||||
valuesContent: |-
|
valuesContent: |-
|
||||||
global:
|
global:
|
||||||
redis:
|
redis:
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ spec:
|
|||||||
repo: https://charts.jetstack.io
|
repo: https://charts.jetstack.io
|
||||||
chart: cert-manager
|
chart: cert-manager
|
||||||
targetNamespace: infra-devops
|
targetNamespace: infra-devops
|
||||||
version: v1.16.2
|
version: v1.17.0
|
||||||
valuesContent: |-
|
valuesContent: |-
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ spec:
|
|||||||
postgresql-ha:
|
postgresql-ha:
|
||||||
enabled: false
|
enabled: false
|
||||||
image:
|
image:
|
||||||
tag: 1.22.6
|
tag: 1.23.3
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: nginx
|
className: nginx
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ spec:
|
|||||||
repo: https://vmware-tanzu.github.io/helm-charts
|
repo: https://vmware-tanzu.github.io/helm-charts
|
||||||
chart: velero
|
chart: velero
|
||||||
targetNamespace: infra-devops
|
targetNamespace: infra-devops
|
||||||
version: 8.1.0
|
version: 8.3.0
|
||||||
valuesContent: |-
|
valuesContent: |-
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ spec:
|
|||||||
repo: https://grafana.github.io/helm-charts
|
repo: https://grafana.github.io/helm-charts
|
||||||
chart: loki
|
chart: loki
|
||||||
targetNamespace: infra-monitor
|
targetNamespace: infra-monitor
|
||||||
version: 6.23.0
|
version: 6.25.1
|
||||||
valuesContent: |-
|
valuesContent: |-
|
||||||
deploymentMode: SingleBinary
|
deploymentMode: SingleBinary
|
||||||
gateway:
|
gateway:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ spec:
|
|||||||
repo: https://prometheus-community.github.io/helm-charts
|
repo: https://prometheus-community.github.io/helm-charts
|
||||||
chart: kube-prometheus-stack
|
chart: kube-prometheus-stack
|
||||||
targetNamespace: infra-monitor
|
targetNamespace: infra-monitor
|
||||||
version: 66.4.0
|
version: 69.2.0
|
||||||
valuesContent: |-
|
valuesContent: |-
|
||||||
kubeControllerManager:
|
kubeControllerManager:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
repo: https://kubernetes.github.io/ingress-nginx
|
repo: https://kubernetes.github.io/ingress-nginx
|
||||||
chart: ingress-nginx
|
chart: ingress-nginx
|
||||||
version: 4.11.3
|
version: 4.12.0
|
||||||
targetNamespace: infra-net
|
targetNamespace: infra-net
|
||||||
valuesContent: |-
|
valuesContent: |-
|
||||||
fullnameOverride: ingress-nginx
|
fullnameOverride: ingress-nginx
|
||||||
@@ -30,6 +30,7 @@ spec:
|
|||||||
config:
|
config:
|
||||||
use-forwarded-headers: "true"
|
use-forwarded-headers: "true"
|
||||||
allow-snippet-annotations: "true"
|
allow-snippet-annotations: "true"
|
||||||
|
annotations-risk-level: Critical
|
||||||
# http to https重定向
|
# http to https重定向
|
||||||
ssl-redirect: "true"
|
ssl-redirect: "true"
|
||||||
# 自定义错误页面
|
# 自定义错误页面
|
||||||
@@ -105,7 +106,7 @@ spec:
|
|||||||
plugins: "crowdsec"
|
plugins: "crowdsec"
|
||||||
lua-shared-dicts: "crowdsec_cache: 50m"
|
lua-shared-dicts: "crowdsec_cache: 50m"
|
||||||
# 启用geoip2模块
|
# 启用geoip2模块
|
||||||
maxmindLicenseKey: "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"
|
maxmindLicenseKey: "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"
|
||||||
extraArgs:
|
extraArgs:
|
||||||
default-ssl-certificate: "infra-net/dev-cm-crt"
|
default-ssl-certificate: "infra-net/dev-cm-crt"
|
||||||
# crowdsec插件配置
|
# crowdsec插件配置
|
||||||
@@ -158,6 +159,18 @@ spec:
|
|||||||
registry: docker.io
|
registry: docker.io
|
||||||
image: devcm/default-backend
|
image: devcm/default-backend
|
||||||
tag: v0.1.0
|
tag: v0.1.0
|
||||||
# 和controller部署同一节点
|
autoscaling:
|
||||||
nodeSelector:
|
enabled: true
|
||||||
svccontroller.k3s.cattle.io/enablelb: "true"
|
minReplicas: 1
|
||||||
|
maxReplicas: 3
|
||||||
|
targetCPUUtilizationPercentage: 80
|
||||||
|
affinity:
|
||||||
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: topology.kubernetes.io/region
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- "cn-sh"
|
||||||
|
- "cn-hk"
|
||||||
|
|||||||
+2
-2
@@ -25,9 +25,9 @@ mkdir -p /etc/rancher/k3s && vim /etc/rancher/k3s/config.yaml
|
|||||||
### 安装k3s 此处注意安装类型 是server 还是 agent
|
### 安装k3s 此处注意安装类型 是server 还是 agent
|
||||||
```shell
|
```shell
|
||||||
curl -sfL https://get.k3s.io | \
|
curl -sfL https://get.k3s.io | \
|
||||||
INSTALL_K3S_VERSION=v1.31.4+k3s1 \
|
INSTALL_K3S_VERSION=v1.32.1+k3s1 \
|
||||||
INSTALL_K3S_MIRROR=cn \
|
INSTALL_K3S_MIRROR=cn \
|
||||||
sh -s - server
|
sh -s - agent
|
||||||
```
|
```
|
||||||
|
|
||||||
### 国内安装加速 & 镜像加速地址
|
### 国内安装加速 & 镜像加速地址
|
||||||
|
|||||||
@@ -3,6 +3,11 @@ cluster-init: true
|
|||||||
tls-san:
|
tls-san:
|
||||||
- "k3s.dev.cm,k3s.fillcode.com"
|
- "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-kGPKhWTTQN11CNTRL-V3zxxhg5B9iwHut6guHw8iTrpHfwrwZ7"
|
vpn-auth: "name=tailscale,joinKey=tskey-auth-kGPKhWTTQN11CNTRL-V3zxxhg5B9iwHut6guHw8iTrpHfwrwZ7"
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,11 @@ token: "K1010dd6f0853e824cfaf417117f31a0d797a738aa2d4b9d01cd5972a9b084c81a0::ser
|
|||||||
tls-san:
|
tls-san:
|
||||||
- "k3s.dev.cm,k3s.fillcode.com"
|
- "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-kwoYXmNbiJ11CNTRL-Pzx3Adi1dsLwhZWfSm2LsLQcmjk3UcLv"
|
vpn-auth: "name=tailscale,joinKey=tskey-auth-kwoYXmNbiJ11CNTRL-Pzx3Adi1dsLwhZWfSm2LsLQcmjk3UcLv"
|
||||||
|
|
||||||
|
|||||||
@@ -8,3 +8,6 @@ mirrors:
|
|||||||
"registry.k8s.io":
|
"registry.k8s.io":
|
||||||
endpoint:
|
endpoint:
|
||||||
- "k8s.m.daocloud.io"
|
- "k8s.m.daocloud.io"
|
||||||
|
"quay.io":
|
||||||
|
endpoint:
|
||||||
|
- "quay.m.daocloud.io"
|
||||||
|
|||||||
在新议题中引用
屏蔽一个用户