我需要您的帮助来创建多集群网络。
我做了什么:
1- kubectl apply -f chaining.yaml
2-
`helm template cilium \
--namespace cilium \
--set nodeinit.azure=true \
--set global.cni.chainingMode=generic-veth \
--set global.cni.customConf=true \
--set global.nodeinit.enabled=true \
--set global.cni.configMap=cni-configuration \
--set global.tunnel=disabled \
--set global.etcd.enabled=true \
--set global.etcd.managed=true \
> cilium.yaml
kubectl create -f cilium.yaml`
3- kubectl -n kube-system 编辑 cm cilium-config
4-
apiVersion: v1
kind: Service
metadata:
name: cilium-etcd-external
namespace: kube-system
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
spec:
type: LoadBalancer
ports:
- port: 2379
selector:
app: etcd
etcd_cluster: cilium-etcd
io.cilium/app: etcd-operator
5-
git clone https://github.com/cilium/clustermesh-tools.git cd clustermesh-tools
./extract-etcd-secrets.sh
./generate-secret-yaml.sh > clustermesh.yaml
6-
./generate-name-mapping.sh > ds.patch kubectl -n kube-system 补丁 ds cilium -p "$(cat ds.patch)"
7-
kubectl apply -f clustermesh.yaml
kubectl -n kube-system 删除 pod -l k8s-app=cilium
结果:
簇彼此看不到。你有什么想法吗?