Skip to content

Commit

Permalink
build_image
Browse files Browse the repository at this point in the history
  • Loading branch information
antidodo committed Apr 16, 2024
1 parent 0ec09a8 commit 2676a19
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 7 additions & 2 deletions down.sh
Original file line number Diff line number Diff line change
@@ -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'
docker rmi 'po:latest'
5 changes: 5 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2676a19

Please sign in to comment.