Skip to content

Commit

Permalink
Setup ngrok in turtles-dev.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
  • Loading branch information
Danil-Grigorev committed Sep 27, 2024
1 parent 6fe94d2 commit 264e39d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
8 changes: 6 additions & 2 deletions exp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ This is a technical preview of the experimental features that are currently bein

## Setting up the environment

To set up the environment, first prepare your EC2 SSH Key Pair name, navigate to the root of the repository and run:
To set up the environment, navigate to the root of the repository and run:

```bash
export RANCHER_HOSTNAME="<hostname>"
export NGROK_API_KEY="<api-key>"
export NGROK_AUTHTOKEN="<api-authtoken>"

make dev-env
```

The `Makefile` target sets up the environment by executing the `scripts/etcd-backup-restore-dev.sh`
The `Makefile` target sets up the environment by executing the `scripts/etcd-backup-restore-dev.sh`
script with the `RANCHER_HOSTNAME` argument. Under the hood, it performs the following steps:

1. Creates a kind cluster.
Expand Down
12 changes: 12 additions & 0 deletions scripts/turtles-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ kubectl rollout status deployment coredns -n kube-system --timeout=90s
helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
helm repo add capi-operator https://kubernetes-sigs.github.io/cluster-api-operator
helm repo add jetstack https://charts.jetstack.io
helm repo add ngrok https://charts.ngrok.com
helm repo update

helm install cert-manager jetstack/cert-manager \
Expand Down Expand Up @@ -64,4 +65,15 @@ helm install rancher rancher-latest/rancher \

kubectl rollout status deployment rancher -n cattle-system --timeout=180s

helm upgrade ngrok ngrok/kubernetes-ingress-controller \
--install \
--wait \
--timeout 5m \
--set credentials.apiKey=$NGROK_API_KEY \
--set credentials.authtoken=$NGROK_AUTHTOKEN

kubectl apply -f test/e2e/data/rancher/ingress-class-patch.yaml
kubectl apply -f test/e2e/data/rancher/rancher-service-patch.yaml
kubectl apply -f test/e2e/data/rancher/rancher-setting-patch.yaml

tilt up

0 comments on commit 264e39d

Please sign in to comment.