forked from consort-it/cme2-kubernetes-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path12setupDeploy.sh
executable file
·32 lines (22 loc) · 1.53 KB
/
12setupDeploy.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
#!/bin/bash
# NOTE temporarely removed download cause local files are most latest and contain some modification not yet pushed
#####rm -r download
#####mkdir download
cd download
#####git archive [email protected]:cme/consort-infrastructure.git HEAD:terraform/aws/k8s/ingress ingress-controller.yaml | tar -x
#####git archive [email protected]:cme/consort-infrastructure.git HEAD:terraform/aws/k8s/ingress skipper.yaml | tar -x
#####git archive [email protected]:cme/consort-infrastructure.git HEAD:terraform/aws/k8s/external-dns external-dns.yaml | tar -x
#git archive [email protected]:cme/consort-infrastructure.git HEAD:terraform/aws/k8s sg-dev-k8s.tf | tar -x
#terraform apply download/sg-dev-k8s.tf
cd ..
kubectl create -f download/sa_admin.yaml
kubectl create -f download/sa_admin_rolebinding.yaml
#kubectl create -f download/sa_suadmin_rolebinding.yaml
kubectl create -f download/ingress-controller.yaml
kubectl create -f download/skipper.yaml
#kubectl create -f download/external-dns.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
# NOTE for testing purpose another Microservice gets deployed. Microservice should be available by /jira?etc then
#kubectl create -f download/jira.yaml
kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk '{print $1}')
echo "http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/"