In order to implement configuration as code
and streamline the process of creating an Openshift service account token
for GitHub Actions
to deploy k8s resources on an Openshift cluster, we utilize a tool called Terraform.
-
Go to the target namespace directory:
cd <namespace>
-
Initialize the working directory containing the Terraform configuration files:
terraform init
-
Preview the changes Terraform intends to make to your infrastructure:
terraform plan
-
Execute the actions specified in the Terraform plan:
terraform apply