Skip to content

Latest commit

 

History

History
executable file
·
31 lines (24 loc) · 1.14 KB

README.md

File metadata and controls

executable file
·
31 lines (24 loc) · 1.14 KB

cdbootstrap operator

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.

Alt Text

# 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