diff --git a/index.md b/index.md index bcfe42b..294b1a8 100644 --- a/index.md +++ b/index.md @@ -104,7 +104,7 @@ Setup a local Kubernetes cluster and deploy the Helm charts locally. ### Requirements -* Install [Helm](https://helm.sh/docs/intro/install/) and [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl) +* Install [Helm](https://helm.sh/docs/intro/install/) and [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl) * Setup [kind](https://kind.sigs.k8s.io/) or [minikube](https://minikube.sigs.k8s.io/docs/) * Optional: bash/zsh alias `task='./task'` with [completion](https://taskfile.build/#completion). @@ -139,6 +139,12 @@ Add this repo for Chart dependencies. task add-repos ``` +If not already done setup the hosts. + +```bash +task setup-hosts +``` + The following command applies the Odoo chart: ```bash @@ -157,12 +163,6 @@ task forward-odoo ### Setup ingress nginx controller -If not already done setup the hosts. - -```bash -task setup-hosts -``` - Install ingress-nginx in the current cluster. ```bash @@ -177,12 +177,6 @@ task forward-ingress-nginx ### Setup haproxy ingress controller -If not already done setup the hosts. - -```bash -task setup-hosts -``` - Install haproxy-ingress in the current cluster. ```bash diff --git a/task b/task index 51a2d09..708cbe7 100755 --- a/task +++ b/task @@ -98,7 +98,7 @@ function setup-hosts() { echo "Adding entries to /etc/hosts ..." grep -qxF '127.0.0.1 cloud.local' /etc/hosts || echo "127.0.0.1 cloud.local" | sudo tee -a /etc/hosts > /dev/null grep -qxF "127.0.0.1 $NAMESPACE.cloud.local" /etc/hosts || echo "127.0.0.1 $NAMESPACE.cloud.local" | sudo tee -a /etc/hosts > /dev/null - grep -qxF "127.0.0.1 restic.cloud.local" /etc/hosts || echo "127.0.0.1 $NAMESPACE.cloud.local" | sudo tee -a /etc/hosts > /dev/null + grep -qxF "127.0.0.1 restic.cloud.local" /etc/hosts || echo "127.0.0.1 restic.cloud.local" | sudo tee -a /etc/hosts > /dev/null } function test-k8s() {