-
Notifications
You must be signed in to change notification settings - Fork 6
/
deploy.sh
executable file
·30 lines (22 loc) · 1021 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
echo "Creating the volume..."
kubectl apply -f ./kubernetes/persistent-volume.yml
kubectl apply -f ./kubernetes/persistent-volume-claim.yml
echo "Creating the database credentials..."
kubectl apply -f ./kubernetes/postgres-secret.yml
echo "Creating the api server credentials..."
kubectl apply -f ./kubernetes/fastapi-secret.yml
echo "Creating the api server credentials..."
kubectl apply -f ./kubernetes/react-secret.yml
echo "Creating the Postgres deployment and service..."
kubectl apply -f ./kubernetes/postgres-deployment.yml
kubectl apply -f ./kubernetes/postgres-service.yml
echo "Creating the FastAPI deployment and service..."
kubectl apply -f ./kubernetes/fastapi-deployment.yml
kubectl apply -f ./kubernetes/fastapi-service.yml
echo "Creating the React deployment and service..."
kubectl apply -f ./kubernetes/react-deployment.yml
kubectl apply -f ./kubernetes/react-service.yml
echo "Adding the ingress..."
minikube addons enable ingress
kubectl apply -f ./kubernetes/minikube-ingress.yml