1
0
dragonflylee 696f6ba425 update demo
Signed-off-by: dragonflylee <dragonflylee@outlook.com>
2023-12-22 16:55:35 +08:00
2022-08-15 13:43:04 +08:00
2023-12-22 16:55:35 +08:00
2023-09-06 17:52:39 +08:00
2023-12-22 16:55:35 +08:00
2023-12-22 16:55:35 +08:00
2023-12-22 16:55:35 +08:00
2023-12-22 16:55:35 +08:00
2023-10-30 18:07:35 +08:00
2022-08-15 13:43:04 +08:00
2023-12-22 16:55:35 +08:00
2022-08-15 13:43:04 +08:00
2023-12-22 16:55:35 +08:00
2023-10-30 18:07:35 +08:00

monitor

operator demo

  • 测试环境
# 安装 KinD
sudo curl -Lo /usr/local/bin/kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64 && sudo chmod +x /usr/local/bin/kind

docker network create kind -o com.docker.network.bridge.name=br-kind
# 部署镜像仓库
docker run --restart always --network kind --name registry --tmpfs /var/lib/registry -p 0.0.0.0:5000:5000 -d registry:2
# 创建带有本地镜像仓库的集群
kind create cluster --image kindest/node:v1.24.15 --config=- <<EOF
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
networking:
  apiServerPort: 6443
  podSubnet: 172.16.0.0/16
  serviceSubnet: 172.19.0.0/16
nodes:
- role: control-plane
- role: worker
- role: worker
containerdConfigPatches:
- |-
  [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
    endpoint = ["https://hub-mirror.c.163.com"]
  [plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost:5000"]
    endpoint = ["http://registry:5000"]
EOF
Description
operator demo
Readme 81 KiB
Languages
Go 93%
Makefile 5.1%
Dockerfile 1.9%