Skip to content
This repository has been archived by the owner on Dec 20, 2020. It is now read-only.

Latest commit

 

History

History
49 lines (39 loc) · 1.86 KB

installation.md

File metadata and controls

49 lines (39 loc) · 1.86 KB

Jenkins Pipeline installation guide

  1. Create a Kubernetes secret with the following azure parameters:
  tenantid:
  subscriptionid:
  clientid:
  clientsecret:

You can find an example secret file here

  1. Apply the secret file

    kubectl apply -f terraform-az-secret.yaml --namespace jenkins
  2. Install Jenkins in Kubernetes

    helm install --name jenkins stable/jenkins --namespace jenkins
  3. Install the Jenkins Azure Storage Plugin image

  4. Enter your Azure Storage Details image

  5. (Optional) Enter your public ssh key for the new VMSS

  6. Create a new pipeline image

  7. Enter your pipeline parameters:

    1. deployment - The name of the deployment
    2. vm_images_rg - The name of the VM image resource group
    3. vmss_rg - The name of the VMSS resource group
    4. image_name - The name of the VM image
    5. vmss_name - The name of the VMSS
    6. location - The resources location name image
  8. Replace the following values in the pipeline

    1. <containerRegistry> - The docker image with azure cli and Terraform
    2. <your-secret-name> - Kubernetes secret name
    3. Optional <your-public-key-id> - Your SSH public key for the VMSS.
    4. <container-name> - The Azure Blob storage container name to host the Terraform state files
    5. <jenkins-storage-id> - The id of the Azure Storage Credentials in Jenkins
  9. Invoke the pipeline