kubeadm-cert 官方的 kubeadm 部署的集群 CA 有效期默认是10年,其他证书有效期默认是1年,1年有效期在真实使用过程中,往往不够,因此需要自行修改 CA 的有效期然后编译
服务暴露 一、metallb helm repo add metallb https://metallb.github.io/metallb helm install metallb metallb/metallb --version=0.13.7 -n metallb-system --create-namespace helm repo add serialt https://serialt.github.io/helm-charts helm install metallb-config serialt/metallb-config --set "ipPoolRange=192.168.80.40-192.168.80.49" -n metallb-system --version 0.0.1 helm 测试: https://artifacthub.io/packages/helm/bitnami/nginx $ helm repo add bitnami https://charts.bitnami.com/bitnami $ helm install my-release bitnami/nginx [root@localhost k3s]# kubectl get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP
k8s doc 1、节点加入失败 日志信息 ...... [control-plane] Creating static Pod manifest for "kube-controller-manager" W0329 00:01:51.364121 19209 manifests.go:214] the default kube-apiserver authorization-mode is "Node,RBAC"; using "Node,RBAC" [control-plane] Creating static Pod manifest for "kube-scheduler" W0329 00:01:51.373807 19209 manifests.go:214] the default kube-apiserver authorization-mode is "Node,RBAC"; using "Node,RBAC" [check-etcd] Checking that the etcd cluster is healthy error execution phase check-etcd: etcd cluster is not healthy:
Ingress-Nginx kubernetes中暴露服务的三种方式: ClusterIP NodePort LoadBalance 这几种方式都是在service的维度提供的,service的作用体现在两个方面,对集群内
容器退出状态码 参考链接:https://blog.hdls.me/16581348863966.html 当容器终止时,容器引擎使用退出码来报
PostgreSQL 一、安装 docker 安装 # docker-compose.yaml version: "3" services: postgres10-5432: image: "postgres:10-bullseye" container_name: postgres10-5432 shm_size: "1gb" restart: always ports: - "5432:5432" volumes: - /data/postgresql:/var/lib/postgresql/data - $PWD/init.sql:/docker-entrypoint-initdb.d/init.sql environment: - POSTGRES_PASSWORD=xxxxxxxxxxx # init.sql CREATE USER db_user WITH CREATEDB ENCRYPTED PASSWORD 'xxxxxxxxxx'; alter user db_user superuser; mac ### install # 安装指定版本需要加@,例如 @14 brew install postgresql@14 # 查