File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,13 @@ manual step that cannot be automated
7171 export RELEASE_NS=eoapi
7272 export SUPPORT_RELEASE_NAME=eoapi-support
7373 export SUPPORT_RELEASE_NS=eoapi-support
74+ PROMETHEUS_URL=" http://${SUPPORT_RELEASE_NAME} -prometheus-server.${SUPPORT_RELEASE_NS} .svc.cluster.local"
7475
7576 helm upgrade --install \
7677 -n $SUPPORT_RELEASE_NS --create-namespace $SUPPORT_RELEASE_NAME \
7778 eoapi/eoapi-support --version 0.1.4 \
78- --set prometheus-adapter.prometheus.url=' http://${SUPPORT_RELEASE_NAME}-prometheus-server.${SUPPORT_RELEASE_NS}.svc.cluster.local ' \
79- --set grafana.datasources.datasources\\ .yaml.datasources[0].url=' http://${SUPPORT_RELEASE_NAME}-prometheus-server.${SUPPORT_RELEASE_NS}.svc.cluster.local ' \
79+ --set prometheus-adapter.prometheus.url=$PROMETHEUS_URL \
80+ --set grafana.datasources.datasources\\ .yaml.datasources[0].url=$PROMETHEUS_URL \
8081 -f /tmp/values-overrides.yaml
8182
8283 helm upgrade --install \
Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ export RELEASE_NAME=eoapi
44export RELEASE_NS=eoapi
55export SUPPORT_RELEASE_NAME=eoapi-support
66export SUPPORT_RELEASE_NS=eoapi
7+ PROMETHEUS_SERVER=" http://${SUPPORT_RELEASE_NAME} -prometheus-server.${SUPPORT_RELEASE_NS} .svc.cluster.local"
78
89helm upgrade --install \
910 -n $SUPPORT_RELEASE_NS --create-namespace $SUPPORT_RELEASE_NAME \
1011 eoapi/eoapi-support --version 0.1.5 \
11- --set prometheus-adapter.prometheus.url=' http://${SUPPORT_RELEASE_NAME}-prometheus-server.${SUPPORT_RELEASE_NS}.svc.cluster.local ' \
12- --set grafana.datasources.datasources\\ .yaml.datasources[0].url=' http://${SUPPORT_RELEASE_NAME}-prometheus-server.${SUPPORT_RELEASE_NS}.svc.cluster.local ' \
12+ --set prometheus-adapter.prometheus.url=$PROMETHEUS_SERVER \
13+ --set grafana.datasources.datasources\\ .yaml.datasources[0].url=$PROMETHEUS_SERVER \
1314 -f /Users/ranchodeluxe/apps/eoapi-k8s/helm-chart/eoapi-support/values.yaml
1415
1516helm upgrade --install \
You can’t perform that action at this time.
0 commit comments