Add list_nodes_metrics()
@@ -206,6 +206,11 @@ class KubernetesContainerDriver(KubernetesDriverMixin, ContainerDriver):
).object
return self._to_cluster(result)
+ def list_nodes_metrics(self):
+ return self.connection.request("/apis/metrics.k8s.io/v1beta1/nodes").object[
+ "items"
+ ]
+
def deploy_container(self, name, image, cluster=None, parameters=None, start=True):
"""
Deploy an installed container image.
