File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -141,12 +141,12 @@ kubectl-pxc config cluster set --portworx-service-namespace=portworx
141141
142142# Install Grafana
143143if [ $platform = ocp4 ]; then
144- kubectl apply -f <(curl -s https://docs.portworx.com/samples/portworx-enterprise/k8s/pxc/grafana-service-account.yaml | sed s/kube-system/portworx/)
144+ kubectl apply -n portworx -f https://docs.portworx.com/samples/portworx-enterprise/k8s/pxc/grafana-service-account.yaml
145145 oc -n portworx adm policy add-cluster-role-to-user cluster-monitoring-view -z grafana
146146 TOKEN=$(oc -n portworx create token grafana --duration=8760h)
147147 THANOS=$(oc get route thanos-querier -n openshift-monitoring -o json | jq -r '.spec.host')
148148 kubectl -n portworx create configmap grafana-source-config --from-file=grafana-datasource-ocp.yaml=<(curl -s https://docs.portworx.com/samples/portworx-enterprise/k8s/pxc/grafana-datasource-ocp.yaml | sed "s/<THANOS_QUERIER_HOST>/$THANOS/;s/<BEARER_TOKEN>/$TOKEN/g")
149- kubectl apply -f <(curl -s https://docs.portworx.com/samples/portworx-enterprise/k8s/pxc/grafana-ocp.yaml | sed s/kube-system/portworx/)
149+ kubectl apply -n portworx -f https://docs.portworx.com/samples/portworx-enterprise/k8s/pxc/grafana-ocp.yaml
150150 # enable OCP4 console plugin
151151 kubectl patch console.operator cluster --type json -p '[{"op": "add", "path": "/spec/plugins/-", "value": "portworx"}]'
152152else
You can’t perform that action at this time.
0 commit comments