make init
make build
make run
make test
(from a separate terminal)
make docker-build
-
Deploying with GCP:
gcloud container clusters create resource-worker-service
gcloud container clusters get-credentials resource-worker-service
-
Deploying onto AWS with deployer
- Deploy an empty K8S cluster:
./deploy-k8s.sh [username]
- Retrieve K8S credentials (or through the UI):
curl localhost:7777/v1/deployments/[DEPLOYMENT_ID]/kubeconfig > ~/.kube/config
- Deploy an empty K8S cluster:
- prometheus
kubectl create -f prometheus-k8s/
- statsd
kubectl create -f statsd-k8s/
- Modify
deploy/statefulset.yaml
so thatSTATS_PUBLISHER
environment variable is set to "statsd", see the comment section in it
kubectl create -f deploy/
kubectl proxy
curl -XPOST -H "Content-Type: application/json" -d '{"requests": [{"cpu": {"cycles": 300}}]}' http://localhost:8001/api/v1/namespaces/default/services/resource-worker-service/proxy/run
- Or with httpie:
echo '{"requests": [{"cpu": {"cycles": 300}}]}' | http POST localhost:8001/api/v1/namespaces/default/services/resource-worker-service/proxy/run