Files
kind-lab/2.5.istio-deploy.sh
2025-07-19 16:30:52 +02:00

52 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
istioctl install --set profile=default -y
kubectl get crd gateways.gateway.networking.k8s.io &> /dev/null || kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.2.1/standard-install.yaml
echo -e "\n########## istio hálózat patchelése: ##########"
kubectl patch svc -n istio-system istio-ingressgateway --patch-file istio-ingressgateway-patch-nodeport.yaml
echo -e "\n########## istio erőforrások patchelése: ##########"
kubectl patch deployment istio-ingressgateway -n istio-system --patch '{
"spec": {
"template": {
"spec": {
"containers": [{
"name": "istio-proxy",
"resources": {
"requests": {
"cpu": "10m",
"memory": "64Mi"
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
}
}
}]
}
}
}
}'
kubectl patch deployment istiod -n istio-system --patch '{
"spec": {
"template": {
"spec": {
"containers": [{
"name": "discovery",
"resources": {
"requests": {
"cpu": "10m",
"memory": "64Mi"
},
"limits": {
"cpu": "500m",
"memory": "512Mi"
}
}
}]
}
}
}
}'