add scripts and config for a local kind cluster
This commit is contained in:
22
README.md
Normal file
22
README.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Local Testing
|
||||
|
||||
## Kind
|
||||
To create a local Kubernetes cluster using [Kind](https://kind.sigs.k8s.io/) you will need the following installed:
|
||||
- [Docker](https://docs.docker.com/get-docker/) or any container runtime probably
|
||||
- [Kind](https://kind.sigs.k8s.io/docs/user/quick-start/#installation)
|
||||
- [cloud-provider-kind](https://github.com/kubernetes-sigs/cloud-provider-kind)
|
||||
- [kubectl](https://kubernetes.io/docs/tasks/tools/)
|
||||
|
||||
Scripts:
|
||||
- `kind/create.sh`
|
||||
- creates a Kind cluster and sets up the gateway
|
||||
- build and deploy ontime-operator into cluster
|
||||
- deploy the sample stage
|
||||
- start `cloud-provider-kind`
|
||||
- `kind/delete.sh` - deletes the Kind cluster
|
||||
|
||||
To get the gateway IP address run `kubectl get gateway -n kube-system` the output will look something like this:
|
||||
```
|
||||
NAMESPACE NAME CLASS ADDRESS PROGRAMMED AGE
|
||||
kube-system gateway cloud-provider-kind 172.18.0.5 True 23s
|
||||
```
|
||||
Reference in New Issue
Block a user