chore: add more info to README and wait for all pods to be available
This commit is contained in:
@@ -3,9 +3,35 @@
|
|||||||
This is a setup for running the Unbound environment in K8S using [KinD](https://kind.sigs.k8s.io/)
|
This is a setup for running the Unbound environment in K8S using [KinD](https://kind.sigs.k8s.io/)
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
### Tools
|
||||||
- [KinD](https://kind.sigs.k8s.io/docs/user/quick-start/#installation)
|
- [KinD](https://kind.sigs.k8s.io/docs/user/quick-start/#installation)
|
||||||
- [kubectl](https://kubernetes.io/docs/tasks/tools/)
|
- [kubectl](https://kubernetes.io/docs/tasks/tools/)
|
||||||
|
- [Buildtools](https://buildtools.io)
|
||||||
|
- [Lastpass CLI](https://github.com/lastpass/lastpass-cli)
|
||||||
|
- [GNU Base64](https://www.gnu.org/software/coreutils/)
|
||||||
|
- [Bash 4.4+](https://www.gnu.org/software/bash/)
|
||||||
|
- [direnv](https://direnv.net/) to manage environment variables per directory
|
||||||
|
|
||||||
|
### Setup
|
||||||
|
Create a Gitlab Personal Access Token with (at least) read_registry access and set it as environment variable GITLAB_TOKEN. Can be done with a `.envrc`-file in a parent directory:
|
||||||
|
```shell
|
||||||
|
source_up .envrc
|
||||||
|
export GITLAB_TOKEN=<xyz>
|
||||||
|
```
|
||||||
|
|
||||||
|
Create a `.buildtools.yaml`-file in the parent directory with the following content:
|
||||||
|
```yaml
|
||||||
|
targets:
|
||||||
|
local:
|
||||||
|
context: kind-unbound
|
||||||
|
namespace: default
|
||||||
|
staging:
|
||||||
|
context: k8s.unbound.se
|
||||||
|
namespace: staging
|
||||||
|
prod:
|
||||||
|
context: k8s.unbound.se
|
||||||
|
namespace: default
|
||||||
|
```
|
||||||
|
|
||||||
## Creating the cluster
|
## Creating the cluster
|
||||||
|
|
||||||
|
|||||||
@@ -11,3 +11,5 @@ kubectl create secret docker-registry gitlab \
|
|||||||
kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "gitlab"}]}'
|
kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "gitlab"}]}'
|
||||||
|
|
||||||
kubectl apply -k .
|
kubectl apply -k .
|
||||||
|
|
||||||
|
kubectl wait --for=condition=Ready pods --all
|
||||||
|
|||||||
Reference in New Issue
Block a user