- Create a Kubernetes secret with the following azure parameters:
tenantid:
subscriptionid:
clientid:
clientsecret:
You can find an example secret file here
-
Apply the secret file
kubectl apply -f terraform-az-secret.yaml --namespace jenkins
-
Install Jenkins in Kubernetes
helm install --name jenkins stable/jenkins --namespace jenkins
-
(Optional) Enter your public ssh key for the new VMSS
-
Enter your pipeline parameters:
-
Replace the following values in the pipeline
<containerRegistry>
- The docker image with azure cli and Terraform<your-secret-name>
- Kubernetes secret name- Optional
<your-public-key-id>
- Your SSH public key for the VMSS. <container-name>
- The Azure Blob storage container name to host the Terraform state files<jenkins-storage-id>
- The id of the Azure Storage Credentials in Jenkins
-
Invoke the pipeline