Provision Upstream k8s
This is an example of a Jenkins based pipeline programmatically interacting with the Controller to provision upstream Kubernetes Clusters on Amazon AWS.
- You have configured credentials in Jenkins so that the pipeline can access the Controller. An illustrative example is shown below.
Step 1: Create Jenkins Item¶
Create a new Jenkins "Item", provide a name and select "pipeline" for type. Illustrative screenshot below.
Step 2: Cluster Spec Parameter¶
Select the "This project is parameterized" option and enter "CLUSTER_METADATA". This will carry the Cluster Specs.
Step 3: Pipeline¶
Copy the example Jenkins pipeline from the public Git repo and customize it with your details.
Step 4: Build With Parameters¶
- To execute the pipeline, click on "build with parameters"
- Provide the cluster spec in the parameters
- Click on build