Kubernetes requirements, installation script examples, and container removal steps

This Orion Platform topic applies only to the following products:

SAMVMAN

Kubernetes is one of the environments supported by the Orion Platform's container monitoring feature.

To monitor Kubernetes containers in the Orion Platform, you'll need:

  • A Kubernetes platform with one of the following API versions enabled:

    • v1
    • rbac.authorization.k8s.io/v1beta1
    • rbac.authorization.k8s.io

    • apps/v1beta1

    • extensions/v1beta1

  • SSH access to the master server
  • Sudo privileges on the master server

Kubernetes installation script

When you add a container service on the Container Services page, the Monitor Container Service wizard generates a script that you can copy to the Windows Clipboard. Connect to the master server via SSH, open a command line, and run the script, which looks something like this:

curl -o orion-kubernetes.yaml #endpoint#
sudo kubectl apply -f orion-kubernetes.yaml

The script downloads an orion-kubernetes.yaml file to define an orion namespace and deploys the Orion Aggregator and Orion Monitor containers to the namespace.

Remove Orion container data from nodes in Kubernetes

Before you delete a container service in the Orion Web Console, delete the Orion namespace from the node. For Kubernetes, namespaces are logical entities that represent cluster resources for usage of a set of users — in this case, the "user" is the Orion Platform. Remove the namespace, to delete Orion containers and images from a node.

  1. Connect to the node via SSH.

    Need an SSH client? Try the free SolarWinds Solar-PuTTY tool.

  2. Run the following command:
    sudo kubectl delete namespaces orion

The service status switches to Down on the Container Services page. Now you can delete the container service by selecting its check box and clicking Delete.