Code Monkey home page Code Monkey logo

kube-azure-helm-charts's Introduction

Helm chart \ Azure Storage \ on Kubernetes

Helm charts for building Azure storage via Kubernetes

Use Case

  • a Pod needs storage on Azure
  • Someone needs to manually provision storage on Azure
  • Someone needs to manually create a Kubernetes secret for the pod to get the storage details.

What it does

This Helm chart automates the above use case, removing manual efforts!

  • Automatically creates a secret in K8 used to access Azure subscription
  • Kicks off a Kubernetes job with Azure CLI container and provisions a storage account
  • Reads the connection string for the new storage and uses K8 api to inject it as a K8 secret
  • The pod that needs the secret will be able to mount it in!

Now your microservices that require storage can mount that secret and access storage. You can bundle this helm chart with your service charts to provision storage automatically when you summon your pods

Prerequisites

  • Kubectl
  • Helm CLI
  • Running Kubernetes cluster

Installation

Make a Helm values file

Make sure you have a running Kubernetes cluster and your kubectl is configured to run against it

You will need some secret values.yaml file for this helm chart

Note: Beware of naming limiations on storage accounts!!

storage-create:
  azure_service_principal_name: https://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  azure_service_principal_key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=
  azure_storage_ad_tenant: <youradtenant.onmicrosoft.com>
  azure_storage_subscription: <Azure-Subscription-ID>
  azure_storage_resource_group: <Azure-Resource-Group-Name>
  azure_storage_account_name:  <Azure-Storage-Account-Name>
  azure_file_share_name: <Azure-Storage-Fileshare-Name>
  azure_storage_account_location: eastus

Configure your cluster with helm

kubectl create -f ./prerequisites/helm-rbac.yaml
helm init --service-account tiller

Install the chart

helm install azure-storage -f values.yaml --namespace default

Note: If you change the default namespace in the values file you will need to specify it in your helm install namespace flag ;)

kube-azure-helm-charts's People

Contributors

marcel-dempers avatar marceldempers avatar

Watchers

James Cloos 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.