-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy_dav_huts.sh
42 lines (33 loc) · 1.31 KB
/
deploy_dav_huts.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
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
microk8s enable dns ingress registry rbac storage helm3
cd ./dav-huts
git pull
docker build . -t 75.119.134.70:32000/dav-huts-backend:registry
cd ..
# cd ./dav-huts-frontend
# git pull
# docker build . -t 75.119.134.70:32000/dav-huts-frontend:registry
# cd ..
# "Push images"
docker push 75.119.134.70:32000/dav-huts-frontend:registry
docker push 75.119.134.70:32000/dav-huts-backend:registry
# Deploy "Cluster"
microk8s kubectl apply -f infra/backend_deployment.yaml
microk8s kubectl apply -f infra/frontend_deployment.yaml
microk8s kubectl apply -f infra/mongo_deployment.yaml
# Install cert manager
# microk8s kubectl create namespace cert-manager
# microk8s helm3 repo add jetstack https://charts.jetstack.io
# microk8s helm3 repo update
# microk8s helm3 upgrade --install cert-manager jetstack/cert-manager \
# --namespace cert-manager\
# --set installCRDs=true \
# --set ingressShim.defaultIssuerName=letsencrypt-production \
# --set ingressShim.defaultIssuerKind=ClusterIssuer \
# --set ingressShim.defaultIssuerGroup=cert-manager.io
# microk8s kubectl apply -f infra/ssl_cert_manager.yaml
# Add Ingress
# Adjustments need to be done to:
# https://github.com/jetstack/cert-manager/issues/2517#issuecomment-753067396
microk8s kubectl apply -f infra/ingress.yaml
microk8s kubectl rollout restart deployment