OpenShift Get Labels Applied to a Node: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 21: | Line 21: | ||
An alternative method is to use | An alternative method is to use | ||
oc get node ''<node-name>'' -o yaml | [[oc_get#node|oc get node]] ''<node-name>'' -o yaml | ||
and look in the "metadata.labels" section: | and look in the "metadata.labels" section: |
Revision as of 03:05, 6 July 2017
Internal
Overview
Get the node description with:
oc describe node <node-name>
The node's labels are listed in the "Labels:" section:
Labels: beta.kubernetes.io/arch=amd64 beta.kubernetes.io/os=linux cluster=noper430 env=infra kubernetes.io/hostname=infranode1 logging=true logging-infra-fluentd=true
An alternative method is to use
oc get node <node-name> -o yaml
and look in the "metadata.labels" section:
metadata: creationTimestamp: 2017-07-04T22:34:30Z labels: beta.kubernetes.io/arch: amd64 beta.kubernetes.io/os: linux cluster: noper430 env: infra kubernetes.io/hostname: infranode1 logging: "true" logging-infra-fluentd: "true"