Skip to main content

Service

This feature defines the Service that backs the control plane's Ingress resource.

vCluster uses a default Service spec when you don't configure one in service.spec. This default spec uses the service.httpsNodePort and service.kubeletNodePort. If you configureservice.spec, vCluster ignores service.httpsNodePort and service.kubeletNodePort values, make sure you configure the ports in your Service spec.

note
  • .experimental.isolatedControlPlane.headless configuration changes the default Service spec to expose the required 8443 targetPort for both https and kubelet.
  • networking.advanced.proxyKubelets.byHostname or networking.advanced.proxyKubelets.byIP configuration changes the default Service spec to expose the kubelet port at 10250.

Config reference​

service required object pro​

Service defines options for vCluster service deployed by Helm.

enabled required boolean true pro​

Enabled defines if the control plane service should be enabled

spec required object map[type:ClusterIP] pro​

Spec allows you to configure extra service options.

kubeletNodePort required integer 0 pro​

KubeletNodePort is the node port where the fake kubelet is exposed. Defaults to 0.

httpsNodePort required integer 0 pro​

HTTPSNodePort is the node port where https is exposed. Defaults to 0.

annotations required object {} pro​

Annotations are extra annotations for this resource.

labels required object {} pro​

Labels are extra labels for this resource.