File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -144,8 +144,16 @@ chmod +x /usr/local/bin/pxc-pxctl
144144echo "alias pxctl='kubectl pxc pxctl'" >>/root/.bashrc
145145kubectl-pxc config cluster set --portworx-service-namespace=portworx
146146
147+ # Wait for cluster readiness
148+ while ! kubectl get stc -A -n portworx | grep -q 'Running\|Online'; do
149+ echo "Waiting for StorageCluster status online"
150+ sleep 3
151+ done
152+
147153# Install Grafana
148154if [ $platform = ocp4 ]; then
155+ kubectl patch StorageCluster px-deploy-$cluster -n portworx --type merge --patch '{"spec": {"monitoring": {"prometheus": {"alertManager": {"enabled": false}}}}}'
156+ kubectl patch StorageCluster px-deploy-$cluster -n portworx --type merge --patch '{"spec": {"monitoring": {"prometheus": {"enabled": false}}}}'
149157 kubectl apply -n portworx -f https://docs.portworx.com/samples/portworx-enterprise/k8s/pxc/grafana-service-account.yaml
150158 oc -n portworx adm policy add-cluster-role-to-user cluster-monitoring-view -z grafana
151159 TOKEN=$(oc -n portworx create token grafana --duration=8760h)
@@ -172,10 +180,10 @@ if [ $platform != eks ] && [ $platform != gke ] && [ $platform != ocp4 ] && [ $p
172180fi
173181
174182# Wait for cluster readiness
175- while ! kubectl get stc -A -n portworx | grep -q 'Running\|Online'; do
176- echo "Waiting for StorageCluster status online"
177- sleep 3
178- done
183+ # while ! kubectl get stc -A -n portworx | grep -q 'Running\|Online'; do
184+ # echo "Waiting for StorageCluster status online"
185+ # sleep 3
186+ # done
179187
180188# install storkctl
181189STORK_POD=$(kubectl get pods -n portworx -l name=stork -o jsonpath='{.items[0].metadata.name}')
You can’t perform that action at this time.
0 commit comments