Galera, fiz um .bat simples para restartar tudo até agora:
cls
cd C:\alura\kubernetes\ # coloque a sua pasta de yaml
kubectl delete replicaset portal-noticias-replicaset
kubectl delete service svc-db-noticias
kubectl delete service svc-portal-noticias
kubectl delete service svc-sistema-noticias
kubectl delete pod portal-noticias
kubectl delete pod sistema-noticias
kubectl delete pod db-noticias
kubectl delete configmap db-configmap
kubectl delete configmap portal-configmap
kubectl delete configmap sistema-configmap
kubectl delete deployment portal-noticias-deployment
kubectl delete deployment sistema-noticias-deployment
kubectl delete deployment db-noticias-deployment
kubectl apply -f .\db-configmap.yaml
kubectl apply -f .\portal-configmap.yaml
kubectl apply -f .\sistema-configmap.yaml
kubectl apply -f .\db-noticias-deployment.yaml
kubectl annotate deployment sistema-noticias-deployment kubernetes.io/change-cause="Criando banco de dados de noticias na versao 1"
kubectl apply -f .\sistema-noticias-deployment.yaml
kubectl annotate deployment sistema-noticias-deployment kubernetes.io/change-cause="Criando sistema de noticias na versao 1"
kubectl apply -f .\portal-noticias-deployment.yaml
kubectl annotate deployment portal-noticias-deployment kubernetes.io/change-cause="Criando portal de noticias na versao 1"
Quem quiser, é só copiar e colar em um arquivo .bat , para criar um shell script é seguir o mesmo conceito. Vlw!