Cloud Native应用交付

  • 首页
  • 关于本站
  • 个人介绍
  • Downloads
  • Repo
    • Github
    • Container
  • F5
    • F5 In AI Agent Arch
    • F5 AI Infrastructure Blueprint
    • F5 Python SDK
    • F5-container
    • F5-LBaaS
  • 社交
    • 联系我
    • 微信/微博
    • 公众号
    • 打赏赞助
行至水穷处 坐看云起时
Cloud Native Application Services: cnadn.net
  1. 首页
  2. 容器/k8s
  3. 正文

Kubernetes 1.6.7三节点集群初始信息输出

2017年07月9日 10382点热度 0人点赞 0条评论

Warning: Array to string conversion in /home/wwwroot/myf5/wp-content/plugins/wpjam-basic/public/wpjam-utils.php on line 496
[root@docker1 scripts]# kubectl version
Client Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.7", GitCommit:"095136c3078ccf887b9034b7ce598a0a1faff769", GitTreeState:"clean", BuildDate:"2017-07-05T16:51:56Z", GoVersion:"go1.7.6", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.7", GitCommit:"095136c3078ccf887b9034b7ce598a0a1faff769", GitTreeState:"clean", BuildDate:"2017-07-05T16:40:42Z", GoVersion:"go1.7.6", Compiler:"gc", Platform:"linux/amd64"}
[root@docker1 scripts]# kubectl get service -o wide
NAME         CLUSTER-IP    EXTERNAL-IP   PORT(S)   AGE       SELECTOR
kubernetes   169.169.0.1   <none>        443/TCP   21h       <none>
[root@docker1 scripts]# kubectl get service -o yaml
apiVersion: v1
items:
- apiVersion: v1
  kind: Service
  metadata:
    creationTimestamp: 2017-07-08T15:21:07Z
    labels:
      component: apiserver
      provider: kubernetes
    name: kubernetes
    namespace: default
    resourceVersion: "6"
    selfLink: /api/v1/namespaces/default/services/kubernetes
    uid: 10deaa9e-63f1-11e7-b416-000c29420d98
  spec:
    clusterIP: 169.169.0.1
    ports:
    - name: https
      port: 443
      protocol: TCP
      targetPort: 6443
    sessionAffinity: ClientIP
    type: ClusterIP
  status:
    loadBalancer: {}
kind: List
metadata: {}
resourceVersion: ""
selfLink: ""
[root@docker1 scripts]# kubectl get namespaces 
NAME          STATUS    AGE
default       Active    21h
kube-public   Active    21h
kube-system   Active    21h
[root@docker1 scripts]# kubectl cluster-info
Kubernetes master is running at http://localhost:8080

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

