Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k8s metrics Request #12

Closed
ddy4633 opened this issue Jun 22, 2020 · 1 comment
Closed

k8s metrics Request #12

ddy4633 opened this issue Jun 22, 2020 · 1 comment

Comments

@ddy4633
Copy link

ddy4633 commented Jun 22, 2020

  • 版本:v1.16.9
  • 问题描述:重启了下集群然后metrics就GG了检查了metrics日志没有报错,检查了下kubelet少量不相关的报错,以下yaml是扒拉下你预装的metris的yaml文件,请查看下是否有问题
  • 问题截图

  • 解决:尝试过删除重建不起作用,特来找馆长咨询
  • 额外话题:kubectl get cs 都是unknow这个是Bug吗?describe看状态倒是正常的
apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
  labels:
    k8s-app: metrics-server
  name: metrics-server
  namespace: kube-system
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      k8s-app: metrics-server
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      creationTimestamp: null
      labels:
        k8s-app: metrics-server
      name: metrics-server
    spec:
      containers:
      - args:
        - --kubelet-preferred-address-types=InternalIP
        - --kubelet-insecure-tls
        image: zhangguanzhang/metrics-server:v0.3.6
        imagePullPolicy: IfNotPresent
        name: metrics-server
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: tmp-dir
        - mountPath: /etc/localtime
          name: host-time
          readOnly: true
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: metrics-server
      serviceAccountName: metrics-server
      terminationGracePeriodSeconds: 30
      volumes:
      - hostPath:
          path: /etc/localtime
          type: ""
        name: host-time
      - emptyDir: {}
        name: tmp-dir
@zhangguanzhang
Copy link
Owner

metrics-server刚起来就是这样
unknow我在wiki里说过的 https://github.com/zhangguanzhang/Kubernetes-ansible/wiki/Deploy

  • v1.16目前到在get cs显示unkown是官方废弃的, 不影响使用,废弃后在大家呼吁下又在1.17版本回来了。非1.16版本cs是有status的

@ddy4633 ddy4633 closed this as completed Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants