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

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cdbootstrap operator

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

Seamless integration and automation between datacenter sites are paramount. To streamline this process, we introduce the Kubernetes CDBootstrap Operator, designed specifically for initializing pipeline agents and establishing a robust connection with an external customer DevOps environment, eliminating the need for ingress requirements. The operator facilitates secure communication between the pipeline agent on Kubernetes and the external DevOps environment, employing industry best practices for encryption, authentication, and authorization.

# 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

  •  
  •