File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ kind load docker-image "${controller_image}" --name "${c2}"
5050
5151echo " Configuring CoreDNS"
5252function update_coredns() {
53+ kubectl --kubeconfig ${1} apply -f ../config/crd
5354 kubectl --kubeconfig ${1} patch clusterrole system:coredns --type json --patch-file coredns-rbac.json
5455 # Patching Corefile based on Cilium documentation: https://docs.cilium.io/en/latest/network/clustermesh/mcsapi/#prerequisites
5556 kubectl --kubeconfig ${1} get configmap -n kube-system coredns -o yaml | \
@@ -87,8 +88,8 @@ add_routes "${c1}" "${c2}-control-plane" "${kubeconfig2}"
8788add_routes " ${c2} " " ${c1} -control-plane" " ${kubeconfig1} "
8889echo " Cluster networks connected"
8990
90- ${k1} apply -f ../config/crd -f ../config/ rbac
91- ${k2} apply -f ../config/crd -f ../config/ rbac
91+ ${k1} apply -f ../config/rbac
92+ ${k2} apply -f ../config/rbac
9293
9394${k1} create sa mcs-api-controller
9495${k1} create clusterrolebinding mcs-api-binding --clusterrole=mcs-derived-service-manager --serviceaccount=default:mcs-api-controller
You can’t perform that action at this time.
0 commit comments