Merge pull request #37649 from smarterclayton/top_node

Automatic merge from submit-queue

kubectl top pod|node should handle when Heapster is somewhere else

OpenShift runs Heapster on HTTPS, which means `top node` and `top pod`
are broken because they hardcode 'http' as the scheme. Provide an
options struct allowing users to specify `--heapster-namespace`,
`--heapster-service`, `--heapster-scheme`, and `--heapster-port` to the
commands (leveraging the existing defaults).

@kubernetes/sig-metrics makes top a little more useful in other spots
This commit is contained in:
Kubernetes Submit Queue
2016-12-03 15:04:14 -08:00
committed by GitHub
4 changed files with 31 additions and 8 deletions

View File

@@ -250,6 +250,10 @@ hard
hard-pod-affinity-symmetric-weight
healthz-bind-address
healthz-port
heapster-namespace
heapster-port
heapster-scheme
heapster-service
horizontal-pod-autoscaler-sync-period
host-cluster-context
host-ipc-sources