stefanprodan/k8s-prom-hpa

Not working with kube 1.9.5 : no metrics returned from heapster

radut opened this issue · 0 comments

radut commented

Warning FailedGetResourceMetric 4s (x2 over 34s) horizontal-pod-autoscaler unable to get metrics for resource memory: no metrics returned from heapster
Warning FailedComputeMetricsReplicas 4s (x2 over 34s) horizontal-pod-autoscaler failed to get memory utilization: unable to get metrics for resource memory: no metrics returned from heapster
Maybe is something that i need to do, but followed your readme file and didn't get it working
`
cat /etc/kubernetes/manifests/kube-apiserver.manifest

apiVersion: v1
kind: Pod
metadata:
name: kube-apiserver
namespace: kube-system
labels:
k8s-app: kube-apiserver
kubespray: v2
annotations:
kubespray.etcd-cert/serial: "E0B8497F43AA5A66"
kubespray.apiserver-cert/serial: "BEE5A9B9D94E41B8"
spec:
hostNetwork: true
dnsPolicy: ClusterFirst
containers:

  • name: kube-apiserver
    image: gcr.io/google-containers/hyperkube:v1.9.5
    imagePullPolicy: IfNotPresent
    resources:
    limits:
    cpu: 800m
    memory: 2000M
    requests:
    cpu: 100m
    memory: 256M
    command:
    • /hyperkube
    • apiserver
    • --advertise-address=192.168.16.214
    • --etcd-servers=https://192.168.16.214:2379
    • --etcd-cafile=/etc/ssl/etcd/ssl/ca.pem
    • --etcd-certfile=/etc/ssl/etcd/ssl/node-k8s-master.pem
    • --etcd-keyfile=/etc/ssl/etcd/ssl/node-k8s-master-key.pem
    • --insecure-bind-address=127.0.0.1
    • --bind-address=0.0.0.0
    • --apiserver-count=1
    • --endpoint-reconciler-type=lease
    • --admission-control=Initializers,NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota
    • --service-cluster-ip-range=10.233.0.0/18
    • --service-node-port-range=30000-32767
    • --client-ca-file=/etc/kubernetes/ssl/ca.pem
    • --profiling=false
    • --repair-malformed-updates=false
    • --kubelet-client-certificate=/etc/kubernetes/ssl/node-k8s-master.pem
    • --kubelet-client-key=/etc/kubernetes/ssl/node-k8s-master-key.pem
    • --service-account-lookup=true
    • --kubelet-preferred-address-types=InternalDNS,InternalIP,Hostname,ExternalDNS,ExternalIP
    • --tls-cert-file=/etc/kubernetes/ssl/apiserver.pem
    • --tls-private-key-file=/etc/kubernetes/ssl/apiserver-key.pem
    • --service-account-key-file=/etc/kubernetes/ssl/service-account-key.pem
    • --secure-port=6443
    • --insecure-port=8080
    • --storage-backend=etcd3
    • --runtime-config=admissionregistration.k8s.io/v1alpha1
    • --v=2
    • --allow-privileged=true
    • --anonymous-auth=False
    • --authorization-mode=Node,RBAC
    • --feature-gates=Initializers=False,PersistentLocalVolumes=False,VolumeScheduling=False,MountPropagation=False
    • --requestheader-client-ca-file=/etc/kubernetes/ssl/front-proxy-ca.pem
    • --requestheader-allowed-names=front-proxy-client
    • --requestheader-extra-headers-prefix=X-Remote-Extra-
    • --requestheader-group-headers=X-Remote-Group
    • --requestheader-username-headers=X-Remote-User
    • --enable-aggregator-routing=False
    • --proxy-client-cert-file=/etc/kubernetes/ssl/front-proxy-client.pem
    • --proxy-client-key-file=/etc/kubernetes/ssl/front-proxy-client-key.pem
      livenessProbe:
      httpGet:
      host: 127.0.0.1
      path: /healthz
      port: 8080
      failureThreshold: 8
      initialDelaySeconds: 15
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 15
      volumeMounts:
    • mountPath: /etc/kubernetes
      name: kubernetes-config
      readOnly: true
    • mountPath: /etc/ssl
      name: ssl-certs-host
      readOnly: true
    • mountPath: /usr/share/ca-certificates
      name: usr-share-ca-certificates
      readOnly: true
    • mountPath: /etc/ssl/etcd/ssl
      name: etcd-certs
      readOnly: true
      volumes:
  • hostPath:
    path: /etc/kubernetes
    name: kubernetes-config
  • name: ssl-certs-host
    hostPath:
    path: /etc/ssl
  • name: usr-share-ca-certificates
    hostPath:
    path: /usr/share/ca-certificates
  • hostPath:
    path: /etc/ssl/etcd/ssl
    name: etcd-certs
    `