diff --git a/down.sh b/down.sh index 2c3f5b5..eea2553 100755 --- a/down.sh +++ b/down.sh @@ -1,17 +1,22 @@ #!/bin/bash eval $(minikube -p minikube docker-env) -#kubectl delete all deploymets with test in name +#kubectl delete all deployments with test in name kubectl delete deployment $(kubectl get deployments | grep test | awk '{print $1}') kubectl delete service postgresql-service kubectl delete deployment po +kubectl delete service po-service kubectl delete serviceaccount po-sa kubectl delete rolebinding po-sa-binding kubectl delete secret po-sa-token kubectl delete deployment postgresql kubectl delete secret harbor-credentials kubectl delete deployment base +kubectl delete deployment po-nginx +kubectl delete service po-nginx-service +kubectl delete configmap po-nginx-config +kubectl delete networkpolicy po-analysis-network-policy sleep 3 -docker rmi 'po:latest' \ No newline at end of file +docker rmi 'po:latest' diff --git a/setup.sh b/setup.sh index 37a4f12..cd697fb 100755 --- a/setup.sh +++ b/setup.sh @@ -19,6 +19,11 @@ docker build -t po:latest . #kubectl apply -f k8/manifests/node-pod-orchestration-deployment.yaml #kubectl apply -f k8/manifests/node-pod-orchestration-service.yaml # Add more kubectl apply commands for any additional YAML files +kubectl apply -f k8/node-po-nginx-config-map.yaml +kubectl apply -f k8/node-po-nginx-deployment.yaml +kubectl apply -f k8/node-po-nginx-service.yaml +#kubectl apply -f k8/node-analysis-network-policy.yaml + # Wait for deployments to be ready