Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Provisioning Azure Infra

  • Create Service principle for aks cluster

    az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/<subscription_id>" --name sunbird_installation_version
  • Create Maxmind DB Licence key

  • Create an ssh public key

    • ssh-keygen -C installation_test_key -b 4096 -f /tmp/deployer_key
      vim /tmp/deployer_key.pub
  • Login to http://portal.azure.com → select Cloud shell

  • git clone https://github.com/project-sunbird/sunbird-devops -b releaese-<version>
    cd sunbird-devops/deploy
    vim azure-provision.yaml
    # Update the mandatory variables.
    ansible-playbook azure-provision.yaml
  • Go to the created vnet → Click on connected devices to get all ips

  • Update the IP address for the modules

    sed -i 's/10.1.4.4/DP     vm IP/g' ./{Core,KnowledgePlatform,DataPipeline}/{common.yml,hosts} # DP
    sed -i 's/10.1.4.5/DB     vm IP/g' ./{Core,KnowledgePlatform,DataPipeline}/{common.yml,hosts} # DB
    sed -i 's/10.1.4.6/KP     vm IP/g' ./{Core,KnowledgePlatform,DataPipeline}/{common.yml,hosts} # KP
    sed -i 's/10.1.4.7/Yarn   vm IP/g' ./{Core,KnowledgePlatform,DataPipeline}/{common.yml,hosts} # YARN
    sed -i 's/10.1.4.8/Others vm IP/g' ./{Core,KnowledgePlatform,DataPipeline}/{common.yml,hosts} # OTHERS
  • Update the Variable files (common.yaml, secrets.yaml) in Core,KnowledgePlatform,DataPipeline
    Note: Blob, Docker registry secrets will be printed on the console of the azure-provision ansible task, which ran above

  • Setup Jenkins as per the doc http://docs.sunbird.org/3.9.0/developer-docs/server-installation/jenkins-setup/

  • In the Build and deploy step(http://docs.sunbird.org/3.9.0/developer-docs/server-installation/build-and-deploy/ ), skip all the prerequisites and proceed to Code Builds Section. Maxmind DBS will be present in

    Blob storage -> artifacts -> geoip2_db.{zip, tar.gz}
    you can give the url of artifact in Jenkins build, if promted
  • To get all the branches to build, run the https://10.20.0.14/jenkins/job/Release/job/OtherReleaseJobs/job/GetBranches/
    Replay the job and change the release-x.x.x and run the job.
    It will generate a branches.txt file, which will contain all branch info.

  • No labels