Skip to content

Commit

Permalink
Update provisioner.sh
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
saurabhsingh0308 authored Oct 6, 2023
1 parent 7ca8f79 commit 83251ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/provisioner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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...";
Expand Down Expand Up @@ -114,4 +114,4 @@ fi
if [[ "${POST_CILIUM_INSTALL_SCRIPT}" != "" ]];
then
base64 --decode <<< "${POST_CILIUM_INSTALL_SCRIPT}" | bash
fi
fi

0 comments on commit 83251ad

Please sign in to comment.