Metrics Server
Reusing host metrics server​
Create a vcluster.yaml
with:
integrations:
metricsServer:
enabled: true
nodes: true
pods: true
Then create a vCluster with:
vcluster create host-metrics-vcluster -f vcluster.yaml
Then the metrics api should be available within the vCluster. This will obviously require a metrics server to be installed on the host cluster.
If your metrics server is not using the default kube-system/metrics-server
service, you can also configure a custom one via:
integrations:
metricsServer:
enabled: true
apiService:
service:
name: my-custom-metrics-server
namespace: my-custom-namespace
port: 443
Config reference​
metricsServer
required object pro​
MetricsServer reuses the metrics server from the host cluster within the vCluster.
metricsServer
required object pro​enabled
required boolean false pro​
Enabled signals the metrics server integration should be enabled.
enabled
required boolean false pro​apiService
required object pro​
APIService holds information about where to find the metrics-server service. Defaults to metrics-server/kube-system.
apiService
required object pro​service
required object pro​
Service is a reference to the service for the API server.
service
required object pro​nodes
required boolean true pro​
Nodes defines if metrics-server nodes api should get proxied from host to virtual cluster.
nodes
required boolean true pro​pods
required boolean true pro​
Pods defines if metrics-server pods api should get proxied from host to virtual cluster.
pods
required boolean true pro​