Skip to content

Configuring a Cluster

This topic describes setting Kubernetes cluster alert notifications and managing clusters.

Setting up a cluster alert notification

You can configure cluster PrometheusAn open-source systems monitoring and alerting toolkit for dynamic container environments. alerts to assist with troubleshooting. When you set an alert, Prometheus monitors the services running on a cluster every two minutes and alerts you when it detects an issue or identifies an issue before it occurs. For example, you can set an alert to be notified when a cluster exceeds a certain bandwidth threshold within the next 30 days.

Megaport ONE provides alert templates for easy configuration.

To set cluster alert notifications

  1. Select a cluster name from the Clusters page.

  2. Select the Alerts tab.

  3. Click New Alert.

  4. Select an alert template from the drop-down list of preconfigured templates.

  5. Configure the alert settings.

  6. For alerts that trigger off a certain threshold, enter the threshold value. For example, after selecting the Kubernetes out of capacity template, enter 80 to receive an alert when a cluster has reached 80 percent capacity.

  7. Select at least one destination type to receive the notification when an alert is triggered.

    • Enter an incoming Slack Webhook URL to receive the alert via Slack.

    • Enter one or more phone numbers to receive the alert via SMS. Start the phone number with +, followed by the country and area codes, up to a maximum of 15 digits.

    • Enter a pager number to receive the alert via pager. (Not yet implemented.)

  8. Click Confirm.

The alert appears on the list, along with its status, how often Prometheus polls the cluster for status, and where the notification is sent when the alert is triggered.

To delete an alert

  1. Choose Compute > Clusters.

  2. Select a cluster name from the Clusters page.

  3. Select the Alerts tab.

  4. Click the gear icon next to the alert name.

  5. Type DELETE (all caps) and click Delete to confirm.

Downloading cluster details

An automatically generated kubeconfig.yaml file contains authentication information for users and cluster connection information. You may download this file with the proper permissions: Company Admin and Technical Admin.

To download a kubeconfig file

  1. Select a cluster name from the Clusters page.

  2. Select the Overview tab.

  3. Select Download KubeConfig from the Actions menu.

Deleting a cluster

When you delete a cluster, these resources are deleted:

  • The control planeThe container orchestration layer that exposes the API and interfaces to define, deploy, and manage the lifecycle of containers. resources
  • All of the node instances in the cluster
  • All cluster jobs
  • All stored data

To delete a cluster

  1. Choose Compute > Clusters. The Clusters page shows every Kubernetes cluster deployed in your organization.
  2. Select a cluster.
  3. From the Actions menu, choose Delete Service.
  4. Type DELETE in all caps and click Delete.

The deletion process proceeds through these states before finishing:

Cluster Deletion States

Last update: 2022-08-29