| ... | ... |
@@ -4569,6 +4569,14 @@ _oadm_top_node() |
| 4569 | 4569 |
flags_with_completion=() |
| 4570 | 4570 |
flags_completion=() |
| 4571 | 4571 |
|
| 4572 |
+ flags+=("--heapster-namespace=")
|
|
| 4573 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 4574 |
+ flags+=("--heapster-port=")
|
|
| 4575 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 4576 |
+ flags+=("--heapster-scheme=")
|
|
| 4577 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 4578 |
+ flags+=("--heapster-service=")
|
|
| 4579 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 4572 | 4580 |
flags+=("--selector=")
|
| 4573 | 4581 |
two_word_flags+=("-l")
|
| 4574 | 4582 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -4620,6 +4628,14 @@ _oadm_top_pod() |
| 4620 | 4620 |
local_nonpersistent_flags+=("--all-namespaces")
|
| 4621 | 4621 |
flags+=("--containers")
|
| 4622 | 4622 |
local_nonpersistent_flags+=("--containers")
|
| 4623 |
+ flags+=("--heapster-namespace=")
|
|
| 4624 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 4625 |
+ flags+=("--heapster-port=")
|
|
| 4626 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 4627 |
+ flags+=("--heapster-scheme=")
|
|
| 4628 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 4629 |
+ flags+=("--heapster-service=")
|
|
| 4630 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 4623 | 4631 |
flags+=("--selector=")
|
| 4624 | 4632 |
two_word_flags+=("-l")
|
| 4625 | 4633 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -4615,6 +4615,14 @@ _oc_adm_top_node() |
| 4615 | 4615 |
flags_with_completion=() |
| 4616 | 4616 |
flags_completion=() |
| 4617 | 4617 |
|
| 4618 |
+ flags+=("--heapster-namespace=")
|
|
| 4619 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 4620 |
+ flags+=("--heapster-port=")
|
|
| 4621 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 4622 |
+ flags+=("--heapster-scheme=")
|
|
| 4623 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 4624 |
+ flags+=("--heapster-service=")
|
|
| 4625 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 4618 | 4626 |
flags+=("--selector=")
|
| 4619 | 4627 |
two_word_flags+=("-l")
|
| 4620 | 4628 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -4665,6 +4673,14 @@ _oc_adm_top_pod() |
| 4665 | 4665 |
local_nonpersistent_flags+=("--all-namespaces")
|
| 4666 | 4666 |
flags+=("--containers")
|
| 4667 | 4667 |
local_nonpersistent_flags+=("--containers")
|
| 4668 |
+ flags+=("--heapster-namespace=")
|
|
| 4669 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 4670 |
+ flags+=("--heapster-port=")
|
|
| 4671 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 4672 |
+ flags+=("--heapster-scheme=")
|
|
| 4673 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 4674 |
+ flags+=("--heapster-service=")
|
|
| 4675 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 4668 | 4676 |
flags+=("--selector=")
|
| 4669 | 4677 |
two_word_flags+=("-l")
|
| 4670 | 4678 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -4569,6 +4569,14 @@ _openshift_admin_top_node() |
| 4569 | 4569 |
flags_with_completion=() |
| 4570 | 4570 |
flags_completion=() |
| 4571 | 4571 |
|
| 4572 |
+ flags+=("--heapster-namespace=")
|
|
| 4573 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 4574 |
+ flags+=("--heapster-port=")
|
|
| 4575 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 4576 |
+ flags+=("--heapster-scheme=")
|
|
| 4577 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 4578 |
+ flags+=("--heapster-service=")
|
|
| 4579 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 4572 | 4580 |
flags+=("--selector=")
|
| 4573 | 4581 |
two_word_flags+=("-l")
|
| 4574 | 4582 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -4620,6 +4628,14 @@ _openshift_admin_top_pod() |
| 4620 | 4620 |
local_nonpersistent_flags+=("--all-namespaces")
|
| 4621 | 4621 |
flags+=("--containers")
|
| 4622 | 4622 |
local_nonpersistent_flags+=("--containers")
|
| 4623 |
+ flags+=("--heapster-namespace=")
|
|
| 4624 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 4625 |
+ flags+=("--heapster-port=")
|
|
| 4626 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 4627 |
+ flags+=("--heapster-scheme=")
|
|
| 4628 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 4629 |
+ flags+=("--heapster-service=")
|
|
| 4630 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 4623 | 4631 |
flags+=("--selector=")
|
| 4624 | 4632 |
two_word_flags+=("-l")
|
| 4625 | 4633 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -9168,6 +9184,14 @@ _openshift_cli_adm_top_node() |
| 9168 | 9168 |
flags_with_completion=() |
| 9169 | 9169 |
flags_completion=() |
| 9170 | 9170 |
|
| 9171 |
+ flags+=("--heapster-namespace=")
|
|
| 9172 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 9173 |
+ flags+=("--heapster-port=")
|
|
| 9174 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 9175 |
+ flags+=("--heapster-scheme=")
|
|
| 9176 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 9177 |
+ flags+=("--heapster-service=")
|
|
| 9178 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 9171 | 9179 |
flags+=("--selector=")
|
| 9172 | 9180 |
two_word_flags+=("-l")
|
| 9173 | 9181 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -9219,6 +9243,14 @@ _openshift_cli_adm_top_pod() |
| 9219 | 9219 |
local_nonpersistent_flags+=("--all-namespaces")
|
| 9220 | 9220 |
flags+=("--containers")
|
| 9221 | 9221 |
local_nonpersistent_flags+=("--containers")
|
| 9222 |
+ flags+=("--heapster-namespace=")
|
|
| 9223 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 9224 |
+ flags+=("--heapster-port=")
|
|
| 9225 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 9226 |
+ flags+=("--heapster-scheme=")
|
|
| 9227 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 9228 |
+ flags+=("--heapster-service=")
|
|
| 9229 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 9222 | 9230 |
flags+=("--selector=")
|
| 9223 | 9231 |
two_word_flags+=("-l")
|
| 9224 | 9232 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -28387,6 +28419,14 @@ _openshift_kube_top_node() |
| 28387 | 28387 |
flags_with_completion=() |
| 28388 | 28388 |
flags_completion=() |
| 28389 | 28389 |
|
| 28390 |
+ flags+=("--heapster-namespace=")
|
|
| 28391 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 28392 |
+ flags+=("--heapster-port=")
|
|
| 28393 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 28394 |
+ flags+=("--heapster-scheme=")
|
|
| 28395 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 28396 |
+ flags+=("--heapster-service=")
|
|
| 28397 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 28390 | 28398 |
flags+=("--selector=")
|
| 28391 | 28399 |
two_word_flags+=("-l")
|
| 28392 | 28400 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -28478,6 +28518,14 @@ _openshift_kube_top_pod() |
| 28478 | 28478 |
local_nonpersistent_flags+=("--all-namespaces")
|
| 28479 | 28479 |
flags+=("--containers")
|
| 28480 | 28480 |
local_nonpersistent_flags+=("--containers")
|
| 28481 |
+ flags+=("--heapster-namespace=")
|
|
| 28482 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 28483 |
+ flags+=("--heapster-port=")
|
|
| 28484 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 28485 |
+ flags+=("--heapster-scheme=")
|
|
| 28486 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 28487 |
+ flags+=("--heapster-service=")
|
|
| 28488 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 28481 | 28489 |
flags+=("--selector=")
|
| 28482 | 28490 |
two_word_flags+=("-l")
|
| 28483 | 28491 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -4730,6 +4730,14 @@ _oadm_top_node() |
| 4730 | 4730 |
flags_with_completion=() |
| 4731 | 4731 |
flags_completion=() |
| 4732 | 4732 |
|
| 4733 |
+ flags+=("--heapster-namespace=")
|
|
| 4734 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 4735 |
+ flags+=("--heapster-port=")
|
|
| 4736 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 4737 |
+ flags+=("--heapster-scheme=")
|
|
| 4738 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 4739 |
+ flags+=("--heapster-service=")
|
|
| 4740 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 4733 | 4741 |
flags+=("--selector=")
|
| 4734 | 4742 |
two_word_flags+=("-l")
|
| 4735 | 4743 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -4781,6 +4789,14 @@ _oadm_top_pod() |
| 4781 | 4781 |
local_nonpersistent_flags+=("--all-namespaces")
|
| 4782 | 4782 |
flags+=("--containers")
|
| 4783 | 4783 |
local_nonpersistent_flags+=("--containers")
|
| 4784 |
+ flags+=("--heapster-namespace=")
|
|
| 4785 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 4786 |
+ flags+=("--heapster-port=")
|
|
| 4787 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 4788 |
+ flags+=("--heapster-scheme=")
|
|
| 4789 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 4790 |
+ flags+=("--heapster-service=")
|
|
| 4791 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 4784 | 4792 |
flags+=("--selector=")
|
| 4785 | 4793 |
two_word_flags+=("-l")
|
| 4786 | 4794 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -4776,6 +4776,14 @@ _oc_adm_top_node() |
| 4776 | 4776 |
flags_with_completion=() |
| 4777 | 4777 |
flags_completion=() |
| 4778 | 4778 |
|
| 4779 |
+ flags+=("--heapster-namespace=")
|
|
| 4780 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 4781 |
+ flags+=("--heapster-port=")
|
|
| 4782 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 4783 |
+ flags+=("--heapster-scheme=")
|
|
| 4784 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 4785 |
+ flags+=("--heapster-service=")
|
|
| 4786 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 4779 | 4787 |
flags+=("--selector=")
|
| 4780 | 4788 |
two_word_flags+=("-l")
|
| 4781 | 4789 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -4826,6 +4834,14 @@ _oc_adm_top_pod() |
| 4826 | 4826 |
local_nonpersistent_flags+=("--all-namespaces")
|
| 4827 | 4827 |
flags+=("--containers")
|
| 4828 | 4828 |
local_nonpersistent_flags+=("--containers")
|
| 4829 |
+ flags+=("--heapster-namespace=")
|
|
| 4830 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 4831 |
+ flags+=("--heapster-port=")
|
|
| 4832 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 4833 |
+ flags+=("--heapster-scheme=")
|
|
| 4834 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 4835 |
+ flags+=("--heapster-service=")
|
|
| 4836 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 4829 | 4837 |
flags+=("--selector=")
|
| 4830 | 4838 |
two_word_flags+=("-l")
|
| 4831 | 4839 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -4730,6 +4730,14 @@ _openshift_admin_top_node() |
| 4730 | 4730 |
flags_with_completion=() |
| 4731 | 4731 |
flags_completion=() |
| 4732 | 4732 |
|
| 4733 |
+ flags+=("--heapster-namespace=")
|
|
| 4734 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 4735 |
+ flags+=("--heapster-port=")
|
|
| 4736 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 4737 |
+ flags+=("--heapster-scheme=")
|
|
| 4738 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 4739 |
+ flags+=("--heapster-service=")
|
|
| 4740 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 4733 | 4741 |
flags+=("--selector=")
|
| 4734 | 4742 |
two_word_flags+=("-l")
|
| 4735 | 4743 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -4781,6 +4789,14 @@ _openshift_admin_top_pod() |
| 4781 | 4781 |
local_nonpersistent_flags+=("--all-namespaces")
|
| 4782 | 4782 |
flags+=("--containers")
|
| 4783 | 4783 |
local_nonpersistent_flags+=("--containers")
|
| 4784 |
+ flags+=("--heapster-namespace=")
|
|
| 4785 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 4786 |
+ flags+=("--heapster-port=")
|
|
| 4787 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 4788 |
+ flags+=("--heapster-scheme=")
|
|
| 4789 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 4790 |
+ flags+=("--heapster-service=")
|
|
| 4791 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 4784 | 4792 |
flags+=("--selector=")
|
| 4785 | 4793 |
two_word_flags+=("-l")
|
| 4786 | 4794 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -9329,6 +9345,14 @@ _openshift_cli_adm_top_node() |
| 9329 | 9329 |
flags_with_completion=() |
| 9330 | 9330 |
flags_completion=() |
| 9331 | 9331 |
|
| 9332 |
+ flags+=("--heapster-namespace=")
|
|
| 9333 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 9334 |
+ flags+=("--heapster-port=")
|
|
| 9335 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 9336 |
+ flags+=("--heapster-scheme=")
|
|
| 9337 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 9338 |
+ flags+=("--heapster-service=")
|
|
| 9339 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 9332 | 9340 |
flags+=("--selector=")
|
| 9333 | 9341 |
two_word_flags+=("-l")
|
| 9334 | 9342 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -9380,6 +9404,14 @@ _openshift_cli_adm_top_pod() |
| 9380 | 9380 |
local_nonpersistent_flags+=("--all-namespaces")
|
| 9381 | 9381 |
flags+=("--containers")
|
| 9382 | 9382 |
local_nonpersistent_flags+=("--containers")
|
| 9383 |
+ flags+=("--heapster-namespace=")
|
|
| 9384 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 9385 |
+ flags+=("--heapster-port=")
|
|
| 9386 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 9387 |
+ flags+=("--heapster-scheme=")
|
|
| 9388 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 9389 |
+ flags+=("--heapster-service=")
|
|
| 9390 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 9383 | 9391 |
flags+=("--selector=")
|
| 9384 | 9392 |
two_word_flags+=("-l")
|
| 9385 | 9393 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -28548,6 +28580,14 @@ _openshift_kube_top_node() |
| 28548 | 28548 |
flags_with_completion=() |
| 28549 | 28549 |
flags_completion=() |
| 28550 | 28550 |
|
| 28551 |
+ flags+=("--heapster-namespace=")
|
|
| 28552 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 28553 |
+ flags+=("--heapster-port=")
|
|
| 28554 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 28555 |
+ flags+=("--heapster-scheme=")
|
|
| 28556 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 28557 |
+ flags+=("--heapster-service=")
|
|
| 28558 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 28551 | 28559 |
flags+=("--selector=")
|
| 28552 | 28560 |
two_word_flags+=("-l")
|
| 28553 | 28561 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -28639,6 +28679,14 @@ _openshift_kube_top_pod() |
| 28639 | 28639 |
local_nonpersistent_flags+=("--all-namespaces")
|
| 28640 | 28640 |
flags+=("--containers")
|
| 28641 | 28641 |
local_nonpersistent_flags+=("--containers")
|
| 28642 |
+ flags+=("--heapster-namespace=")
|
|
| 28643 |
+ local_nonpersistent_flags+=("--heapster-namespace=")
|
|
| 28644 |
+ flags+=("--heapster-port=")
|
|
| 28645 |
+ local_nonpersistent_flags+=("--heapster-port=")
|
|
| 28646 |
+ flags+=("--heapster-scheme=")
|
|
| 28647 |
+ local_nonpersistent_flags+=("--heapster-scheme=")
|
|
| 28648 |
+ flags+=("--heapster-service=")
|
|
| 28649 |
+ local_nonpersistent_flags+=("--heapster-service=")
|
|
| 28642 | 28650 |
flags+=("--selector=")
|
| 28643 | 28651 |
two_word_flags+=("-l")
|
| 28644 | 28652 |
local_nonpersistent_flags+=("--selector=")
|
| ... | ... |
@@ -21,6 +21,22 @@ The top\-node command allows you to see the resource consumption of nodes. |
| 21 | 21 |
|
| 22 | 22 |
.SH OPTIONS |
| 23 | 23 |
.PP |
| 24 |
+\fB\-\-heapster\-namespace\fP="kube\-system" |
|
| 25 |
+ Namespace Heapster service is located in |
|
| 26 |
+ |
|
| 27 |
+.PP |
|
| 28 |
+\fB\-\-heapster\-port\fP="" |
|
| 29 |
+ Port name in service to use |
|
| 30 |
+ |
|
| 31 |
+.PP |
|
| 32 |
+\fB\-\-heapster\-scheme\fP="http" |
|
| 33 |
+ Scheme (http or https) to connect to Heapster as |
|
| 34 |
+ |
|
| 35 |
+.PP |
|
| 36 |
+\fB\-\-heapster\-service\fP="heapster" |
|
| 37 |
+ Name of Heapster service |
|
| 38 |
+ |
|
| 39 |
+.PP |
|
| 24 | 40 |
\fB\-l\fP, \fB\-\-selector\fP="" |
| 25 | 41 |
Selector (label query) to filter on |
| 26 | 42 |
|
| ... | ... |
@@ -32,6 +32,22 @@ Due to the metrics pipeline delay, they may be unavailable for a few minutes sin |
| 32 | 32 |
If present, print usage of containers within a pod. |
| 33 | 33 |
|
| 34 | 34 |
.PP |
| 35 |
+\fB\-\-heapster\-namespace\fP="kube\-system" |
|
| 36 |
+ Namespace Heapster service is located in |
|
| 37 |
+ |
|
| 38 |
+.PP |
|
| 39 |
+\fB\-\-heapster\-port\fP="" |
|
| 40 |
+ Port name in service to use |
|
| 41 |
+ |
|
| 42 |
+.PP |
|
| 43 |
+\fB\-\-heapster\-scheme\fP="http" |
|
| 44 |
+ Scheme (http or https) to connect to Heapster as |
|
| 45 |
+ |
|
| 46 |
+.PP |
|
| 47 |
+\fB\-\-heapster\-service\fP="heapster" |
|
| 48 |
+ Name of Heapster service |
|
| 49 |
+ |
|
| 50 |
+.PP |
|
| 35 | 51 |
\fB\-l\fP, \fB\-\-selector\fP="" |
| 36 | 52 |
Selector (label query) to filter on |
| 37 | 53 |
|
| ... | ... |
@@ -21,6 +21,22 @@ The top\-node command allows you to see the resource consumption of nodes. |
| 21 | 21 |
|
| 22 | 22 |
.SH OPTIONS |
| 23 | 23 |
.PP |
| 24 |
+\fB\-\-heapster\-namespace\fP="kube\-system" |
|
| 25 |
+ Namespace Heapster service is located in |
|
| 26 |
+ |
|
| 27 |
+.PP |
|
| 28 |
+\fB\-\-heapster\-port\fP="" |
|
| 29 |
+ Port name in service to use |
|
| 30 |
+ |
|
| 31 |
+.PP |
|
| 32 |
+\fB\-\-heapster\-scheme\fP="http" |
|
| 33 |
+ Scheme (http or https) to connect to Heapster as |
|
| 34 |
+ |
|
| 35 |
+.PP |
|
| 36 |
+\fB\-\-heapster\-service\fP="heapster" |
|
| 37 |
+ Name of Heapster service |
|
| 38 |
+ |
|
| 39 |
+.PP |
|
| 24 | 40 |
\fB\-l\fP, \fB\-\-selector\fP="" |
| 25 | 41 |
Selector (label query) to filter on |
| 26 | 42 |
|
| ... | ... |
@@ -32,6 +32,22 @@ Due to the metrics pipeline delay, they may be unavailable for a few minutes sin |
| 32 | 32 |
If present, print usage of containers within a pod. |
| 33 | 33 |
|
| 34 | 34 |
.PP |
| 35 |
+\fB\-\-heapster\-namespace\fP="kube\-system" |
|
| 36 |
+ Namespace Heapster service is located in |
|
| 37 |
+ |
|
| 38 |
+.PP |
|
| 39 |
+\fB\-\-heapster\-port\fP="" |
|
| 40 |
+ Port name in service to use |
|
| 41 |
+ |
|
| 42 |
+.PP |
|
| 43 |
+\fB\-\-heapster\-scheme\fP="http" |
|
| 44 |
+ Scheme (http or https) to connect to Heapster as |
|
| 45 |
+ |
|
| 46 |
+.PP |
|
| 47 |
+\fB\-\-heapster\-service\fP="heapster" |
|
| 48 |
+ Name of Heapster service |
|
| 49 |
+ |
|
| 50 |
+.PP |
|
| 35 | 51 |
\fB\-l\fP, \fB\-\-selector\fP="" |
| 36 | 52 |
Selector (label query) to filter on |
| 37 | 53 |
|
| ... | ... |
@@ -21,6 +21,22 @@ The top\-node command allows you to see the resource consumption of nodes. |
| 21 | 21 |
|
| 22 | 22 |
.SH OPTIONS |
| 23 | 23 |
.PP |
| 24 |
+\fB\-\-heapster\-namespace\fP="kube\-system" |
|
| 25 |
+ Namespace Heapster service is located in |
|
| 26 |
+ |
|
| 27 |
+.PP |
|
| 28 |
+\fB\-\-heapster\-port\fP="" |
|
| 29 |
+ Port name in service to use |
|
| 30 |
+ |
|
| 31 |
+.PP |
|
| 32 |
+\fB\-\-heapster\-scheme\fP="http" |
|
| 33 |
+ Scheme (http or https) to connect to Heapster as |
|
| 34 |
+ |
|
| 35 |
+.PP |
|
| 36 |
+\fB\-\-heapster\-service\fP="heapster" |
|
| 37 |
+ Name of Heapster service |
|
| 38 |
+ |
|
| 39 |
+.PP |
|
| 24 | 40 |
\fB\-l\fP, \fB\-\-selector\fP="" |
| 25 | 41 |
Selector (label query) to filter on |
| 26 | 42 |
|
| ... | ... |
@@ -32,6 +32,22 @@ Due to the metrics pipeline delay, they may be unavailable for a few minutes sin |
| 32 | 32 |
If present, print usage of containers within a pod. |
| 33 | 33 |
|
| 34 | 34 |
.PP |
| 35 |
+\fB\-\-heapster\-namespace\fP="kube\-system" |
|
| 36 |
+ Namespace Heapster service is located in |
|
| 37 |
+ |
|
| 38 |
+.PP |
|
| 39 |
+\fB\-\-heapster\-port\fP="" |
|
| 40 |
+ Port name in service to use |
|
| 41 |
+ |
|
| 42 |
+.PP |
|
| 43 |
+\fB\-\-heapster\-scheme\fP="http" |
|
| 44 |
+ Scheme (http or https) to connect to Heapster as |
|
| 45 |
+ |
|
| 46 |
+.PP |
|
| 47 |
+\fB\-\-heapster\-service\fP="heapster" |
|
| 48 |
+ Name of Heapster service |
|
| 49 |
+ |
|
| 50 |
+.PP |
|
| 35 | 51 |
\fB\-l\fP, \fB\-\-selector\fP="" |
| 36 | 52 |
Selector (label query) to filter on |
| 37 | 53 |
|
| ... | ... |
@@ -21,6 +21,22 @@ The top\-node command allows you to see the resource consumption of nodes. |
| 21 | 21 |
|
| 22 | 22 |
.SH OPTIONS |
| 23 | 23 |
.PP |
| 24 |
+\fB\-\-heapster\-namespace\fP="kube\-system" |
|
| 25 |
+ Namespace Heapster service is located in |
|
| 26 |
+ |
|
| 27 |
+.PP |
|
| 28 |
+\fB\-\-heapster\-port\fP="" |
|
| 29 |
+ Port name in service to use |
|
| 30 |
+ |
|
| 31 |
+.PP |
|
| 32 |
+\fB\-\-heapster\-scheme\fP="http" |
|
| 33 |
+ Scheme (http or https) to connect to Heapster as |
|
| 34 |
+ |
|
| 35 |
+.PP |
|
| 36 |
+\fB\-\-heapster\-service\fP="heapster" |
|
| 37 |
+ Name of Heapster service |
|
| 38 |
+ |
|
| 39 |
+.PP |
|
| 24 | 40 |
\fB\-l\fP, \fB\-\-selector\fP="" |
| 25 | 41 |
Selector (label query) to filter on |
| 26 | 42 |
|
| ... | ... |
@@ -32,6 +32,22 @@ Due to the metrics pipeline delay, they may be unavailable for a few minutes sin |
| 32 | 32 |
If present, print usage of containers within a pod. |
| 33 | 33 |
|
| 34 | 34 |
.PP |
| 35 |
+\fB\-\-heapster\-namespace\fP="kube\-system" |
|
| 36 |
+ Namespace Heapster service is located in |
|
| 37 |
+ |
|
| 38 |
+.PP |
|
| 39 |
+\fB\-\-heapster\-port\fP="" |
|
| 40 |
+ Port name in service to use |
|
| 41 |
+ |
|
| 42 |
+.PP |
|
| 43 |
+\fB\-\-heapster\-scheme\fP="http" |
|
| 44 |
+ Scheme (http or https) to connect to Heapster as |
|
| 45 |
+ |
|
| 46 |
+.PP |
|
| 47 |
+\fB\-\-heapster\-service\fP="heapster" |
|
| 48 |
+ Name of Heapster service |
|
| 49 |
+ |
|
| 50 |
+.PP |
|
| 35 | 51 |
\fB\-l\fP, \fB\-\-selector\fP="" |
| 36 | 52 |
Selector (label query) to filter on |
| 37 | 53 |
|
| ... | ... |
@@ -21,6 +21,22 @@ The top\-node command allows you to see the resource consumption of nodes. |
| 21 | 21 |
|
| 22 | 22 |
.SH OPTIONS |
| 23 | 23 |
.PP |
| 24 |
+\fB\-\-heapster\-namespace\fP="kube\-system" |
|
| 25 |
+ Namespace Heapster service is located in |
|
| 26 |
+ |
|
| 27 |
+.PP |
|
| 28 |
+\fB\-\-heapster\-port\fP="" |
|
| 29 |
+ Port name in service to use |
|
| 30 |
+ |
|
| 31 |
+.PP |
|
| 32 |
+\fB\-\-heapster\-scheme\fP="http" |
|
| 33 |
+ Scheme (http or https) to connect to Heapster as |
|
| 34 |
+ |
|
| 35 |
+.PP |
|
| 36 |
+\fB\-\-heapster\-service\fP="heapster" |
|
| 37 |
+ Name of Heapster service |
|
| 38 |
+ |
|
| 39 |
+.PP |
|
| 24 | 40 |
\fB\-l\fP, \fB\-\-selector\fP="" |
| 25 | 41 |
Selector (label query) to filter on |
| 26 | 42 |
|
| ... | ... |
@@ -33,6 +33,22 @@ since pod creation. |
| 33 | 33 |
If present, print usage of containers within a pod. |
| 34 | 34 |
|
| 35 | 35 |
.PP |
| 36 |
+\fB\-\-heapster\-namespace\fP="kube\-system" |
|
| 37 |
+ Namespace Heapster service is located in |
|
| 38 |
+ |
|
| 39 |
+.PP |
|
| 40 |
+\fB\-\-heapster\-port\fP="" |
|
| 41 |
+ Port name in service to use |
|
| 42 |
+ |
|
| 43 |
+.PP |
|
| 44 |
+\fB\-\-heapster\-scheme\fP="http" |
|
| 45 |
+ Scheme (http or https) to connect to Heapster as |
|
| 46 |
+ |
|
| 47 |
+.PP |
|
| 48 |
+\fB\-\-heapster\-service\fP="heapster" |
|
| 49 |
+ Name of Heapster service |
|
| 50 |
+ |
|
| 51 |
+.PP |
|
| 36 | 52 |
\fB\-l\fP, \fB\-\-selector\fP="" |
| 37 | 53 |
Selector (label query) to filter on |
| 38 | 54 |
|
| ... | ... |
@@ -25,16 +25,32 @@ import ( |
| 25 | 25 |
|
| 26 | 26 |
"github.com/renstrom/dedent" |
| 27 | 27 |
"github.com/spf13/cobra" |
| 28 |
+ "github.com/spf13/pflag" |
|
| 28 | 29 |
"k8s.io/kubernetes/pkg/api" |
| 29 | 30 |
"k8s.io/kubernetes/pkg/labels" |
| 30 | 31 |
) |
| 31 | 32 |
|
| 32 | 33 |
// TopNodeOptions contains all the options for running the top-node cli command. |
| 33 | 34 |
type TopNodeOptions struct {
|
| 34 |
- ResourceName string |
|
| 35 |
- Selector string |
|
| 36 |
- Client *metricsutil.HeapsterMetricsClient |
|
| 37 |
- Printer *metricsutil.TopCmdPrinter |
|
| 35 |
+ ResourceName string |
|
| 36 |
+ Selector string |
|
| 37 |
+ HeapsterOptions HeapsterTopOptions |
|
| 38 |
+ Client *metricsutil.HeapsterMetricsClient |
|
| 39 |
+ Printer *metricsutil.TopCmdPrinter |
|
| 40 |
+} |
|
| 41 |
+ |
|
| 42 |
+type HeapsterTopOptions struct {
|
|
| 43 |
+ Namespace string |
|
| 44 |
+ Service string |
|
| 45 |
+ Scheme string |
|
| 46 |
+ Port string |
|
| 47 |
+} |
|
| 48 |
+ |
|
| 49 |
+func (o *HeapsterTopOptions) Bind(flags *pflag.FlagSet) {
|
|
| 50 |
+ flags.StringVar(&o.Namespace, "heapster-namespace", metricsutil.DefaultHeapsterNamespace, "Namespace Heapster service is located in") |
|
| 51 |
+ flags.StringVar(&o.Service, "heapster-service", metricsutil.DefaultHeapsterService, "Name of Heapster service") |
|
| 52 |
+ flags.StringVar(&o.Scheme, "heapster-scheme", metricsutil.DefaultHeapsterScheme, "Scheme (http or https) to connect to Heapster as") |
|
| 53 |
+ flags.StringVar(&o.Port, "heapster-port", metricsutil.DefaultHeapsterPort, "Port name in service to use") |
|
| 38 | 54 |
} |
| 39 | 55 |
|
| 40 | 56 |
var ( |
| ... | ... |
@@ -73,6 +89,7 @@ func NewCmdTopNode(f *cmdutil.Factory, out io.Writer) *cobra.Command {
|
| 73 | 73 |
Aliases: []string{"nodes"},
|
| 74 | 74 |
} |
| 75 | 75 |
cmd.Flags().StringVarP(&options.Selector, "selector", "l", "", "Selector (label query) to filter on") |
| 76 |
+ options.HeapsterOptions.Bind(cmd.Flags()) |
|
| 76 | 77 |
return cmd |
| 77 | 78 |
} |
| 78 | 79 |
|
| ... | ... |
@@ -88,7 +105,7 @@ func (o *TopNodeOptions) Complete(f *cmdutil.Factory, cmd *cobra.Command, args [ |
| 88 | 88 |
if err != nil {
|
| 89 | 89 |
return err |
| 90 | 90 |
} |
| 91 |
- o.Client = metricsutil.DefaultHeapsterMetricsClient(cli) |
|
| 91 |
+ o.Client = metricsutil.NewHeapsterMetricsClient(cli, o.HeapsterOptions.Namespace, o.HeapsterOptions.Scheme, o.HeapsterOptions.Service, o.HeapsterOptions.Port) |
|
| 92 | 92 |
o.Printer = metricsutil.NewTopCmdPrinter(out) |
| 93 | 93 |
return nil |
| 94 | 94 |
} |
| ... | ... |
@@ -38,6 +38,7 @@ type TopPodOptions struct {
|
| 38 | 38 |
Selector string |
| 39 | 39 |
AllNamespaces bool |
| 40 | 40 |
PrintContainers bool |
| 41 |
+ HeapsterOptions HeapsterTopOptions |
|
| 41 | 42 |
Client *metricsutil.HeapsterMetricsClient |
| 42 | 43 |
Printer *metricsutil.TopCmdPrinter |
| 43 | 44 |
} |
| ... | ... |
@@ -88,6 +89,7 @@ func NewCmdTopPod(f *cmdutil.Factory, out io.Writer) *cobra.Command {
|
| 88 | 88 |
cmd.Flags().StringVarP(&options.Selector, "selector", "l", "", "Selector (label query) to filter on") |
| 89 | 89 |
cmd.Flags().BoolVar(&options.PrintContainers, "containers", false, "If present, print usage of containers within a pod.") |
| 90 | 90 |
cmd.Flags().BoolVar(&options.AllNamespaces, "all-namespaces", false, "If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.") |
| 91 |
+ options.HeapsterOptions.Bind(cmd.Flags()) |
|
| 91 | 92 |
return cmd |
| 92 | 93 |
} |
| 93 | 94 |
|
| ... | ... |
@@ -107,7 +109,7 @@ func (o *TopPodOptions) Complete(f *cmdutil.Factory, cmd *cobra.Command, args [] |
| 107 | 107 |
if err != nil {
|
| 108 | 108 |
return err |
| 109 | 109 |
} |
| 110 |
- o.Client = metricsutil.DefaultHeapsterMetricsClient(cli) |
|
| 110 |
+ o.Client = metricsutil.NewHeapsterMetricsClient(cli, o.HeapsterOptions.Namespace, o.HeapsterOptions.Scheme, o.HeapsterOptions.Service, o.HeapsterOptions.Port) |
|
| 111 | 111 |
o.Printer = metricsutil.NewTopCmdPrinter(out) |
| 112 | 112 |
return nil |
| 113 | 113 |
} |