-
Notifications
You must be signed in to change notification settings - Fork 0
/
steps.sh
63 lines (34 loc) · 1 KB
/
steps.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
## Using helm with RBAC enabled k8s
vim tiller.yml
echo "helm init --service-account tiller"
### If it's already in place you need to add the upgrade switch
helm init --service-account tiller --upgrade
## Install cert-manager
helm install stable/cert-manager
### wait for cert-manager to be ready
helm ls
## Set up issuer
vim issuer.yml
kubectl apply -f issuer.yml
## Set up our AWS Credentials secret
vim route53-credentials-secret.yml
kubectl apply -f route53-credentials-secret.yml
## Set up requester
vim requester.yml
kubectl apply -f requester.yml
## Watch the request
kubens kube-system
kubectl get pods
kubectl logs cert-manager-cert-manager-698758c6d-7dgfh
kubens tools
kubectl get certificate
kubectl describe certificate 59s-io
### Checkout the cert
kubectl get secret 59s-io-tls -o yaml
echo <paste in the crt> | base64 -D
## Set up our ingress controller
helm install stable/nginx-ingress
### Set up an ingress rule
vim ingress-rule.yml
kubectl apply -f ingress-rule.yml