[root@docker1 scripts]# kubectl cluster-info dump
{
    "selfLink": "/api/v1/nodes",
    "resourceVersion": "3986",
    "Items": [
        {
            "name": "172.16.199.27",
            "selfLink": "/api/v1/nodes172.16.199.27",
            "uid": "0ab9842f-6480-11e7-ae06-000c29420d98",
            "resourceVersion": "3986",
            "creationTimestamp": "2017-07-09T08:24:35Z",
            "labels": {
                "beta.kubernetes.io/arch": "amd64",
                "beta.kubernetes.io/os": "linux",
                "kubernetes.io/hostname": "172.16.199.27"
            },
            "annotations": {
                "node.alpha.kubernetes.io/ttl": "0",
                "volumes.kubernetes.io/controller-managed-attach-detach": "true"
            },
            "Spec": {
                "PodCIDR": "",
                "ExternalID": "172.16.199.27",
                "ProviderID": "",
                "Unschedulable": false,
                "Taints": null
            },
            "Status": {
                "Capacity": {
                    "cpu": "2",
                    "memory": "2032140Ki",
                    "pods": "110"
                },
                "Allocatable": {
                    "cpu": "2",
                    "memory": "1929740Ki",
                    "pods": "110"
                },
                "Phase": "",
                "Conditions": [
                    {
                        "Type": "OutOfDisk",
                        "Status": "False",
                        "LastHeartbeatTime": "2017-07-09T12:48:05Z",
                        "LastTransitionTime": "2017-07-09T08:24:35Z",
                        "Reason": "KubeletHasSufficientDisk",
                        "Message": "kubelet has sufficient disk space available"
                    },
                    {
                        "Type": "MemoryPressure",
                        "Status": "False",
                        "LastHeartbeatTime": "2017-07-09T12:48:05Z",
                        "LastTransitionTime": "2017-07-09T08:24:35Z",
                        "Reason": "KubeletHasSufficientMemory",
                        "Message": "kubelet has sufficient memory available"
                    },
                    {
                        "Type": "DiskPressure",
                        "Status": "False",
                        "LastHeartbeatTime": "2017-07-09T12:48:05Z",
                        "LastTransitionTime": "2017-07-09T08:24:35Z",
                        "Reason": "KubeletHasNoDiskPressure",
                        "Message": "kubelet has no disk pressure"
                    },
                    {
                        "Type": "Ready",
                        "Status": "True",
                        "LastHeartbeatTime": "2017-07-09T12:48:05Z",
                        "LastTransitionTime": "2017-07-09T08:26:48Z",
                        "Reason": "KubeletReady",
                        "Message": "kubelet is posting ready status"
                    }
                ],
                "Addresses": [
                    {
                        "Type": "LegacyHostIP",
                        "Address": "172.16.199.27"
                    },
                    {
                        "Type": "InternalIP",
                        "Address": "172.16.199.27"
                    },
                    {
                        "Type": "Hostname",
                        "Address": "172.16.199.27"
                    }
                ],
                "DaemonEndpoints": {
                    "KubeletEndpoint": {
                        "Port": 10250
                    }
                },
                "NodeInfo": {
                    "MachineID": "0edb716e1cf347faa490b2a81c5e6dcd",
                    "SystemUUID": "A89B4D56-77F4-B627-417C-F26AE2AE1179",
                    "BootID": "030162c8-a2ff-4682-82cc-31cdb1b2d7b6",
                    "KernelVersion": "3.10.0-514.21.2.el7.x86_64",
                    "OSImage": "CentOS Linux 7 (Core)",
                    "ContainerRuntimeVersion": "docker://Unknown",
                    "KubeletVersion": "v1.6.7",
                    "KubeProxyVersion": "v1.6.7",
                    "OperatingSystem": "linux",
                    "Architecture": "amd64"
                },
                "Images": [
                    {
                        "Names": [
                            "index.alauda.cn/georce/router:latest"
                        ],
                        "SizeBytes": 139067018
                    },
                    {
                        "Names": [
                            "myf5/busybox-with-pipework-eth1:latest"
                        ],
                        "SizeBytes": 1110190
                    },
                    {
                        "Names": [
                            "busybox@sha256:32f093055929dbc23dec4d03e09dfe971f5973a9ca5cf059cbfb644c206aa83f",
                            "busybox:latest"
                        ],
                        "SizeBytes": 1109996
                    }
                ],
                "VolumesInUse": null,
                "VolumesAttached": null
            }
        },
        {
            "name": "172.16.199.37",
            "selfLink": "/api/v1/nodes172.16.199.37",
            "uid": "b418836d-6481-11e7-ae06-000c29420d98",
            "resourceVersion": "3985",
            "creationTimestamp": "2017-07-09T08:36:29Z",
            "labels": {
                "beta.kubernetes.io/arch": "amd64",
                "beta.kubernetes.io/os": "linux",
                "kubernetes.io/hostname": "172.16.199.37"
            },
            "annotations": {
                "node.alpha.kubernetes.io/ttl": "0",
                "volumes.kubernetes.io/controller-managed-attach-detach": "true"
            },
            "Spec": {
                "PodCIDR": "",
                "ExternalID": "172.16.199.37",
                "ProviderID": "",
                "Unschedulable": false,
                "Taints": null
            },
            "Status": {
                "Capacity": {
                    "cpu": "2",
                    "memory": "2032140Ki",
                    "pods": "110"
                },
                "Allocatable": {
                    "cpu": "2",
                    "memory": "1929740Ki",
                    "pods": "110"
                },
                "Phase": "",
                "Conditions": [
                    {
                        "Type": "OutOfDisk",
                        "Status": "False",
                        "LastHeartbeatTime": "2017-07-09T12:48:05Z",
                        "LastTransitionTime": "2017-07-09T08:36:29Z",
                        "Reason": "KubeletHasSufficientDisk",
                        "Message": "kubelet has sufficient disk space available"
                    },
                    {
                        "Type": "MemoryPressure",
                        "Status": "False",
                        "LastHeartbeatTime": "2017-07-09T12:48:05Z",
                        "LastTransitionTime": "2017-07-09T08:36:29Z",
                        "Reason": "KubeletHasSufficientMemory",
                        "Message": "kubelet has sufficient memory available"
                    },
                    {
                        "Type": "DiskPressure",
                        "Status": "False",
                        "LastHeartbeatTime": "2017-07-09T12:48:05Z",
                        "LastTransitionTime": "2017-07-09T08:36:29Z",
                        "Reason": "KubeletHasNoDiskPressure",
                        "Message": "kubelet has no disk pressure"
                    },
                    {
                        "Type": "Ready",
                        "Status": "True",
                        "LastHeartbeatTime": "2017-07-09T12:48:05Z",
                        "LastTransitionTime": "2017-07-09T08:36:39Z",
                        "Reason": "KubeletReady",
                        "Message": "kubelet is posting ready status"
                    }
                ],
                "Addresses": [
                    {
                        "Type": "LegacyHostIP",
                        "Address": "172.16.199.37"
                    },
                    {
                        "Type": "InternalIP",
                        "Address": "172.16.199.37"
                    },
                    {
                        "Type": "Hostname",
                        "Address": "172.16.199.37"
                    }
                ],
                "DaemonEndpoints": {
                    "KubeletEndpoint": {
                        "Port": 10250
                    }
                },
                "NodeInfo": {
                    "MachineID": "0edb716e1cf347faa490b2a81c5e6dcd",
                    "SystemUUID": "368B4D56-5DF0-42C8-CAED-C81A127DF5AA",
                    "BootID": "15180f8d-5783-495f-a564-15170bcd1df9",
                    "KernelVersion": "3.10.0-514.21.2.el7.x86_64",
                    "OSImage": "CentOS Linux 7 (Core)",
                    "ContainerRuntimeVersion": "docker://Unknown",
                    "KubeletVersion": "v1.6.7",
                    "KubeProxyVersion": "v1.6.7",
                    "OperatingSystem": "linux",
                    "Architecture": "amd64"
                },
                "Images": [
                    {
                        "Names": [
                            "busybox@sha256:be3c11fdba7cfe299214e46edc642e09514dbb9bbefcd0d3836c05a1e0cd0642",
                            "busybox:latest"
                        ],
                        "SizeBytes": 1106304
                    }
                ],
                "VolumesInUse": null,
                "VolumesAttached": null
            }
        }
    ]
}
{
    "selfLink": "/api/v1/namespaces/kube-system/events",
    "resourceVersion": "3986",
    "Items": []
}
{
    "selfLink": "/api/v1/namespaces/kube-system/replicationcontrollers",
    "resourceVersion": "3986",
    "Items": []
}
{
    "selfLink": "/api/v1/namespaces/kube-system/services",
    "resourceVersion": "3986",
    "Items": []
}
{
    "selfLink": "/apis/extensions/v1beta1/namespaces/kube-system/daemonsets",
    "resourceVersion": "3986",
    "Items": []
}
{
    "selfLink": "/apis/extensions/v1beta1/namespaces/kube-system/deployments",
    "resourceVersion": "3986",
    "Items": []
}
{
    "selfLink": "/apis/extensions/v1beta1/namespaces/kube-system/replicasets",
    "resourceVersion": "3986",
    "Items": []
}
{
    "selfLink": "/api/v1/namespaces/kube-system/pods",
    "resourceVersion": "3986",
    "Items": []
}
{
    "selfLink": "/api/v1/namespaces/default/events",
    "resourceVersion": "3986",
    "Items": []
}
{
    "selfLink": "/api/v1/namespaces/default/replicationcontrollers",
    "resourceVersion": "3986",
    "Items": []
}
{
    "selfLink": "/api/v1/namespaces/default/services",
    "resourceVersion": "3986",
    "Items": [
        {
            "name": "kubernetes",
            "namespace": "default",
            "selfLink": "/api/v1/namespaces/default/services/kubernetes",
            "uid": "10deaa9e-63f1-11e7-b416-000c29420d98",
            "resourceVersion": "6",
            "creationTimestamp": "2017-07-08T15:21:07Z",
            "labels": {
                "component": "apiserver",
                "provider": "kubernetes"
            },
            "Spec": {
                "Type": "ClusterIP",
                "Ports": [
                    {
                        "Name": "https",
                        "Protocol": "TCP",
                        "Port": 443,
                        "TargetPort": 6443,
                        "NodePort": 0
                    }
                ],
                "Selector": null,
                "ClusterIP": "169.169.0.1",
                "ExternalName": "",
                "ExternalIPs": null,
                "LoadBalancerIP": "",
                "SessionAffinity": "ClientIP",
                "LoadBalancerSourceRanges": null
            },
            "Status": {
                "LoadBalancer": {
                    "Ingress": null
                }
            }
        }
    ]
}
{
    "selfLink": "/apis/extensions/v1beta1/namespaces/default/daemonsets",
    "resourceVersion": "3986",
    "Items": []
}
{
    "selfLink": "/apis/extensions/v1beta1/namespaces/default/deployments",
    "resourceVersion": "3986",
    "Items": []
}
{
    "selfLink": "/apis/extensions/v1beta1/namespaces/default/replicasets",
    "resourceVersion": "3986",
    "Items": []
}
{
    "selfLink": "/api/v1/namespaces/default/pods",
    "resourceVersion": "3986",
    "Items": []
}
[root@docker1 scripts]# kubectl api-versions
apps/v1beta1
authentication.k8s.io/v1
authentication.k8s.io/v1beta1
authorization.k8s.io/v1
authorization.k8s.io/v1beta1
autoscaling/v1
batch/v1
certificates.k8s.io/v1beta1
extensions/v1beta1
policy/v1beta1
rbac.authorization.k8s.io/v1alpha1
rbac.authorization.k8s.io/v1beta1
settings.k8s.io/v1alpha1
storage.k8s.io/v1
storage.k8s.io/v1beta1
v1
[root@docker1 scripts]# kubectl get no -o wide
NAME            STATUS    AGE       VERSION   EXTERNAL-IP   OS-IMAGE                KERNEL-VERSION
172.16.199.27   Ready     4h        v1.6.7    <none>        CentOS Linux 7 (Core)   3.10.0-514.21.2.el7.x86_64
172.16.199.37   Ready     4h        v1.6.7    <none>        CentOS Linux 7 (Core)   3.10.0-514.21.2.el7.x86_64
[root@docker1 scripts]# kubectl get no -o yaml
apiVersion: v1
items:
- apiVersion: v1
  kind: Node
  metadata:
    annotations:
      node.alpha.kubernetes.io/ttl: "0"
      volumes.kubernetes.io/controller-managed-attach-detach: "true"
    creationTimestamp: 2017-07-09T08:24:35Z
    labels:
      beta.kubernetes.io/arch: amd64
      beta.kubernetes.io/os: linux
      kubernetes.io/hostname: 172.16.199.27
    name: 172.16.199.27
    namespace: ""
    resourceVersion: "4051"
    selfLink: /api/v1/nodes172.16.199.27
    uid: 0ab9842f-6480-11e7-ae06-000c29420d98
  spec:
    externalID: 172.16.199.27
  status:
    addresses:
    - address: 172.16.199.27
      type: LegacyHostIP
    - address: 172.16.199.27
      type: InternalIP
    - address: 172.16.199.27
      type: Hostname
    allocatable:
      cpu: "2"
      memory: 1929740Ki
      pods: "110"
    capacity:
      cpu: "2"
      memory: 2032140Ki
      pods: "110"
    conditions:
    - lastHeartbeatTime: 2017-07-09T12:53:25Z
      lastTransitionTime: 2017-07-09T08:24:35Z
      message: kubelet has sufficient disk space available
      reason: KubeletHasSufficientDisk
      status: "False"
      type: OutOfDisk
    - lastHeartbeatTime: 2017-07-09T12:53:25Z
      lastTransitionTime: 2017-07-09T08:24:35Z
      message: kubelet has sufficient memory available
      reason: KubeletHasSufficientMemory
      status: "False"
      type: MemoryPressure
    - lastHeartbeatTime: 2017-07-09T12:53:25Z
      lastTransitionTime: 2017-07-09T08:24:35Z
      message: kubelet has no disk pressure
      reason: KubeletHasNoDiskPressure
      status: "False"
      type: DiskPressure
    - lastHeartbeatTime: 2017-07-09T12:53:25Z
      lastTransitionTime: 2017-07-09T08:26:48Z
      message: kubelet is posting ready status
      reason: KubeletReady
      status: "True"
      type: Ready
    daemonEndpoints:
      kubeletEndpoint:
        Port: 10250
    images:
    - names:
      - index.alauda.cn/georce/router:latest
      sizeBytes: 139067018
    - names:
      - myf5/busybox-with-pipework-eth1:latest
      sizeBytes: 1110190
    - names:
      - busybox@sha256:32f093055929dbc23dec4d03e09dfe971f5973a9ca5cf059cbfb644c206aa83f
      - busybox:latest
      sizeBytes: 1109996
    nodeInfo:
      architecture: amd64
      bootID: 030162c8-a2ff-4682-82cc-31cdb1b2d7b6
      containerRuntimeVersion: docker://Unknown
      kernelVersion: 3.10.0-514.21.2.el7.x86_64
      kubeProxyVersion: v1.6.7
      kubeletVersion: v1.6.7
      machineID: 0edb716e1cf347faa490b2a81c5e6dcd
      operatingSystem: linux
      osImage: CentOS Linux 7 (Core)
      systemUUID: A89B4D56-77F4-B627-417C-F26AE2AE1179
