curl -Ls https://get.weave.works | sh -s -- --token=XXXXXX
(on the host)- https://get.weave.works serves install.sh
- Downloads and executes the bootstrap binary
- Bootstrap binary (on the host)
- Confirms the current k8s cluster with the user
- Applies the Agent to the cluster via the host's
kubectl
- Agent (in the cluster)
- Checks for updates once an hour
- Self updates with the latest agent.yaml
- RollingUpdate with auto recovery if the new version fails
- Creates/Updates Weave Cloud agents currently using the Launch Generator (internal)
- Service (get.weave.works)
/
- install.sh/bootstrap?dist=...
- bootstrap/k8s/agent.yaml
- agent.yaml.in
Launcher has quite few components and we provide a way to test the full end to end flow in a local minukube:
Start by setting up a minikube instance to run the tests on:
# minikube profile launcher-tests
# minikube start
Run the tests:
make integration-tests
This script will first ensure the dependencies are built and then run:
reset-local-minikube.sh
setup-local-minikube.sh
run.sh
One can also use the local launcher service to provision a cluster:
curl -Ls $(minikube service service --url) | sh -s -- --token=${WEAVE_CLOUD_TOKEN}