kubernetes-sigs / dashboard-metrics-scraper

Container to scrape, store, and retrieve a window of time from the Metrics Server.
Apache License 2.0
87 stars 39 forks source link

http: server gave HTTP response to HTTPS client #34

Open cvimer opened 4 years ago

cvimer commented 4 years ago

What can I do, if I want export the https port of kubernetes-metrics-scraper,

apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"apiregistration.k8s.io/v1beta1","kind":"APIService","metadata":{"annotations":{},"name":"v1beta1.metrics.k8s.io"},"spec":{"group":"metrics.k8s.io","groupPriorityMinimum":100,"insecureSkipTLSVerify":true,"service":{"name":"dashboard-metrics-scraper","namespace":"kube-system","port":8000},"version":"v1beta1","versionPriority":100}}
  creationTimestamp: "2020-07-08T02:21:33Z"
  name: v1beta1.metrics.k8s.io
  resourceVersion: "120370"
  selfLink: /apis/apiregistration.k8s.io/v1/apiservices/v1beta1.metrics.k8s.io
  uid: b5a14de3-f304-4aa0-84ea-6ecab91c6bac
spec:
  group: metrics.k8s.io
  groupPriorityMinimum: 100
  insecureSkipTLSVerify: true
  service:
    name: dashboard-metrics-scraper
    namespace: kube-system
    port: 8000
  version: v1beta1
  versionPriority: 100
status:
  conditions:
  - lastTransitionTime: "2020-07-08T02:21:33Z"
    message: 'failing or missing response from https://172.25.68.117:8000/apis/metrics.k8s.io/v1beta1:
      Get https://172.25.68.117:8000/apis/metrics.k8s.io/v1beta1: http: server gave
      HTTP response to HTTPS client'
    reason: FailedDiscoveryCheck
    status: "False"
    type: Available
floreks commented 4 years ago

Right now HTTPS protocol is not supported by the metrics-scraper.

fejta-bot commented 4 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale