Giter VIP home page Giter VIP logo

aks-example's Introduction

AKS - Azure Kubernetes Service (example)

This repository contains an example to start a new project using as base AKS.

Creating an AKS Cluster

AKS cluster can be create using ARM Templates, API, Azure CLI or Web Portal interface. To keep simple was used the Web Portal Interface with a new features deployed on Portal and not supported yet in Azure CLI.

Create an AKS CLuster

NOTE: Remember that is an example to start a new project from scratch to before move to prouction have to analyse how much nodes will be necessary to your goals.

Azure CLI

To management the AKS Cluster will be necessary to use Azure CLI. If don't have installed, please following this instructions:

If it's installed and updated just need run:

$ az login

To configure the kubectl command will be necessary run:

$ az aks install-cli
Downloading client to "C:\Users\mabarbo\.azure-kubectl\kubectl.exe" from "https://storage.googleapis.com/kubernetes-release/release/v1.15.1/bin/windows/amd64/kubectl.exe"
Please add "C:\Users\mabarbo\.azure-kubectl" to your search PATH so the `kubectl.exe` can be found. 2 options:
    1. Run "set PATH=%PATH%;C:\Users\mabarbo\.azure-kubectl" or "$env:path += 'C:\Users\mabarbo\.azure-kubectl'" for PowerShell. This is good for the current command session.
    2. Update system PATH environment variable by following "Control Panel->System->Advanced->Environment Variables", and re-open the command window. You only need to do it once

Getting credentials from the AKS cluster:

$ az aks get-credentials --resource-group marcelo --name mycluster

Right now is possible to check the nodes:

$ kubectl get nodes

AKS Dashboard

To open the Kubernetes Dashboard that you can see, in a web interface the deployments, services, status, from your cluster will be necessary enable it:

$ az aks browse --resource-group marcelo --name mycluster

The Kubernetes Dashboard will need the permission to interact with it based on the cluster has RBAC enabled:

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

Right now is possible refresh the Kubernetes Dashboard that the errors will disapear.

AKS Dashboard

aks-example's People

Contributors

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