-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtest-infra.sh
executable file
·46 lines (34 loc) · 1.24 KB
/
test-infra.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
43
44
45
46
#!/bin/sh
set -x
minikube delete
minikube start
# Enable DNS service: https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/
# kubectl --namespace=kube-system scale deployment kube-dns --replicas=1
sleep 10 # Wait for API port to open
kubectl create -f cloudflare-secret.yml
kubectl create -f acme-init-job.yml
kubectl create -f dnscrypt-wrapper/dnscrypt-init-job.yml
kubectl create -f acme-cron-job.yml
sleep 65 # Wait for certificate from Let's Encrypt
kubectl create -f nsd/nsd-srv.yml
kubectl create -f unbound/unbound-srv.yml
kubectl create -f doh-proxy/doh-proxy-srv.yml
kubectl create -f haproxy/haproxy-srv.yml
kubectl create -f dnscrypt-wrapper/dnscrypt-srv.yml
kubectl create -f nsd/nsd-deployment.yml
kubectl create -f unbound/unbound-deployment.yml
kubectl create -f doh-proxy/doh-proxy-deployment.yml
kubectl create -f haproxy/haproxy-deployment.yml
kubectl create -f dnscrypt-wrapper/dnscrypt-deployment.yml
sleep 180 #300# Wait for deployment
kubectl get nodes
kubectl get jobs
kubectl get deployments
kubectl get services
kubectl get pods -o wide
kubectl get all -l app=dns-server
minikube ip
kubectl get services
kubectl logs job/dnscrypt-init
minikube service dnscrypt --url
minikube service haproxy --url