Skip to content

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

Notifications You must be signed in to change notification settings

bartvanbenthem/cdbootstrap-operator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cdbootstrap operator

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

# Create CDBootstrap CRD
kubectl create -f config/crd/cdbootstraps.cndev.nl.yaml
# Run the Operator
KUBECONFIG=~/.kube/k3s.yaml
cargo fmt
cargo run
# apply CDBootstrap sample
kubectl apply -f config/samples/cdbootstrap-example.yaml
# Inject Token in Agent secret
export EPAT=$(echo "<pat_token>" | 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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •