GithubHelp home page GithubHelp logo

azure-terraform-aks's Introduction

azure-terraform-aks

Deploy and destroy aks with terraform. Provided as-is.

Create a terraform.tfvars file to proivide azure subscription id, existing resource group And/Or other inputs to the script. See var.tf file for more details. e.g.

az_subscription_id = "your-azure-subscription-id"
az_resource_group  = "existing-resource-group-in-azure"
az_name_prefix     = "unique-prefix-to-use-in-resource-names"

NOTE: These are mac instructions (homebrew --> azure cli --> terraform --> aks).

#install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
## install terraform
brew install terraform
## install az cli
brew install azure-cli
## install aks kubernetes client
sudo az aks install-cli
## login to azure cli
az login --use-device-code
## obtain this repo
git clone https://github.com/amitgupta7/azure-terraform-aks.git
cd azure-terraform-aks
source tfAlias
source kAlias
## initialize terraform
tf init
tfaa
## Check if kubectl command is working with aks
kg nodes
# + kubectl get nodes
# NAME                             STATUS   ROLES   AGE     VERSION
# aks-system-31285995-vmss000000   Ready    agent   3m51s   v1.24.10
# aks-system-31285995-vmss000001   Ready    agent   3m55s   v1.24.10
## clean-up
tfda

Installing software with helm

See Bitnami Charts for more helm charts.

helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm install my-release-pg  oci://registry-1.docker.io/bitnamicharts/postgresql
helm install my-release-ec oci://registry-1.docker.io/bitnamicharts/redis
helm install my-release-es oci://registry-1.docker.io/bitnamicharts/elasticsearch

Output

$> kg pods
+ kubectl get pods
NAME                                                     READY   STATUS    RESTARTS   AGE
my-release-es-elasticsearch-coordinating-0   1/1     Running   0          10m
my-release-es-elasticsearch-coordinating-1   1/1     Running   0          10m
my-release-es-elasticsearch-data-0           1/1     Running   0          10m
my-release-es-elasticsearch-data-1           1/1     Running   0          10m
my-release-es-elasticsearch-ingest-0         1/1     Running   0          10m
my-release-es-elasticsearch-ingest-1         1/1     Running   0          10m
my-release-es-elasticsearch-master-0         1/1     Running   0          10m
my-release-es-elasticsearch-master-1         1/1     Running   0          10m
my-release-ec-redis-master-0                 1/1     Running   0          13m
my-release-ec-redis-replicas-0               1/1     Running   0          13m
my-release-ec-redis-replicas-1               1/1     Running   0          12m
my-release-ec-redis-replicas-2               1/1     Running   0          11m
my-release-pg-0                              1/1     Running   0          20m

azure-terraform-aks's People

Contributors

amitgupta7 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.