File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -122,25 +122,21 @@ function main() {
122122 echo " ✓ configured autoscaling"
123123
124124 kubectl -n=cortex delete --ignore-not-found=true daemonset fluentd > /dev/null 2>&1 # Pods in DaemonSets cannot be modified
125- until [ " $( kubectl -n=cortex get pods -l app=fluentd -o json | jq -j ' .items | length' ) " -eq " 0" ]; do sleep 1; done
126125 envsubst < manifests/fluentd.yaml | kubectl apply -f - > /dev/null
127126 echo " ✓ configured logging"
128127
129128 kubectl -n=cortex delete --ignore-not-found=true daemonset cloudwatch-agent-statsd > /dev/null 2>&1 # Pods in DaemonSets cannot be modified
130- until [ " $( kubectl -n=cortex get pods -l name=cloudwatch-agent-statsd -o json | jq -j ' .items | length' ) " -eq " 0" ]; do sleep 1; done
131129 envsubst < manifests/metrics-server.yaml | kubectl apply -f - > /dev/null
132130 envsubst < manifests/statsd.yaml | kubectl apply -f - > /dev/null
133131 echo " ✓ configured metrics"
134132
135133 if [[ " $CORTEX_INSTANCE_TYPE " == p* ]] || [[ " $CORTEX_INSTANCE_TYPE " == g* ]]; then
136134 kubectl -n=cortex delete --ignore-not-found=true daemonset nvidia-device-plugin-daemonset > /dev/null 2>&1 # Pods in DaemonSets cannot be modified
137- until [ " $( kubectl -n=kube-system get pods -l name=nvidia-device-plugin-ds -o json | jq -j ' .items | length' ) " -eq " 0" ]; do sleep 1; done
138135 envsubst < manifests/nvidia.yaml | kubectl apply -f - > /dev/null
139136 echo " ✓ configured gpu support"
140137 fi
141138
142- kubectl -n=cortex delete --ignore-not-found=true --grace-period=10 deployment operator > /dev/null 2>&1
143- until [ " $( kubectl -n=cortex get pods -l workloadID=operator -o json | jq -j ' .items | length' ) " -eq " 0" ]; do sleep 1; done
139+ kubectl -n=cortex delete --ignore-not-found=true deployment operator > /dev/null 2>&1
144140 envsubst < manifests/operator.yaml | kubectl apply -f - > /dev/null
145141 echo " ✓ started operator"
146142
You can’t perform that action at this time.
0 commit comments