-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
27 lines (16 loc) · 743 Bytes
/
setup.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
gcloud container clusters create cluster-name-here --num-nodes=1 --zone gcp-zone
docker build -t dashboard:v1 .
docker tag dashboard:v1 gcr.io/s-a-322609/dashboard:v1
docker push gcr.io/s-a-322609/dashboard:v1
kubectl apply -f deployment
kubectl apply -f service
kubectl apply -f misc
# for TLS certificate
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.8.2/cert-manager.yaml
kubectl apply -f issuers
# for nginx ingress
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
helm install nginx-ingress ingress-nginx/ingress-nginx
kubectl apply -f ingress.yaml
kubectl annotate ingress dev-ingress cert-manager.io/cluster-issuer=production-issuer-here --overwrite