Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions deployment/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,18 @@ There are two options for running Weave Scope, either you can run the UI locally

<!-- deploy-doc-end -->

### Service autoscaling (optional)
If you want all stateless services to scale automatically based on the CPU utilization, you can deploy all the manifests in the "deploy/kubernetes/autoscaling" directory.
The autoscaling directory contains Kubernetes horizontal pod autoscalers for all the stateless services, and the Heapster monitoring application with it's depedencies.

```
master_ip=$(terraform output -json | jq -r '.master_address.value')
scp -i ~/.ssh/deploy-docs-k8s.pem -o StrictHostKeyChecking=no -rp deploy/kubernetes/autoscaling ubuntu@$master_ip:/tmp/
ssh -i ~/.ssh/deploy-docs-k8s.pem ubuntu@$master_ip kubectl apply -f /tmp/autoscaling
```

If you cause enough load on the application you should see the various services scaling up in number.

### View the results
Run `terraform output` command to see the load balancer and node URLs

Expand Down