Skip to content
Snippets Groups Projects
Commit ff0916cb authored by RIEHM Clement's avatar RIEHM Clement
Browse files

Update installationSite.sh

parent 91d7307d
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
#kubectl apply -f stockage.yaml # Install the metrics server
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
# Build the container for backup cronjob
docker build -t wordback ./mysql-backup/
kubectl apply -f ./mysql-configmap.yaml kubectl apply -f ./mysql-configmap.yaml
kubectl apply -f ./mysql-services.yaml kubectl apply -f ./mysql-services.yaml
kubectl apply -f ./mysql-statefulset.yaml kubectl apply -f ./mysql-statefulset.yaml
kubectl apply -f ./wordpress-deployment.yaml kubectl apply -f ./wordpress-deployment.yaml
kubectl autoscale deployment wordpress --cpu-percent=70 --min=1 --max=10
kubectl autoscale StatefulSet mysql --cpu-percent=70 --min=1 --max=10
kubectl get pvc kubectl get pvc
kubectl get pods kubectl get pods
kubectl get services wordpress kubectl get services wordpress
echo "Si l'installation s'est bien passe l'URL suivante doit permettre d'acceder au service" echo "ip du wordpress:"
#minikube service wordpress --url kubectl get service/wordpress -o jsonpath='{.spec.clusterIP}'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment