Skip to content

lilic/launcher

 
 

Repository files navigation

Weave Cloud Launcher

Circle CI

curl -Ls https://get.weave.works | sh -s -- --token=XXXXXX

Overview

  • curl -Ls https://get.weave.works | sh -s -- --token=XXXXXX (on the host)
  • 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)

Running the integration tests locally

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}

About

Weave Cloud Launcher

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 70.3%
  • Shell 24.3%
  • Makefile 5.4%