Kubernetes Metrics Server
Kubernetes Metrics Server
by DigitalOcean

Version 0.3.6

Description

The metrics-server gives you fast, simple access to cluster resource usage data, such as CPU and memory usage.

This stack source is Open Source and can be found at https://github.com/digitalocean/marketplace-kubernetes. Contributions on bug fixes and features will be kindly reviewed.

Software Included

Getting started after deploying Kubernetes Metrics Server

After you have downloaded your kube config file, and are able to successfully connect to your DigitalOcean Kubernetes cluster (see https://cloud.digitalocean.com/kubernetes/clusters/ if you haven’t connected to your cluster) follow the instructions below to start using the metrics-server.

metrics-server The metrics-server provides cluster metrics, such as container CPU and memory usage via the Kubernetes Metrics API.

To view the metrics made available by metrics server, run the following command in a terminal shell:

kubectl top nodes


or for all Kubernetes Namespaces enter:

kubectl top pods --all-namespaces


As metrics server is running on your cluster you can also see metrics in the DigitalOcean Kubernetes Dashboard. To see your cluster metrics go to https://cloud.digitalocean.com/kubernetes/clusters → click on your cluster → click on “Insights” tab.

For additional information on metrics-server see https://github.com/kubernetes-incubator/metrics-server.

Managing metrics-server

Updating

To update your installation of metrics-server

helm repo add stable https://kubernetes-charts.storage.googleapis.com/
helm repo update
helm upgrade metrics-server stable/metrics-server --namespace kube-system

Deleting

To delete your installation of metrics-server:

helm uninstall metrics-server --namespace kube-system

API Creation

In addition to creating Kubernetes Metrics Server via the control panel, you can also use the DigitalOcean API.

As an example, to create a 3 node DigitalOcean Kubernetes cluster made up of Standard Droplets in the SFO2 region, you can use the following curl command. You’ll need to either save your API access token to an environment variable or substitute it into the command below.


  curl -X POST -H "Content-Type: application/json" \
      -H "Authorization: Bearer '$TOKEN'" -d \
      '{"name": "choose-a-name","region": "sfo2","version": "1.17.5-do.0","node_pools": [{"size": "s-1vcpu-2gb","count": 3,"name": "choose-a-name"}]}' \
      "https://api.digitalocean.com/v2/kubernetes/clusters"
      

Support Details

Supported By:DigitalOceanDigitalOcean
Hours:Monday - Friday 8am - 5pm Eastern
Support URL:https://github.com/digitalocean/marketplace-kubernetes/issues
Support Email:one-clicks-team@digitalocean.com

More DigitalOcean Links

DigitalOcean Community

Developers supporting developers

Ask a Question

Ask anything related to system administration, programming, devops, open source, or the DigitalOcean platform.

List your 1-Click App in the DigitalOcean Marketplace

Partner with us to build traction for your open source project or software company