This commit is contained in:
2023-07-15 23:58:52 +02:00
parent f07dc44e37
commit e1dd908eac
16 changed files with 356 additions and 0 deletions

15
init_cluster.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
kind delete cluster
kind create cluster --config deployment/kind.yaml
kubectl wait -A --for=condition=ready pod --field-selector=status.phase!=Succeeded --timeout=15m
kubectl get cm -n kube-system kube-proxy -o yaml | sed 's/maxPerCore.*/maxPerCore: 0/' | kubectl apply -n kube-system -f -
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.7.1/deploy/static/provider/kind/deploy.yaml
LB_IP=$(kubectl get svc -n ingress-nginx ingress-nginx-controller -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo "address=/kind.cluster/$LB_IP"