Skip to content

Cluster

Clusters are networks of nodes on which Kubernetes is deployed. The icekube cluster currently consists of 25 physical machines.

Get cluster context

kubectl config get-contexts
CURRENT   NAME                     CLUSTER                  AUTHINFO    NAMESPACE
*         icekube                  icekube                  icekube     
          icekube-icekubemaster1   icekube-icekubemaster1   icekube     
          icekube-icekubemaster2   icekube-icekubemaster2   icekube     
          icekube-icekubemaster3   icekube-icekubemaster3   icekube

List available nodes

kubectl get nodes
NAME             STATUS   ROLES               AGE      VERSION
icekubemaster1   Ready    controlplane,etcd   2y106d   v1.20.15
icekubemaster2   Ready    controlplane,etcd   2y106d   v1.20.15
icekubemaster3   Ready    controlplane,etcd   2y106d   v1.20.15
p02r01srv02      Ready    worker              636d     v1.20.15
p02r01srv03      Ready    worker              2y96d    v1.20.15
p02r01srv04      Ready    worker              36d      v1.20.15
p02r01srv05      Ready    worker              2y96d    v1.20.15
...

List node resources

kubectl get nodes -o=go-template='{{range .items}}{{$c := .status.capacity}}{{$gpus := index $c "nvidia.com/gpu"}}{{if $gpus}}{{"{"}}"name":"{{.metadata.name}}","cpu":{{$c.cpu}},"mem":"{{$c.memory}}","hdd":"{{index $c "ephemeral-storage"}}","gpu":{{$gpus}},"acc":"{{.metadata.labels.accelerator}}"{{"}\n"}}{{end}}{{end}}'
{"name":"p02r01srv02","cpu":64,"mem":"263784444Ki","hdd":"960302804Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r01srv03","cpu":64,"mem":"263774992Ki","hdd":"960302804Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r01srv04","cpu":64,"mem":"263774996Ki","hdd":"960302804Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r01srv05","cpu":64,"mem":"263774996Ki","hdd":"960302804Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r01srv06","cpu":64,"mem":"263774992Ki","hdd":"960302804Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r01srv07","cpu":64,"mem":"263774992Ki","hdd":"960302804Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r02srv01","cpu":64,"mem":"263774996Ki","hdd":"1844812632Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r02srv02","cpu":64,"mem":"263774996Ki","hdd":"1844812632Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r02srv03","cpu":64,"mem":"263783124Ki","hdd":"1844812632Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r02srv04","cpu":64,"mem":"263774992Ki","hdd":"1844812632Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r02srv05","cpu":64,"mem":"263783152Ki","hdd":"1844812632Ki","gpu":8,"acc":"nvidia-gtx-1080ti"}
{"name":"p02r02srv06","cpu":64,"mem":"263783152Ki","hdd":"1844812632Ki","gpu":8,"acc":"nvidia-gtx-1080ti"}
{"name":"p02r02srv07","cpu":64,"mem":"263783152Ki","hdd":"1844812632Ki","gpu":8,"acc":"nvidia-gtx-1080ti"}
{"name":"p02r09srv01","cpu":64,"mem":"263783128Ki","hdd":"1844812632Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r09srv02","cpu":64,"mem":"263783124Ki","hdd":"1844812632Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r09srv03","cpu":64,"mem":"263773292Ki","hdd":"1844812632Ki","gpu":8,"acc":"nvidia-gtx-1080ti"}
{"name":"p02r09srv04","cpu":64,"mem":"263781432Ki","hdd":"1844812632Ki","gpu":8,"acc":"nvidia-gtx-1080ti"}
{"name":"p02r09srv05","cpu":64,"mem":"263773312Ki","hdd":"1844812632Ki","gpu":8,"acc":"nvidia-gtx-1080ti"}
{"name":"p02r09srv06","cpu":64,"mem":"263773324Ki","hdd":"1844812632Ki","gpu":8,"acc":"nvidia-gtx-1080ti"}
{"name":"p02r09srv07","cpu":64,"mem":"263773292Ki","hdd":"1844812632Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r10srv02","cpu":64,"mem":"263775000Ki","hdd":"960302804Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r10srv03","cpu":64,"mem":"263774996Ki","hdd":"960302804Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r10srv04","cpu":64,"mem":"263774992Ki","hdd":"960302804Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r10srv05","cpu":64,"mem":"263765136Ki","hdd":"960167960Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r10srv06","cpu":64,"mem":"263765160Ki","hdd":"960167960Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}
{"name":"p02r10srv08","cpu":64,"mem":"263774624Ki","hdd":"1844812632Ki","gpu":8,"acc":"nvidia-gtx-2080ti"}