Convert Your HSF Installation to Use Kubernetes
Move your Harness Solutions Factory installation from Harness Cloud build infrastructure to your own Kubernetes build infrastructure.
When to use this
By default, HSF runs on Harness Cloud build infrastructure. Convert your installation to use Kubernetes when any of the following apply:
You are standardizing CI/CD execution on Kubernetes across your environment and want HSF's pipelines to run consistently with the rest of your infrastructure.
Your organization requires build infrastructure to run inside your own network (VPC, on-prem cluster, etc.) rather than on Harness-hosted runners, for compliance or security reasons.
Your registry is not reachable from Harness Cloud. If your private registry (for example JFrog, ECR, ACR) is only accessible from your internal Kubernetes network, pipelines that pull images, including the IaCM
harness_terraform_vmimage, fail on Harness Cloud regardless of which connector is configured at the Org or Project level. This is the most common reason customers need this conversion.
Convert to Kubernetes
Navigate to the
Solutions Factoryproject within theHarness Platform Managementorganization of your Harness accountOpen the
Infrastructuremodule and chooseWorkspacesFind and select the
Harness Pilot LightworkspaceNavigate to the
Variablestab and chooseOpenTofu VariablesEdit
kubernetes_connectorto provide an existing Kubernetes connector reference. Note: The connector will need to be scoped to the correct location where the connector exists. Prefix withaccount.ororg.depending on its location.Optionally add the following variables based on your target build infrastructure
kubernetes_namespaceto modify the namespace into which the pods will be deployedkubernetes_serviceaccountto modify the service account which the pods will be assignedkubernetes_node_selectorsto modify the node selector which the pods will usekubernetes_override_image_connectorto modify the image connector used to pull built-in steps images
Navigate to pipelines
Run the pipeline
Manage Pilot Lightto apply the changes.
STOP: Changing the Kubernetes connector in this workspace only modifies it for the core resources and does not change the underlying connection for the engine pipelines. After the pipeline Manage Pilot Light executes, continue these steps
Navigate to the
Solutions Factoryproject within theHarness Platform Managementorganization of your Harness accountOpen the
Infrastructuremodule and chooseWorkspacesFind and select the
Harness Solutions FactoryworkspaceNavigate to the
Variablestab and chooseOpenTofu VariablesEdit
kubernetes_connectorto provide an existing Kubernetes connector reference. Note: The connector will need to be scoped to the correct location where the connector exists. Prefix withaccount.ororg.depending on its location.Optionally, edit
kubernetes_namespaceto modify the namespace into which the pods will be deployed.
Navigate to pipelines
Run the pipeline
Deploy Solutions Factoryto apply the changes.
Last updated
Was this helpful?