forked from nemonik/hands-on-DevOps-gen2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·38 lines (22 loc) · 960 Bytes
/
install.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
#!/usr/bin/env bash
# Copyright (C) 2021 Michael Joseph Walsh - All Rights Reserved
# You may use, distribute and modify this code under the
# terms of the the license.
#
# You should have received a copy of the license with
# this file. If not, please email <mjwalsh@nemonik.com>
set -a
. ../.env
is_current_context_correct
is_cluster_running
images_into_registry traefik_images
template_file ./templates/traefik-chart-values.yaml.tpl traefik-chart-values.yaml
template_file ./templates/traefik-cert-secrets.yaml.tpl traefik-cert-secrets.yaml
template_file ./templates/traefik-tlsstore.yaml.tpl traefik-tlsstore.yaml
notify "Spinning up Traefik..."
helm repo add traefik https://helm.traefik.io/traefik
helm repo update
create_namespace $traefik_namespace
helm install traefik traefik/traefik --namespace ${traefik_namespace} --values traefik-chart-values.yaml
kubectl apply -f traefik-cert-secrets.yaml
kubectl apply -f traefik-tlsstore.yaml