From 83251adf04d71c2528e2f23c654ff5bbf2f58be2 Mon Sep 17 00:00:00 2001 From: Saurabh Singh <124034402+saurabhsingh0308@users.noreply.github.com> Date: Fri, 6 Oct 2023 20:40:52 +0530 Subject: [PATCH] Update provisioner.sh To update the version of Prometheus CRDS. The current hardcoded version v0.11 is old and sometimes through 404. ```+ kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/release-0.11/manifests/setup/0servicemonitorCustomResourceDefinition.yaml module.cilium.null_resource.install_cilium_with_clustermesh (local-exec): Unable to connect to the server: read tcp 192.168.29.234:52746->185.199.110.133:443: read: connection reset by peer ``` --- scripts/provisioner.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/provisioner.sh b/scripts/provisioner.sh index c1fa197..4a656d9 100755 --- a/scripts/provisioner.sh +++ b/scripts/provisioner.sh @@ -68,7 +68,7 @@ export IPSEC_ENABLED # Manually create the 'ServiceMonitor' CRD from 'kube-prometheus' so we can enable the creation of 'ServiceMonitor' resources in the Cilium Helm chart. if [[ "${INSTALL_KUBE_PROMETHEUS_CRDS}" == "true" ]]; then - kubectl apply -f "https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/release-0.11/manifests/setup/0servicemonitorCustomResourceDefinition.yaml" + kubectl apply -f "https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/release-0.13/manifests/setup/0servicemonitorCustomResourceDefinition.yaml" until kubectl get servicemonitors --all-namespaces; do echo "Waiting for the 'servicemonitors' CRD..."; @@ -114,4 +114,4 @@ fi if [[ "${POST_CILIUM_INSTALL_SCRIPT}" != "" ]]; then base64 --decode <<< "${POST_CILIUM_INSTALL_SCRIPT}" | bash -fi \ No newline at end of file +fi