Documentation forOrion Platform

Kubernetes requirements, installation script examples, and container removal steps

This Orion Platform topic applies only to the following products:

SAMVMAN

Kubernetes (K8s) is one of the environments supported by the Container Monitoring feature.

Starting with SAM 6.9 and VMAN 8.4, you can also monitor Microsoft Azure Kubernetes services.

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
    • Kubelet agent listening on port 10255
  • SSH access to the master server
  • Sudo privileges on the master server

Click here for a list of service-specific port requirements.

Kubernetes installation script

When you add a container service, the Add 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.

Delete Kubernetes namespaces from nodes

For Docker, Docker Swarm, and Apache Mesos, you need to delete containers and container images from node before you can delete a container service in the Orion Web Console. For Kubernetes, delete Orion namespaces from the node instead. With 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.

  1. Connect to the node via SSH.
  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.