GithubHelp home page GithubHelp logo

evangelism / azuremeetupapril19 Goto Github PK

View Code? Open in Web Editor NEW
1.0 5.0 2.0 5.72 MB

Shell 100.00%
azure kubernetes azure-container deis deis-workflow devops meetup ppt azure-cli azure-microservicrs-meetup

azuremeetupapril19's Introduction

Azure Microservicrs Meetup at April 19

PPT and scripts form Azure Microservicrs Meetup at April 19

Presentations

"Microservices in Azire.pdf" - PPT from the meetup about Microservices and Azure for it (Stas Pavlov)
"Azure Service Fabric.pdf" - PPT from the meetup about Azure Service Fabric (Evgeny Grigorenko)
"Why DevOps Matters.pdf" - PPT from the meetup about DevOps (Vladimir Gusarov)

Kubernetes with ACS and Deis simple deployment scripts

createk8s.sh - bash script with parameters to create Kubertentes cluster at Azure Container Services
createdeis.sh - bash script with parameters to create Deis Workflow on created Kuberntetes cluster (use the same prameters as createk8s.sh)

Change the following parameters to use for your test:

Purpose Parameter Current value in scripts
Azure Resource Group name AZURE_RG_NAME stas-k8s-rg
Azure DC Location AZURE_DC_LOCATION southcentralus
Azure Container Service name AZURE_SERVICE_NAME stas-k8s-acs
Azure DNS Prefix for Azure Container Service AZURE_DNS_PREFIX stas-k8s
Azure Storage Account name for DEIS usage AZURE_SA_NAME stask8sdeisstorage

You need have installed the following utils to use this scripts

Before run the scripts you need to perform login to your Azure subscripion with Azure CLI using the following command:

az login

Don't forgert to mark the scripts as executable:

sudo chmod +x createk8s.sh
sudo chmod +x createdeis.sh

Azure CLI 2.0
az - https://docs.microsoft.com/en-us/cli/azure/install-azure-cli

Kubernetes command-line tool
kubectl - https://kubernetes.io/docs/tasks/kubectl/install/

Helm is a tool for managing Kubernetes charts. Charts are packages of pre-configured Kubernetes resources
helm - https://github.com/kubernetes/helm/blob/master/docs/install.md

The Deis command-line interface (CLI)
deis - http://docs.deis.io/en/latest/using_deis/install-client/

Test Deis installation

To test the deployment you need to find a right hostname to use with deis CLI.
Execute the following command to find EXTERNAL IP of your Kubernetes cluster:

kubectl --namespace=deis get service deis-router

You results will look like this one:

 NAME          CLUSTER-IP    EXTERNAL-IP    PORT(S)                                                    AGE
 deis-router   10.0.113.22   1.1.1.1        80:31912/TCP,443:31642/TCP,2222:31239/TCP,9090:32507/TCP   5m
 

Use EXTERNAL-IP value to build the hostname to access Deis. It will be:

deis.EXTERNAL-IP.nip.io

For example, for the output above it is:

 deis.1.1.1.1.nip.io

To deploy your first app you need to register on Deis using following command:

deis register http://deis.EXTERNAL-IP.nip.io 

Example output:

stas@ubuntuserver:~$ deis register http://deis.1.1.1.1.nip.io
username: admin
password:
password (confirm):
email: [email protected]
Registered admin
Logged in as admin
Configuration file written to /home/stas/.deis/client.json

As the first registered user you will receive adminstrative priveleges.
Check that you set all right executing following command:

deis whoami

Example output:

 stas@ubuntuserver:~$ deis whoami
 You are admin at http://deis.1.1.1.1.nip.io
 

And finally add your ssh pub key to Deis:

 deis keys:add ~/.ssh/id_rsa.pub

Great! So now your ready to deploy your first app to Deis.

To test Deis installation you can use the follwing guides:
For Applications - https://deis.com/docs/workflow/quickstart/deploy-an-app/
For Containers - https://deis.com/docs/workflow/applications/using-dockerfiles/

Or you can use prepared testdeis.sh script. Don't forgert to mark the scripts as executable:

sudo chmod +x testdeis.sh

After the script execution my-first-deis-app was created. You can check it by using the following command:

curl http://my-first-deis-app.deis.EXTERNAL-IP.nip.io  

where EXTERNAL-IP is the EXTERNAL-IP of deis-router you detected before.
Example output:

stas@ubuntuserver:~/example-go$ curl http://my-first-deis-app.deis.1.1.1.1.nip.io
Powered by Deis
Release v2 on my-first-deis-app-web-4229391613-ps87f

azuremeetupapril19's People

Contributors

stas-pavlov avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

stas-pavlov gridl

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.