fix(setup): correct host entry and remove redundant setup-hosts calls from docs
This commit is contained in:
2 files changed
+8
-14
No files matched your search
@@ -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
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user