The installation scripts should not leave behind unused files created
during their run, but instead remove them on success:
- index.html, nginx-app.yaml generated by nginx testing;
- tiller-rba.yaml generated by tiller install;
Change-Id: Iebbfb13e0da6f9657dad65dc34cf62147210c487
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
kubectl create -f "${TILLER_SA_RBAC}"
helm init --service-account tiller --tiller-image="jessestuart/tiller:${VERSION}"
fi
+rm -f "${TILLER_SA_RBAC}"
svcip=$(kubectl get services nginx -o json | grep clusterIP | cut -f4 -d'"')
sleep 10
-wget "http://$svcip"
+wget -O /dev/null "http://$svcip"
kubectl delete -f "${NGINX_APP}"
+rm -f "${NGINX_APP}"
kubectl get rc
kubectl get pods
kubectl get services