GithubHelp home page GithubHelp logo

andresguisado / azure-k8s-cli-docker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 9 KB

Dockerizing Azure cli calls in order to create kubernetes cluster on ACI, ACS, AKS.

License: Apache License 2.0

Shell 100.00%

azure-k8s-cli-docker's Introduction

Azure-k8s-cli-docker

Dockerizing Azure API 2.0 calls to create a Kubernetes cluster consuming ACS, AKS. You also can create an Azure Container Registry (ACR).

Dependencies, you need to install the following software in order to be able to use this code:

Getting Started

  • Clone the project locally:
git clone --recurse-submodules [email protected]:andresguisado/azure-k8s-cli-docker.git && export REPO_PATH=$PWD/azure-k8s-cli-docker
  • Create env.sh file as follows:
touch envs.sh && export ENV_VAR_PATH=$PWD/envs.sh
AZURE_SUBSCRIPTION=XXXXXXXX
CLIENT_ID=XXXXXXXXX
CLIENT_SECRET=XXXXXXX
AZURE_RESOURCE_GROUP=example-k8s-westeu-poc
CLUSTER_NAME=k8s-cluster-poc
LOCATION=westeurope
K8S_VERSION=1.8.1
ORCHESTRATOR_TYPE=kubernetes

Note: ORCHESTRATOR_TYPE is just for ACS.CLIENT_ID and CLIENT_SECRET are your AZURE API credentials

  • Choose your Azure Container flavor (aks or acs):
cd azure-k8s-cli-docker/docker/aks 
or 
cd azure-k8s-cli-docker/docekr/acs

Note: You also can create an Azure Container Registry by cd azure-k8s-cli-docker/docker/acr then sh create_registry.sh.

  • Run sh create_cluster.sh.
  • You can delete, upgrade and scale your cluster using the scripts at the same level than azure-k8s-cli-docker/docker/create_cluster.sh.

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.