lib/sct/commands/cluster.rb in sct-0.1.4 vs lib/sct/commands/cluster.rb in sct-0.1.5
- old
+ new
@@ -25,9 +25,10 @@
case args[0]
when "up"
system("#{minikube} start")
system("sudo sct hostfile")
system("#{minikube} ssh -- 'sudo su -c \"echo 10048576 > /proc/sys/fs/inotify/max_user_watches\"'")
+ system("kubectl config use-context minikube")
system("kubectl delete pod -n kube-system $(kubectl get pods -n kube-system | grep registry-creds | awk '{print $1}')")
puts "\nāļø You can now visit your environment at š https://spend-cloud.spend.cloud.local š"
when "down"
system("#{minikube} stop")
else