-
Notifications
You must be signed in to change notification settings - Fork 2
/
deploy.sh
executable file
·49 lines (39 loc) · 1.27 KB
/
deploy.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
#!/bin/bash
set -e
set -u
set -o pipefail
source $(dirname ${BASH_SOURCE[0]})/setup.sh
########################################################################################################################
# deployments
########################################################################################################################
deployments+=(
# setup cluster on hetzner cloud
"hetzner-k3s"
# we want to use some hetzner cloud volumes
"hcloud-csi"
# let's own the kube-system namespace
"kube-system"
# we need some fancy ingress routing
"ingress-nginx"
# and want to use github oauth
"oauth2-proxy"
# and automatic let's encrypt certificate management
"cert-manager"
# it also never hurts to have a dashboard!
"kubernetes-dashboard"
# metrics, monitoring, alerting, logs, what would we do without those?
"monitoring"
# we can always use a good database..
"postgres"
)
########################################################################################################################
# deploy it all, all of it!
########################################################################################################################
for deployment in ${deployments[@]}; do
pushd $deployment
./deploy.sh
popd
echo -e "\n\n"
done
kapp list
echo " "