Docker Community Forums

Share and learn in the Docker community.

What is the best way to verify if a linux host is controlled by orchestration platform: Swarm / Kubernetes


(Golash) #1

What is the best why to verify if a Linux host that running docker is also connect to orchestration platform ?

For example, the docker info command give indication if a node is controlled by the Swarm orchestration platform:

docker info:

Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: active
NodeID: rdjq45w1op418waxlairloqbm
Is Manager: true
ClusterID: te8kdyw33n36fqiz74bfjeixd
Managers:

There is any similar way to get the same information for Kubernetes?