k8s-hpc-demo/stop_cluster.sh

14 lines
346 B
Bash
Raw Normal View History

2019-04-30 18:21:03 +00:00
#!/bin/bash
# Stop the cluster.
cd cluster
helm template chart --namespace cluster --name cluster -f ../definitions/cluster_definition.yaml -f ssh-key.yaml | kubectl -n cluster delete -f -
# Delete the Kubernetes resources.
cd ..
kubectl delete -f definitions/account_definitions.yaml
kubectl delete -f definitions/namespace_definition.yaml