An open API service indexing awesome lists of open source software.

https://github.com/bartvanbenthem/cdbootstrap-operator

A test project to evaluate the effectiveness of Rust and the Kube-rs framework for developing Kubernetes Operators.
https://github.com/bartvanbenthem/cdbootstrap-operator

ci-cd-automation integration kube-rs kubernetes operator rust

Last synced: 5 months ago
JSON representation

A test project to evaluate the effectiveness of Rust and the Kube-rs framework for developing Kubernetes Operators.

Awesome Lists containing this project

README

          

# cdbootstrap operator

A test project to evaluate the effectiveness of Rust and the Kube-rs framework for developing Kubernetes Operators.

```bash
# Create CDBootstrap CRD
kubectl create -f config/crd/cdbootstraps.cndev.nl.yaml
```

```bash
# Run the Operator
KUBECONFIG=~/.kube/k3s.yaml
cargo fmt
cargo run
```

```bash
# apply CDBootstrap sample
kubectl apply -f config/samples/cdbootstrap-example.yaml
```

```bash
# Inject Token in Agent secret
export EPAT=$(echo "" | base64)
kubectl patch secret test-bootstrap -p '{"data":{"AZP_TOKEN": "'"$EPAT"'"}}'
# restart pods
kubectl scale deploy test-bootstrap --replicas=0 && kubectl scale deploy test-bootstrap --replicas=2
```