Giter Club home page Giter Club logo

learn-terraform-provision-aks-cluster's Introduction

Learn Terraform - Provision AKS Cluster

This repo is a companion repo to the Provision an AKS Cluster tutorial, containing Terraform configuration files to provision an AKS cluster on Azure.

learn-terraform-provision-aks-cluster's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

learn-terraform-provision-aks-cluster's Issues

Improve example with version 2.0

๐Ÿž Problem

Add examples for AKS using version = "~> 2.0"

๐ŸŽฏ Goal

Improve examples with modern version of azurerm provider

๐Ÿ’ก Possible solutions

Change agent_pool_profile by default_node_pool and linux_profile

need additional flag when configuring k8 dashboard

in README:

kubectl create clusterrolebinding kubernetes-dashboard --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard

should be:

kubectl create clusterrolebinding kubernetes-dashboard --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard --user=clusterUser

always getting Error: "Failed to query available provider packages"

abutaleb@DESKTOP-T86S6P3:~/learn-terraform-provision-aks-cluster$ terraform init

Initializing the backend...

Initializing provider plugins...

  • Finding hashicorp/azurerm versions matching "~> 2.0, 2.25.0"...
  • Finding latest version of hashicorp/random...
  • Installing hashicorp/azurerm v2.25.0...
  • Installed hashicorp/azurerm v2.25.0 (signed by HashiCorp)

Warning: Version constraints inside provider configuration blocks are deprecated

on aks-cluster.tf line 4, in provider "azurerm":
4: version = "~> 2.0"

Terraform 0.13 and earlier allowed provider version constraints inside the
provider configuration block, but that is now deprecated and will be removed
in a future version of Terraform. To silence this warning, move the provider
version constraint into the required_providers block.

Error: Failed to query available provider packages

Could not retrieve the list of available versions for provider
hashicorp/random: could not query provider registry for
registry.terraform.io/hashicorp/random: the request failed after 2 attempts,
please try again later: Get
"https://registry.terraform.io/v1/providers/hashicorp/random/versions":
context deadline exceeded

abutaleb@DESKTOP-T86S6P3:~/learn-terraform-provision-aks-cluster$

This code is giving client id not found error

While running terraform apply, it is giving me this error

โ”‚ Error: creating Managed Kubernetes Cluster "novel-whale-aks" (Resource Group "novel-whale-rg"): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="ServicePrincipalNotFound" Message="Service principal clientID: aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa not found in Active Directory tenant 

with azurerm_kubernetes_cluster.default,
โ”‚   on aks-cluster.tf line 16, in resource "azurerm_kubernetes_cluster" "default":
โ”‚   16: resource "azurerm_kubernetes_cluster" "default" {

VM size not supported

While applying the plan i received this error :"The VM size of Standard_B2s is not allowed in your subscription in location 'westus2'

exactly:
Error: creating Managed Kubernetes Cluster "caring-pelican-aks" (Resource Group "caring-pelican-rg"): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="BadRequest" Message="The VM size of Standard_B2s is not allowed in your subscription in location 'westus2'. The available VM sizes are 'standard_d16pds_v5,standard_d16plds_v5,standard_d16pls_v5,standard_d16ps_v5,standard_d2pds_v5,standard_d2plds_v5,standard_d2pls_v5,standard_d2ps_v5,standard_d32pds_v5,standard_d32plds_v5,standard_d32pls_v5,standard_d32ps_v5,standard_d48pds_v5,standard_d48plds_v5,standard_d48pls_v5,standard_d48ps_v5,standard_d4pds_v5,standard_d4plds_v5,standard_d4pls_v5,standard_d4ps_v5,standard_d64pds_v5,standard_d64plds_v5,standard_d64pls_v5,standard_d64ps_v5,standard_d8pds_v5,standard_d8plds_v5,standard_d8pls_v5,standard_d8ps_v5,standard_dc16ds_v3,standard_dc16s_v3,standard_dc24ds_v3,standard_dc24s_v3,standard_dc2ds_v3,standard_dc2s_v3,standard_dc32ds_v3,standard_dc32s_v3,standard_dc48ds_v3,standard_dc48s_v3,standard_dc4ds_v3,standard_dc4s_v3,standard_dc8ds_v3,standard_dc8s_v3,standard_e16pds_v5,standard_e16ps_v5,standard_e20pds_v5,standard_e20ps_v5,standard_e2pds_v5,standard_e2ps_v5,standard_e32pds_v5,standard_e32ps_v5,standard_e4pds_v5,standard_e4ps_v5,standard_e8pds_v5,standard_e8ps_v5,standard_fx12mds,standard_fx24mds,standard_fx36mds,standard_fx48mds,standard_fx4mds,standard_hb120-16rs_v2,standard_hb120-32rs_v2,standard_hb120-64rs_v2,standard_hb120-96rs_v2,standard_hb120rs_v2,standard_hc44-16rs,standard_hc44-32rs,standard_hc44rs' For more details, please visit https://aka.ms/aks/quotas-skus-regions"

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.