Converting your HSF installation to use Kubernetes
Last updated on
- Navigate to the
Solutions Factoryproject within theHarness Platform Managementorganization of your Harness account - Open the
Infrastructuremodule and chooseWorkspaces - Find and select the
Harness Pilot Lightworkspace - Navigate to the
Variablestab and chooseOpenTofu Variables - Edit
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 userkubernetes_override_image_connectorto modify the image connector used to pull step images
note
If you specify a custom default image connector via kubernetes_override_image_connector you will need to make the following images avalible in your registry:
- harnesssolutionfactory/harness-python-api-sdk:latest
- harnesssolutionfactory/harness-cr-mirror-repositories:latest
- harnesssolutionfactory/harness-token-rotation:latest
- harnesssolutionfactory/harness-manage-iacm-workspace:latest
- harnesssolutionfactory/harness-idp-resource-manager:latest
Note: Additional details around the various options and variables can be found in the pilot-light directory of the Harness Solutions Factory repository
- 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 account - Open the
Infrastructuremodule and chooseWorkspaces - Find and select the
Harness Solutions Factoryworkspace - Navigate to the
Variablestab and chooseOpenTofu Variables - Edit
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.
Note: Additional details around the various options and variables can be found in the solutions-factory directory of the Harness Solutions Factory repository
- Navigate to pipelines
- Run the pipeline
Deploy Solutions Factoryto apply the changes.