- apiVersion: v1
  kind: Node
  metadata:
    annotations:
      node.alpha.kubernetes.io/ttl: "0"
      volumes.kubernetes.io/controller-managed-attach-detach: "true"
    creationTimestamp: 2017-07-09T08:36:29Z
    labels:
      beta.kubernetes.io/arch: amd64
      beta.kubernetes.io/os: linux
      kubernetes.io/hostname: 172.16.199.37
    name: 172.16.199.37
    namespace: ""
    resourceVersion: "4050"
    selfLink: /api/v1/nodes172.16.199.37
    uid: b418836d-6481-11e7-ae06-000c29420d98
  spec:
    externalID: 172.16.199.37
  status:
    addresses:
    - address: 172.16.199.37
      type: LegacyHostIP
    - address: 172.16.199.37
      type: InternalIP
    - address: 172.16.199.37
      type: Hostname
    allocatable:
      cpu: "2"
      memory: 1929740Ki
      pods: "110"
    capacity:
      cpu: "2"
      memory: 2032140Ki
      pods: "110"
    conditions:
    - lastHeartbeatTime: 2017-07-09T12:53:25Z
      lastTransitionTime: 2017-07-09T08:36:29Z
      message: kubelet has sufficient disk space available
      reason: KubeletHasSufficientDisk
      status: "False"
      type: OutOfDisk
    - lastHeartbeatTime: 2017-07-09T12:53:25Z
      lastTransitionTime: 2017-07-09T08:36:29Z
      message: kubelet has sufficient memory available
      reason: KubeletHasSufficientMemory
      status: "False"
      type: MemoryPressure
    - lastHeartbeatTime: 2017-07-09T12:53:25Z
      lastTransitionTime: 2017-07-09T08:36:29Z
      message: kubelet has no disk pressure
      reason: KubeletHasNoDiskPressure
      status: "False"
      type: DiskPressure
    - lastHeartbeatTime: 2017-07-09T12:53:25Z
      lastTransitionTime: 2017-07-09T08:36:39Z
      message: kubelet is posting ready status
      reason: KubeletReady
      status: "True"
      type: Ready
    daemonEndpoints:
      kubeletEndpoint:
        Port: 10250
    images:
    - names:
      - busybox@sha256:be3c11fdba7cfe299214e46edc642e09514dbb9bbefcd0d3836c05a1e0cd0642
      - busybox:latest
      sizeBytes: 1106304
    nodeInfo:
      architecture: amd64
      bootID: 15180f8d-5783-495f-a564-15170bcd1df9
      containerRuntimeVersion: docker://Unknown
      kernelVersion: 3.10.0-514.21.2.el7.x86_64
      kubeProxyVersion: v1.6.7
      kubeletVersion: v1.6.7
      machineID: 0edb716e1cf347faa490b2a81c5e6dcd
      operatingSystem: linux
      osImage: CentOS Linux 7 (Core)
      systemUUID: 368B4D56-5DF0-42C8-CAED-C81A127DF5AA
kind: List
metadata: {}
resourceVersion: ""
selfLink: ""
[root@docker1 scripts]# kubectl describe nodes
Name:                   172.16.199.27
Role:
Labels:                 beta.kubernetes.io/arch=amd64
                        beta.kubernetes.io/os=linux
                        kubernetes.io/hostname=172.16.199.27
Annotations:            node.alpha.kubernetes.io/ttl=0
                        volumes.kubernetes.io/controller-managed-attach-detach=true
Taints:                 <none>
CreationTimestamp:      Sun, 09 Jul 2017 16:24:35 +0800
Phase:
Conditions:
  Type                  Status  LastHeartbeatTime                       LastTransitionTime                      Reason                          Message
  ----                  ------  -----------------                       ------------------                      ------                          -------
  OutOfDisk             False   Sun, 09 Jul 2017 20:54:55 +0800         Sun, 09 Jul 2017 16:24:35 +0800         KubeletHasSufficientDisk        kubelet has sufficient disk space available
  MemoryPressure        False   Sun, 09 Jul 2017 20:54:55 +0800         Sun, 09 Jul 2017 16:24:35 +0800         KubeletHasSufficientMemory      kubelet has sufficient memory available
  DiskPressure          False   Sun, 09 Jul 2017 20:54:55 +0800         Sun, 09 Jul 2017 16:24:35 +0800         KubeletHasNoDiskPressure        kubelet has no disk pressure
  Ready                 True    Sun, 09 Jul 2017 20:54:55 +0800         Sun, 09 Jul 2017 16:26:48 +0800         KubeletReady                    kubelet is posting ready status
Addresses:              172.16.199.27,172.16.199.27,172.16.199.27
Capacity:
 cpu:           2
 memory:        2032140Ki
 pods:          110
Allocatable:
 cpu:           2
 memory:        1929740Ki
 pods:          110
System Info:
 Machine ID:                    0edb716e1cf347faa490b2a81c5e6dcd
 System UUID:                   A89B4D56-77F4-B627-417C-F26AE2AE1179
 Boot ID:                       030162c8-a2ff-4682-82cc-31cdb1b2d7b6
 Kernel Version:                3.10.0-514.21.2.el7.x86_64
 OS Image:                      CentOS Linux 7 (Core)
 Operating System:              linux
 Architecture:                  amd64
 Container Runtime Version:     docker://Unknown
 Kubelet Version:               v1.6.7
 Kube-Proxy Version:            v1.6.7
ExternalID:                     172.16.199.27
Non-terminated Pods:            (0 in total)
  Namespace                     Name            CPU Requests    CPU Limits      Memory Requests Memory Limits
  ---------                     ----            ------------    ----------      --------------- -------------
Allocated resources:
  (Total limits may be over 100 percent, i.e., overcommitted.)
  CPU Requests  CPU Limits      Memory Requests Memory Limits
  ------------  ----------      --------------- -------------
  0 (0%)        0 (0%)          0 (0%)          0 (0%)
Events:         <none>


Name:                   172.16.199.37
Role:
Labels:                 beta.kubernetes.io/arch=amd64
                        beta.kubernetes.io/os=linux
                        kubernetes.io/hostname=172.16.199.37
Annotations:            node.alpha.kubernetes.io/ttl=0
                        volumes.kubernetes.io/controller-managed-attach-detach=true
Taints:                 <none>
CreationTimestamp:      Sun, 09 Jul 2017 16:36:29 +0800
Phase:
Conditions:
  Type                  Status  LastHeartbeatTime                       LastTransitionTime                      Reason                          Message
  ----                  ------  -----------------                       ------------------                      ------                          -------
  OutOfDisk             False   Sun, 09 Jul 2017 20:54:55 +0800         Sun, 09 Jul 2017 16:36:29 +0800         KubeletHasSufficientDisk        kubelet has sufficient disk space available
  MemoryPressure        False   Sun, 09 Jul 2017 20:54:55 +0800         Sun, 09 Jul 2017 16:36:29 +0800         KubeletHasSufficientMemory      kubelet has sufficient memory available
  DiskPressure          False   Sun, 09 Jul 2017 20:54:55 +0800         Sun, 09 Jul 2017 16:36:29 +0800         KubeletHasNoDiskPressure        kubelet has no disk pressure
  Ready                 True    Sun, 09 Jul 2017 20:54:55 +0800         Sun, 09 Jul 2017 16:36:39 +0800         KubeletReady                    kubelet is posting ready status
Addresses:              172.16.199.37,172.16.199.37,172.16.199.37
Capacity:
 cpu:           2
 memory:        2032140Ki
 pods:          110
Allocatable:
 cpu:           2
 memory:        1929740Ki
 pods:          110
System Info:
 Machine ID:                    0edb716e1cf347faa490b2a81c5e6dcd
 System UUID:                   368B4D56-5DF0-42C8-CAED-C81A127DF5AA
 Boot ID:                       15180f8d-5783-495f-a564-15170bcd1df9
 Kernel Version:                3.10.0-514.21.2.el7.x86_64
 OS Image:                      CentOS Linux 7 (Core)
 Operating System:              linux
 Architecture:                  amd64
 Container Runtime Version:     docker://Unknown
 Kubelet Version:               v1.6.7
 Kube-Proxy Version:            v1.6.7
ExternalID:                     172.16.199.37
Non-terminated Pods:            (0 in total)
  Namespace                     Name            CPU Requests    CPU Limits      Memory Requests Memory Limits
  ---------                     ----            ------------    ----------      --------------- -------------
Allocated resources:
  (Total limits may be over 100 percent, i.e., overcommitted.)
  CPU Requests  CPU Limits      Memory Requests Memory Limits
  ------------  ----------      --------------- -------------
  0 (0%)        0 (0%)          0 (0%)          0 (0%)
Events:         <none>
[root@docker1 scripts]# curl http://localhost:8080/api/v1/nodes/172.16.199.27
{
  "kind": "Node",
  "apiVersion": "v1",
  "metadata": {
    "name": "172.16.199.27",
    "selfLink": "/api/v1/nodes172.16.199.27",
    "uid": "0ab9842f-6480-11e7-ae06-000c29420d98",
    "resourceVersion": "4079",
    "creationTimestamp": "2017-07-09T08:24:35Z",
    "labels": {
      "beta.kubernetes.io/arch": "amd64",
      "beta.kubernetes.io/os": "linux",
      "kubernetes.io/hostname": "172.16.199.27"
    },
    "annotations": {
      "node.alpha.kubernetes.io/ttl": "0",
      "volumes.kubernetes.io/controller-managed-attach-detach": "true"
    }
  },
  "spec": {
    "externalID": "172.16.199.27"
  },
  "status": {
    "capacity": {
      "cpu": "2",
      "memory": "2032140Ki",
      "pods": "110"
    },
    "allocatable": {
      "cpu": "2",
      "memory": "1929740Ki",
      "pods": "110"
    },
    "conditions": [
      {
        "type": "OutOfDisk",
        "status": "False",
        "lastHeartbeatTime": "2017-07-09T12:55:45Z",
        "lastTransitionTime": "2017-07-09T08:24:35Z",
        "reason": "KubeletHasSufficientDisk",
        "message": "kubelet has sufficient disk space available"
      },
      {
        "type": "MemoryPressure",
        "status": "False",
        "lastHeartbeatTime": "2017-07-09T12:55:45Z",
        "lastTransitionTime": "2017-07-09T08:24:35Z",
        "reason": "KubeletHasSufficientMemory",
        "message": "kubelet has sufficient memory available"
      },
      {
        "type": "DiskPressure",
        "status": "False",
        "lastHeartbeatTime": "2017-07-09T12:55:45Z",
        "lastTransitionTime": "2017-07-09T08:24:35Z",
        "reason": "KubeletHasNoDiskPressure",
        "message": "kubelet has no disk pressure"
      },
      {
        "type": "Ready",
        "status": "True",
        "lastHeartbeatTime": "2017-07-09T12:55:45Z",
        "lastTransitionTime": "2017-07-09T08:26:48Z",
        "reason": "KubeletReady",
        "message": "kubelet is posting ready status"
      }
    ],
    "addresses": [
      {
        "type": "LegacyHostIP",
        "address": "172.16.199.27"
      },
      {
        "type": "InternalIP",
        "address": "172.16.199.27"
      },
      {
        "type": "Hostname",
        "address": "172.16.199.27"
      }
    ],
    "daemonEndpoints": {
      "kubeletEndpoint": {
        "Port": 10250
      }
    },
    "nodeInfo": {
      "machineID": "0edb716e1cf347faa490b2a81c5e6dcd",
      "systemUUID": "A89B4D56-77F4-B627-417C-F26AE2AE1179",
      "bootID": "030162c8-a2ff-4682-82cc-31cdb1b2d7b6",
      "kernelVersion": "3.10.0-514.21.2.el7.x86_64",
      "osImage": "CentOS Linux 7 (Core)",
      "containerRuntimeVersion": "docker://Unknown",
      "kubeletVersion": "v1.6.7",
      "kubeProxyVersion": "v1.6.7",
      "operatingSystem": "linux",
      "architecture": "amd64"
    },
    "images": [
      {
        "names": [
          "index.alauda.cn/georce/router:latest"
        ],
        "sizeBytes": 139067018
      },
      {
        "names": [
          "myf5/busybox-with-pipework-eth1:latest"
        ],
        "sizeBytes": 1110190
      },
      {
        "names": [
          "busybox@sha256:32f093055929dbc23dec4d03e09dfe971f5973a9ca5cf059cbfb644c206aa83f",
          "busybox:latest"
        ],
        "sizeBytes": 1109996
      }
    ]
  }
}
[root@docker1 scripts]# curl http://localhost:8080/api
{
  "kind": "APIVersions",
  "versions": [
    "v1"
  ],
  "serverAddressByClientCIDRs": [
    {
      "clientCIDR": "0.0.0.0/0",
      "serverAddress": "172.16.199.17:6443"  <==apiserver的外部访问,本测试未配置证书,实际不能访问
    }
  ]
}
[root@docker1 scripts]# curl http://localhost:8080/api/v1
{
  "kind": "APIResourceList",
  "groupVersion": "v1",
  "resources": [
    {
      "name": "bindings",
      "namespaced": true,
      "kind": "Binding",
      "verbs": [
        "create"
      ]
    },
    {
      "name": "componentstatuses",
      "namespaced": false,
      "kind": "ComponentStatus",
      "verbs": [
        "get",
        "list"
      ],
      "shortNames": [
        "cs"
      ]
    },
    {
      "name": "configmaps",
      "namespaced": true,
      "kind": "ConfigMap",
      "verbs": [
        "create",
        "delete",
        "deletecollection",
        "get",
        "list",
        "patch",
        "update",
        "watch"
      ],
      "shortNames": [
        "cm"
      ]
    },
    {
      "name": "endpoints",
      "namespaced": true,
      "kind": "Endpoints",
      "verbs": [
        "create",
        "delete",
        "deletecollection",
        "get",
        "list",
        "patch",
        "update",
        "watch"
      ],
      "shortNames": [
        "ep"
      ]
    },
    {
      "name": "events",
      "namespaced": true,
      "kind": "Event",
      "verbs": [
        "create",
        "delete",
        "deletecollection",
        "get",
        "list",
        "patch",
        "update",
        "watch"
      ],
      "shortNames": [
        "ev"
      ]
    },
    {
      "name": "limitranges",
      "namespaced": true,
      "kind": "LimitRange",
      "verbs": [
        "create",
        "delete",
        "deletecollection",
        "get",
        "list",
        "patch",
        "update",
        "watch"
      ],
      "shortNames": [
        "limits"
      ]
    },
    {
      "name": "namespaces",
      "namespaced": false,
      "kind": "Namespace",
      "verbs": [
        "create",
        "delete",
        "get",
        "list",
        "patch",
        "update",
        "watch"
      ],
      "shortNames": [
        "ns"
      ]
    },
    {
      "name": "namespaces/finalize",
      "namespaced": false,
      "kind": "Namespace",
      "verbs": [
        "update"
      ]
    },
    {
      "name": "namespaces/status",
      "namespaced": false,
      "kind": "Namespace",
      "verbs": [
        "get",
        "patch",
        "update"
      ]
    },
    {
      "name": "nodes",
      "namespaced": false,
      "kind": "Node",
      "verbs": [
        "create",
        "delete",
        "deletecollection",
        "get",
        "list",
        "patch",
        "proxy",
        "update",
        "watch"
      ],
      "shortNames": [
        "no"
      ]
    },
    {
      "name": "nodes/proxy",
      "namespaced": false,
      "kind": "Node",
      "verbs": []
    },
    {
      "name": "nodes/status",
      "namespaced": false,
      "kind": "Node",
      "verbs": [
        "get",
        "patch",
        "update"
      ]
    },
    {
      "name": "persistentvolumeclaims",
      "namespaced": true,
      "kind": "PersistentVolumeClaim",
      "verbs": [
        "create",
        "delete",
        "deletecollection",
        "get",
        "list",
        "patch",
        "update",
        "watch"
      ],
      "shortNames": [
        "pvc"
      ]
    },
    {
      "name": "persistentvolumeclaims/status",
      "namespaced": true,
      "kind": "PersistentVolumeClaim",
      "verbs": [
        "get",
        "patch",
        "update"
      ]
    },
    {
      "name": "persistentvolumes",
      "namespaced": false,
      "kind": "PersistentVolume",
      "verbs": [
        "create",
        "delete",
        "deletecollection",
        "get",
        "list",
        "patch",
        "update",
        "watch"
      ],
      "shortNames": [
        "pv"
      ]
    },
    {
      "name": "persistentvolumes/status",
      "namespaced": false,
      "kind": "PersistentVolume",
      "verbs": [
        "get",
        "patch",
        "update"
      ]
    },
    {
      "name": "pods",
      "namespaced": true,
      "kind": "Pod",
      "verbs": [
        "create",
        "delete",
        "deletecollection",
        "get",
        "list",
        "patch",
        "proxy",
        "update",
        "watch"
      ],
      "shortNames": [
        "po"
      ]
    },
    {
      "name": "pods/attach",
      "namespaced": true,
      "kind": "Pod",
      "verbs": []
    },
    {
      "name": "pods/binding",
      "namespaced": true,
      "kind": "Binding",
      "verbs": [
        "create"
      ]
    },
    {
      "name": "pods/eviction",
      "namespaced": true,
      "kind": "Eviction",
      "verbs": [
        "create"
      ]
    },
    {
      "name": "pods/exec",
      "namespaced": true,
      "kind": "Pod",
      "verbs": []
    },
    {
      "name": "pods/log",
      "namespaced": true,
      "kind": "Pod",
      "verbs": [
        "get"
      ]
    },
    {
      "name": "pods/portforward",
      "namespaced": true,
      "kind": "Pod",
      "verbs": []
    },
    {
      "name": "pods/proxy",
      "namespaced": true,
      "kind": "Pod",
      "verbs": []
    },
    {
      "name": "pods/status",
      "namespaced": true,
      "kind": "Pod",
      "verbs": [
        "get",
        "patch",
        "update"
      ]
    },
    {
      "name": "podtemplates",
      "namespaced": true,
      "kind": "PodTemplate",
      "verbs": [
        "create",
        "delete",
        "deletecollection",
        "get",
        "list",
        "patch",
        "update",
        "watch"
      ]
    },
    {
      "name": "replicationcontrollers",
      "namespaced": true,
      "kind": "ReplicationController",
      "verbs": [
        "create",
        "delete",
        "deletecollection",
        "get",
        "list",
        "patch",
        "update",
        "watch"
      ],
      "shortNames": [
        "rc"
      ]
    },
    {
      "name": "replicationcontrollers/scale",
      "namespaced": true,
      "kind": "Scale",
      "verbs": [
        "get",
        "patch",
        "update"
      ]
    },
    {
      "name": "replicationcontrollers/status",
      "namespaced": true,
      "kind": "ReplicationController",
      "verbs": [
        "get",
        "patch",
        "update"
      ]
    },
    {
      "name": "resourcequotas",
      "namespaced": true,
      "kind": "ResourceQuota",
      "verbs": [
        "create",
        "delete",
        "deletecollection",
        "get",
        "list",
        "patch",
        "update",
        "watch"
      ],
      "shortNames": [
        "quota"
      ]
    },
    {
      "name": "resourcequotas/status",
      "namespaced": true,
      "kind": "ResourceQuota",
      "verbs": [
        "get",
        "patch",
        "update"
      ]
    },
    {
      "name": "secrets",
      "namespaced": true,
      "kind": "Secret",
      "verbs": [
        "create",
        "delete",
        "deletecollection",
        "get",
        "list",
        "patch",
        "update",
        "watch"
      ]
    },
    {
      "name": "serviceaccounts",
      "namespaced": true,
      "kind": "ServiceAccount",
      "verbs": [
        "create",
        "delete",
        "deletecollection",
        "get",
        "list",
        "patch",
        "update",
        "watch"
      ],
      "shortNames": [
        "sa"
      ]
    },
    {
      "name": "services",
      "namespaced": true,
      "kind": "Service",
      "verbs": [
        "create",
        "delete",
        "get",
        "list",
        "patch",
        "proxy",
        "update",
        "watch"
      ]
    },
    {
      "name": "services/proxy",
      "namespaced": true,
      "kind": "Service",
      "verbs": []
    },
    {
      "name": "services/status",
      "namespaced": true,
      "kind": "Service",
      "verbs": [
        "get",
        "patch",
        "update"
      ]
    }
  ]
}
[root@docker1 scripts]# curl http://localhost:8080/api/v1/endpoints
{
  "kind": "EndpointsList",
  "apiVersion": "v1",
  "metadata": {
    "selfLink": "/api/v1/endpoints",
    "resourceVersion": "4142"
  },
  "items": [
    {
      "metadata": {
        "name": "kubernetes",
        "namespace": "default",
        "selfLink": "/api/v1/namespaces/default/endpoints/kubernetes",
        "uid": "10df54fc-63f1-11e7-b416-000c29420d98",
        "resourceVersion": "7",
        "creationTimestamp": "2017-07-08T15:21:07Z"
      },
      "subsets": [
        {
          "addresses": [
            {
              "ip": "172.16.199.17"
            }
          ],
          "ports": [
            {
              "name": "https",
              "port": 6443,
              "protocol": "TCP"
            }
          ]
        }
      ]
    }
  ]
}
[root@docker1 scripts]# curl http://localhost:8080/api/v1/services/
{
  "kind": "ServiceList",
  "apiVersion": "v1",
  "metadata": {
    "selfLink": "/api/v1/services/",
    "resourceVersion": "4167"
  },
  "items": [
    {
      "metadata": {
        "name": "kubernetes",
        "namespace": "default",
        "selfLink": "/api/v1/namespaces/default/services/kubernetes",
        "uid": "10deaa9e-63f1-11e7-b416-000c29420d98",
        "resourceVersion": "6",
        "creationTimestamp": "2017-07-08T15:21:07Z",
        "labels": {
          "component": "apiserver",
          "provider": "kubernetes"
        }
      },
      "spec": {
        "ports": [
          {
            "name": "https",
            "protocol": "TCP",
            "port": 443,
            "targetPort": 6443
          }
        ],
        "clusterIP": "169.169.0.1",
        "type": "ClusterIP",
        "sessionAffinity": "ClientIP"
      },
      "status": {
        "loadBalancer": {}
      }
    }
  ]
}

 

Array
本作品采用 知识共享署名-非商业性使用 4.0 国际许可协议 进行许可
标签: k8s kubectl kubernetes
最后更新:2017年07月14日

纳米

linjing.io

打赏 点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理。

页面AI聊天助手

纳米

linjing.io

☁️迈向Cloud Native ADC ☁️

认证获得:
TOGAF: ID 152743
Kubernetes: CKA #664
Microsoft: MCSE MCDBA
Cisco: CCNP
Juniper: JNCIS
F5:
F5 Certified Solution Expert, Security
F5 Certified Technology Specialist, LTM/GTM/APM/ASM
F5 Certified BIG-IP Administrator
  • 点击查看本博技术要素列表
  • 归档
    分类
    • AI
    • Automation
    • Avi Networks
    • Cisco ACI
    • CISCO资源
    • F5 with ELK
    • F5-Tech tips
    • F5技术
    • Juniper
    • Linux
    • NGINX
    • SDN
    • ServiceMesh
    • WEB编程
    • WINDOWS相关
    • 业界文章
    • 交换机技术
    • 化云为雨/Openstack
    • 协议原理
    • 容器/k8s
    • 我的工作
    • 我的生活
    • 网站技术
    • 路由器技术
    • 项目案例
    标签聚合
    docker nginx istio DNS k8s bigip api envoy irule neutron F5 flannel gtm openstack network
    最近评论
    Abeny 发布于 8 个月前(02月20日) Very good!
    lz 发布于 2 年前(02月26日) 66666666666666
    汤姆 发布于 2 年前(09月10日) 嗨,楼主,里面的json怎么下载啊,怎么收费啊?
    汤姆 发布于 2 年前(09月09日) 大佬,kib的页面可以分享下吗?谢谢
    zhangsha 发布于 2 年前(05月12日) 资料发给我下,谢谢纳米同志!!!!lyx895@qq.com
    浏览次数
    • Downloads - 196,638 views
    • 联系我 - 137,845 views
    • 迄今为止最全最深入的BIGIP-DNS/GTM原理及培训资料 - 127,516 views
    • Github - 115,624 views
    • Sniffer Pro 4 70 530抓包软件 中文版+视频教程 - 91,886 views
    • F5常见log日志解释 - 90,950 views
    • 迄今为止最全最深入的BIGIP-DNS/GTM原理及培训资料 - 89,313 views
    • 从传统ADC迈向CLOUD NATIVE ADC - 下载 - 88,010 views
    • 关于本站 - 77,024 views
    • F5利用Elastic stack(ELK)进行应用数据挖掘系列(2)-DNS - 65,188 views
    链接表
    • F5SE创新
    • Jimmy Song‘s Blog
    • SDNlab
    • Service Mesh社区
    • 三斗室
    • 个人profile
    • 云原生社区

    COPYRIGHT © 2023 Cloud Native 应用交付. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang

    京ICP备14048088号-1

    京公网安备 11010502041506号