You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while ! curl -m 1 -s -X POST -H "Content-Type: application/json" -d '{"Name":"portworx","type":"prometheus","access":"server","url":"http://px-prometheus:9090"}' http://admin:admin@localhost:30112/api/datasources; do
152
-
echo waiting for grafana
153
-
sleep 2
154
-
done
155
-
curl -s -X PUT -H "Content-Type: application/json" -d '{"oldPassword":"admin","newPassword":"admin","confirmNew":"admin"}' http://admin:admin@localhost:30112/api/user/password
156
-
fi
157
-
while ! kubectl get stc -A -n $namespace | grep -q 'Running\|Online'; do
158
-
echo "Waiting for StorageCluster status online"
159
-
sleep 3
143
+
kubectl apply -f <(curl -s https://docs.portworx.com/samples/portworx-enterprise/k8s/pxc/grafana.yaml | sed s/kube-system/portworx/)
while ! curl -m 1 -s -X POST -H "Content-Type: application/json" -d '{"Name":"portworx","type":"prometheus","access":"server","url":"http://px-prometheus:9090"}' http://admin:admin@localhost:30112/api/datasources; do
152
+
echo waiting for grafana
153
+
sleep 2
160
154
done
155
+
curl -s -X PUT -H "Content-Type: application/json" -d '{"oldPassword":"admin","newPassword":"admin","confirmNew":"admin"}' http://admin:admin@localhost:30112/api/user/password
161
156
fi
162
157
158
+
# Wait for cluster readiness
159
+
while ! kubectl get stc -A -n portworx | grep -q 'Running\|Online'; do
160
+
echo "Waiting for StorageCluster status online"
161
+
sleep 3
162
+
done
163
+
163
164
# install storkctl
164
-
STORK_POD=$(kubectl get pods -n $namespace -l name=stork -o jsonpath='{.items[0].metadata.name}')
165
-
while ! kubectl cp -n $namespace $STORK_POD:/storkctl/linux/storkctl /usr/local/bin/storkctl ; do
165
+
STORK_POD=$(kubectl get pods -n portworx -l name=stork -o jsonpath='{.items[0].metadata.name}')
166
+
while ! kubectl cp -n portworx $STORK_POD:/storkctl/linux/storkctl /usr/local/bin/storkctl ; do
166
167
echo "trying to kubectl cp storkctl out of $STORK_POD"
167
168
sleep 2
168
-
STORK_POD=$(kubectl get pods -n $namespace -l name=stork -o jsonpath='{.items[0].metadata.name}')
169
+
STORK_POD=$(kubectl get pods -n portworx -l name=stork -o jsonpath='{.items[0].metadata.name}')
0 commit comments