GithubHelp home page GithubHelp logo

devops-test's Introduction

Terraform Storage and Helm Chart (How to use/Install)

Author ๐Ÿš€

Olusola Lanre Akinsulere


Technologies

  • Terraform
  • HelmChart
  • Azure



Setup Terraform on Azure

  • Signup on Azure Cloud
  • Download azure-cli for your OS
  • Run az login and follow the prompt
  • Verify you can see the subscription plans
  • Install the terraform plugin for your OS
  • Run Terraform init
  • Run Terraform apply

Setup and create example Helm chart on Mac

  • run brew install Helm
  • Create a helm-chart folder
  • cd into the created directory run helm create
  • run helm lint
  • run helm package
  • Once the terraform blob storage has been deployed run helm repo index --url .

Upload Helm Chart to Blob Storage

  • export AZURE_STORAGE_ACCOUNT=$blobStoreName

  • export AZURE_STORAGE_KEY=$(az storage account keys list --resource-group $rg --account-name $blobStoreName | grep -m 1 value | awk -F'"' '{print $4}')

  • az storage blob upload --container-name $containerName --file index.yaml --name index.yaml

  • az storage blob upload --container-name $containerName --file *.tgz --name *.tgz



Thought Process

I wanted to make the blob storage as secure as possible by making use of a sas token on the url of the blob container, the helm chart was a bit manual in uploading, as I didn't see any plugin for the helm chart plugin for azure


Contributions

Todo:

  • Create a more unique storage account name that fits the description of the name requirement
  • Write a script to automate the uploading of the helm chart to the blob storage

Challenges

Getting to use the sas token was a bit of an hassle, also creating the subnets within the required virtual network kept on throwing some errors, I was reinitializing a variable that was been passed to the aks module twice, so fixed that, and everything worked out fine.


devops-test's People

Contributors

lanrey avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.