part2 is done (with volumes and a different index for each service)

This commit is contained in:
2025-02-27 07:47:22 -05:00
parent cc358ecf93
commit 8671147c79
6 changed files with 160 additions and 5 deletions

View File

@ -1,7 +1,8 @@
#!/bin/sh
# this is some weird stuff nws
alias jj='sudo rm -rf /tmp/juju*'
echo "alias jj='sudo rm -rf /tmp/juju*'" >> /home/vagrant/.bashrc
source /home/vagrant/.bashrc
# install docker
sudo apt-get update
@ -26,5 +27,16 @@ curl -LO https://github.com/kubernetes/minikube/releases/latest/download/minikub
sudo install minikube-linux-amd64 /usr/local/bin/minikube && rm minikube-linux-amd64
sudo minikube start --driver=docker --force
jj
sudo minikube kubectl -- apply -f /vagrant/confs/app1.yaml
sudo minikube addons enable ingress
sudo minikube kubectl -- apply -f /vagrant/confs/indexes.yaml
sudo minikube kubectl -- apply -f /vagrant/confs/app1.yaml
sudo minikube kubectl -- apply -f /vagrant/confs/app2.yaml
sudo minikube kubectl -- apply -f /vagrant/confs/app3.yaml
until sudo minikube kubectl -- apply -f /vagrant/confs/ingress.yaml
do
echo ingress failed try again
done