This commit is contained in:
nora 2023-08-26 23:47:11 +02:00
parent a143a02b4c
commit ee0c5f9cec
18 changed files with 3 additions and 341 deletions

View file

@ -1,23 +0,0 @@
# Setup
## Setup host
- Install docker
- Install minikube (https://minikube.sigs.k8s.io/docs/start/)
- Install helm (https://helm.sh/docs/intro/install/)
- Run `setup-env.sh`
## Start minikube
`minikube start`
`./scripts/minikube-setup`
## Install cert-manager
`./scripts/cert-manager.sh`
i
## Apply configs
First, apply all the configs in `./kube` directly. Only apply `server-ingress.yaml`, not `local-ingress.yaml`!
Then, apply all configs in `./kube/apps`.

View file

@ -1,7 +0,0 @@
#!/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

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

View file

@ -1,14 +0,0 @@
#!/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