This commit is contained in:
nora 2023-02-07 21:11:37 +01:00
parent 1b8879c684
commit 4be274f187
12 changed files with 270 additions and 12 deletions

7
scripts/cert-manager.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env sh
# https://getbetterdevops.io/k8s-ingress-with-letsencrypt/
helm repo add jetstack https://charts.jetstack.io
helm repo update
helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --set installCRDs=true

View file

@ -0,0 +1,4 @@
#!/usr/bin/env sh
minikube addons enable ingress
minikube addons enable ingress-dns

14
scripts/setup-env.sh Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env sh
if kubectl cert-manager 2>/dev/null >/dev/null ;
then
echo "The cert-manger kubectl plugin is already installed"
else
CERT_MANAGER_KUBECTL_VERSION="v1.6.1"
echo "Installing the cert-manager kubectl plugin: $CERT_MANAGER_KUBECTL_VERSION"
curl -L -o kubectl-cert-manager.tar.gz "https://github.com/jetstack/cert-manager/releases/download/$CERT_MANAGER_KUBECTL_VERSION/kubectl-cert_manager-linux-amd64.tar.gz"
tar xzf kubectl-cert-manager.tar.gz
sudo mv kubectl-cert_manager /usr/local/bin
fi