Fixed paths for patching manifests
This commit is contained in:
@@ -20,19 +20,17 @@ Or, you can patch and re-apply your existing manifests with:
|
|||||||
On linux:
|
On linux:
|
||||||
|
|
||||||
```
|
```
|
||||||
sed -i -e 's/https/http/g' \
|
sed -i -e 's/https/http/g' manifests/prometheus-serviceMonitorKubelet.yaml
|
||||||
contrib/kube-prometheus/manifests/prometheus/prometheus-k8s-service-monitor-kubelet.yaml
|
|
||||||
```
|
```
|
||||||
|
|
||||||
On MacOs:
|
On MacOs:
|
||||||
|
|
||||||
```
|
```
|
||||||
sed -i '' -e 's/https/http/g' \
|
sed -i '' -e 's/https/http/g' manifests/prometheus-serviceMonitorKubelet.yaml
|
||||||
contrib/kube-prometheus/manifests/prometheus/prometheus-k8s-service-monitor-kubelet.yaml
|
|
||||||
```
|
```
|
||||||
|
|
||||||
After you have modified the yaml file please run
|
After you have modified the yaml file please run
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl apply -f contrib/kube-prometheus/manifests/prometheus/prometheus-k8s-service-monitor-kubelet.yaml
|
kubectl apply -f manifests/prometheus-serviceMonitorKubelet.yaml
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user