Skip to content

Instantly share code, notes, and snippets.

@yuangezhizao
Created April 21, 2023 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuangezhizao/868397014e30ac1fe2b9e35329dd3731 to your computer and use it in GitHub Desktop.
Save yuangezhizao/868397014e30ac1fe2b9e35329dd3731 to your computer and use it in GitHub Desktop.
[root@k3s ~]# k get no -owide
NAME                  STATUS   ROLES                  AGE   VERSION        INTERNAL-IP   EXTERNAL-IP   OS-IMAGE                         KERNEL-VERSION                 CONTAINER-RUNTIME
cn-tx-bj6-c8          Ready    <none>                 33d   v1.26.1+k3s1   10.0.20.11    <none>        CentOS Linux 8                   4.18.0-348.7.1.el8_5.x86_64    docker://23.0.3
jp-tx-tk1-c8          Ready    <none>                 40d   v1.26.1+k3s1   10.0.0.16     <none>        CentOS Linux 8                   4.18.0-193.28.1.el8_2.x86_64   docker://23.0.4
k3s.yuangezhizao.cn   Ready    control-plane,master   40d   v1.26.1+k3s1   10.0.0.2      <none>        AlmaLinux 8.7 (Stone Smilodon)   4.18.0-425.10.1.el8_7.x86_64   containerd://1.6.15-k3s1
jp-tx-tk2-o8          Ready    <none>                 24d   v1.26.1+k3s1   10.0.4.3      <none>        OpenCloudOS 8.6                  5.4.119-20.0009.20             docker://23.0.4
[root@k3s ~]# k describe node jp-tx-tk1-c8
Name:               jp-tx-tk1-c8
Roles:              <none>
Labels:             beta.kubernetes.io/arch=amd64
                    beta.kubernetes.io/instance-type=k3s
                    beta.kubernetes.io/os=linux
                    egress.k3s.io/cluster=true
                    kubernetes.io/arch=amd64
                    kubernetes.io/hostname=jp-tx-tk1-c8
                    kubernetes.io/os=linux
                    node.kubernetes.io/instance-type=k3s
Annotations:        flannel.alpha.coreos.com/backend-data: {"VNI":1,"VtepMAC":"86:f7:cf:e8:c2:89"}
                    flannel.alpha.coreos.com/backend-type: vxlan
                    flannel.alpha.coreos.com/kube-subnet-manager: true
                    flannel.alpha.coreos.com/public-ip: 10.0.0.16
                    k3s.io/hostname: jp-tx-tk1-c8
                    k3s.io/internal-ip: 10.0.0.16
                    k3s.io/node-args: ["agent","--docker"]
                    k3s.io/node-config-hash: XWJJ2QTZARMGSGZCLG7JJ2HPX4SGQGNV2GRWKA7NJDU7Z4TKFKPA====
                    k3s.io/node-env:
                      {"K3S_DATA_DIR":"/var/lib/rancher/k3s/data/640b9915ffbb627ea4a2213ce03a1861e755a23967f45ab7241c094e10a6749f","K3S_TOKEN":"********","K3S_U...
                    node.alpha.kubernetes.io/ttl: 0
                    volumes.kubernetes.io/controller-managed-attach-detach: true
CreationTimestamp:  Sun, 12 Mar 2023 21:35:31 +0800
Taints:             <none>
Unschedulable:      false
Lease:
  HolderIdentity:  jp-tx-tk1-c8
  AcquireTime:     <unset>
  RenewTime:       Fri, 21 Apr 2023 22:48:23 +0800
Conditions:
  Type             Status  LastHeartbeatTime                 LastTransitionTime                Reason                       Message
  ----             ------  -----------------                 ------------------                ------                       -------
  MemoryPressure   False   Fri, 21 Apr 2023 22:46:02 +0800   Fri, 21 Apr 2023 08:59:02 +0800   KubeletHasSufficientMemory   kubelet has sufficient memory available
  DiskPressure     False   Fri, 21 Apr 2023 22:46:02 +0800   Fri, 21 Apr 2023 08:59:02 +0800   KubeletHasNoDiskPressure     kubelet has no disk pressure
  PIDPressure      False   Fri, 21 Apr 2023 22:46:02 +0800   Fri, 21 Apr 2023 08:59:02 +0800   KubeletHasSufficientPID      kubelet has sufficient PID available
  Ready            True    Fri, 21 Apr 2023 22:46:02 +0800   Fri, 21 Apr 2023 08:59:02 +0800   KubeletReady                 kubelet is posting ready status
Addresses:
  InternalIP:  10.0.0.16
  Hostname:    jp-tx-tk1-c8
Capacity:
  cpu:                2
  ephemeral-storage:  51539404Ki
  hugepages-2Mi:      0
  memory:             1870544Ki
  pods:               110
Allocatable:
  cpu:                2
  ephemeral-storage:  50137532172
  hugepages-2Mi:      0
  memory:             1870544Ki
  pods:               110
System Info:
  Machine ID:                 3bc1810c1e044d8390fdb65f6051ebba
  System UUID:                f511433e-c165-49a0-bf36-8e3927d9b3c2
  Boot ID:                    caf6e2a0-eeaf-438f-bf3a-d15069f05bbb
  Kernel Version:             4.18.0-193.28.1.el8_2.x86_64
  OS Image:                   CentOS Linux 8
  Operating System:           linux
  Architecture:               amd64
  Container Runtime Version:  docker://23.0.4
  Kubelet Version:            v1.26.1+k3s1
  Kube-Proxy Version:         v1.26.1+k3s1
PodCIDR:                      10.42.1.0/24
PodCIDRs:                     10.42.1.0/24
ProviderID:                   k3s://jp-tx-tk1-c8
Non-terminated Pods:          (5 in total)
  Namespace                   Name                                    CPU Requests  CPU Limits  Memory Requests  Memory Limits  Age
  ---------                   ----                                    ------------  ----------  ---------------  -------------  ---
  kube-system                 svclb-portainer-agent-b5aee911-xrfgs    0 (0%)        0 (0%)      0 (0%)           0 (0%)         25d
  default                     volume-test                             0 (0%)        0 (0%)      0 (0%)           0 (0%)         25d
  kube-system                 svclb-traefik-6dc748e0-b82tj            0 (0%)        0 (0%)      0 (0%)           0 (0%)         40d
  default                     deploydaemon-nfbfw                      0 (0%)        0 (0%)      0 (0%)           0 (0%)         8d
  portainer                   portainer-agent-5b9b86f95b-zw5g9        0 (0%)        0 (0%)      0 (0%)           0 (0%)         5d2h
Allocated resources:
  (Total limits may be over 100 percent, i.e., overcommitted.)
  Resource           Requests  Limits
  --------           --------  ------
  cpu                0 (0%)    0 (0%)
  memory             0 (0%)    0 (0%)
  ephemeral-storage  0 (0%)    0 (0%)
  hugepages-2Mi      0 (0%)    0 (0%)
Events:              <none>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment