zoukankan      html  css  js  c++  java
  • kubectl top

    root@ubuntu:~/nginx_ingress# kubectl get  pods -n default
    NAME                           READY   STATUS    RESTARTS   AGE
    busybox                        1/1     Running   140        5d20h
    example-foo-54dc4db9fc-42jz6   1/1     Running   0          4d18h
    web2-57f7784954-lprtg          1/1     Running   0          17m
    web3-74c88f6778-gfxct          1/1     Running   0          16m
    root@ubuntu:~/nginx_ingress# kubectl top pods web3-74c88f6778-gfxct   -n default
    Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)
    root@ubuntu:~/nginx_ingress# kubectl top pod web3-74c88f6778-gfxct   -n default
    Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)
    root@ubuntu:~/nginx_ingress# 
    root@ubuntu:~/nginx_ingress# kubectl top pods web3-74c88f6778-gfxct   -n default
    Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)
    root@ubuntu:~/nginx_ingress# kubectl top pod web3-74c88f6778-gfxct   -n default
    Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)
    root@ubuntu:~/nginx_ingress#  git clone https://github.com/kodekloudhub/kubernetes-metrics-server.git
    Cloning into 'kubernetes-metrics-server'...
    ^C
    root@ubuntu:~/nginx_ingress#  git clone https://github.com/kodekloudhub/kubernetes-metrics-server.git
    Cloning into 'kubernetes-metrics-server'...
    remote: Enumerating objects: 24, done.
    remote: Counting objects: 100% (12/12), done.
    remote: Compressing objects: 100% (12/12), done.
    remote: Total 24 (delta 4), reused 0 (delta 0), pack-reused 12
    Unpacking objects: 100% (24/24), done.
    root@ubuntu:~/nginx_ingress# ls kubernetes-metrics-server
    aggregated-metrics-reader.yaml  auth-delegator.yaml  auth-reader.yaml  metrics-apiservice.yaml  metrics-server-deployment.yaml  metrics-server-service.yaml  README.md  resource-reader.yaml
    root@ubuntu:~/nginx_ingress# kubectl create -f kubernetes-metrics-server/
    clusterrole.rbac.authorization.k8s.io/system:aggregated-metrics-reader created
    clusterrolebinding.rbac.authorization.k8s.io/metrics-server:system:auth-delegator created
    rolebinding.rbac.authorization.k8s.io/metrics-server-auth-reader created
    apiservice.apiregistration.k8s.io/v1beta1.metrics.k8s.io created
    serviceaccount/metrics-server created
    deployment.apps/metrics-server created
    service/metrics-server created
    clusterrole.rbac.authorization.k8s.io/system:metrics-server created
    clusterrolebinding.rbac.authorization.k8s.io/system:metrics-server created
    root@ubuntu:~/nginx_ingress# kubectl top pod web3-74c88f6778-gfxct   -n default
    Error from server (ServiceUnavailable): the server is currently unable to handle the request (get pods.metrics.k8s.io web3-74c88f6778-gfxct)
    root@ubuntu:~/nginx_ingress# kubectl top pod web2-57f7784954-lprtg   -n default
    Error from server (ServiceUnavailable): the server is currently unable to handle the request (get pods.metrics.k8s.io web2-57f7784954-lprtg)
    root@ubuntu:~/nginx_ingress# 
  • 相关阅读:
    zend server 配置问题 ZendEnablerConf.xml
    ZendStudio 正式版注册破解
    eq几种样式
    js 简单语法 集合
    div上加连接》实用笔记
    VC解析XML使用CMarkup类解析XML
    用PNG透明图片和GDI+做不规则透明窗体"异形窗口"
    程序调试手记—解决Stack Overflow问题
    堆和栈的区别
    CString转换为char *
  • 原文地址:https://www.cnblogs.com/dream397/p/15098011.html
Copyright © 2011-2022 走看看