c2sr-testbed-user-docs 0.0.5 Help

install-kubernetes-from-actions

This guide explains how to install Kubernetes on your testbed directly from GitHub Actions. By following these steps, you will use a self-hosted GitHub runner (set up as per the previous guide) to install and configure Kubernetes across your on-premise infrastructure. This guide is intended for users who have already set up the necessary GitHub runner and have access to the c2sr-testbed-infra repo.

Before you start

Ensure:

ANL: Setup instructions to install kubernetes from GH actions

Some introductory information.

  1. Clone the repo.

    git clone git@github.com:ar-ramchandra/c2sr-testbed-infra.git
  2. Edit the src/anl_cluster host file.

  1. Add hostnames of for each of the nodes based on their roles; a sample is shown below;

[control_plane] anl_dummy_entry [worker_nodes] dummy_entry1 group_tag=prem-cloud dummy_entry2 group_tag=nano dummy_entry3 group_tag=nano dummy_entry4 group_tag=agx

The hostname specified here will be used to name the node in the Kubernetes cluster. The control plane will be set up for hosts listed under [control_plane], while devices under [worker_nodes] will be labeled as worker nodes. Additionally, tags such as group_tag=agx will be used to assign specific labels (e.g., group=agx) to the nodes.

The node name set here must match the corresponding entries in your SSH configuration to ensure proper connectivity.

Last modified: 06 March 2025