View
158
Download
3
Category
Preview:
Citation preview
MicrosoftAzureContainerServiceTuna
tuna@apache.org@ngtuna11
http://www.meetup.com/Docker-Switzerland/
Tu Nguyen
• Masterstudent@UniBas• Docker meetup organizer• ApacheSoftwareFoundationcommitter• ContributingtoSkippbox
• Kubernetes toolboxfordev• Interests
• Cloudopen-source• Container,Golang,Microservices,DevOps• Kubernetes crazyfan
Agenda
• Generalinformation• ACSdeployment• MesosphereDC/OS– Marathon• Docker Swarm• Demo
• DC/OSalittlemoreinfo…• Docker &Windowsintegration• Q&A
AzureContainerService
https://azure.microsoft.com/en-us/blog/azure-container-service-is-now-generally-available/
Agenda
• Generalinformation• ACSdeployment• MesosphereDC/OS– Marathon• Docker Swarm• Demo
• DC/OSalittlemoreinfo…• Docker &Windowsintegration• Q&A
• DeployonPortal(viaARM) • AzureCLIwithtemplateURI
https://github.com/Azure/azure-quickstart-templateshttps://azure.microsoft.com/en-us/documentation/templates/
• DeployfromQuickstart templates
$azuregroupcreate-nRESOURCE_GROUP-lLOCATION--template-uri TEMPLATE_URI
DC/OS
Swarm
ConnecttoAzureContainerService
• Onlyonechoice:createSSHtunnel• ACSRESTendpointsarenotopenedtotheoutsideworld.
• DC/OStunnel
• Swarmtunnel
$sudo ssh -L80:localhost:80-f-Nazureuser@acsexamplemgmt.japaneast.cloudapp.azure.com -p2200
DC/OS:http://localhostMarathon:http://localhost/marathonMesos:http://localhost/mesos
$ssh -L2375:localhost:2375 -f-Nazureuser@acsexamplemgmt.japaneast.cloudapp.azure.com -p2200$exportDOCKER_HOST=:2375
Demo
Agenda
• Generalinformation• ACSdeployment• MesosphereDC/OS– Marathon• Docker Swarm• Demo
• DC/OSalittlemoreinfo…• Docker &Windowsintegration• Q&A
DC/OS– alittlemoreinfo…
• https://dcos.io• DatacenterOperatingSystem,backedbyApacheMesos• Lotsofbuild-inservices
• Admin-router– coreinternalLBprovidingcentralauthen andproxy• Cosmos– internalpackagingAPIservice• History– storestateful informationaboutDC/OScluster• Logrotate – managelogfiles• Marathon– deploy&manageapplicationontopofDC/OS(default)• Mesos-DNS– internalDNSservicediscovery• etc
$ls -la/etc/systemd/system/dcos.target.wants/
https://docs.mesosphere.com/overview/components/
DC/OS– Universe
DC/OS- ServiceDiscovery&LoadBalance• ServiceDiscovery• Mesos-DNS
$pingmy-app.marathon.mesos
• LoadBalance• AzureLB– external
• Loadbalancingrules&Probes• Marathon-LB– internal
• Label(perservicePort)• HAPROXY_{n}_GROUP• HAPROXY_{n}_MODE• HAPROXY_{n}_VHOST
Mesos-DNS:https://docs.mesosphere.com/usage/service-discovery/Mesos-DNS/Marathon-lb label:https://github.com/mesosphere/marathon-lb/blob/master/Longhelp.mdACSloadbalancing:https://azure.microsoft.com/en-us/documentation/articles/container-service-load-balancing/
Agenda
• Generalinformation• ACSdeployment• MesosphereDC/OS– Marathon• Docker Swarm• Demo
• DC/OS– alittlemoreinfo…• Docker &Windowsintegration• Q&A
Docker clientforWindows(Beta)
Thankyou
Recommended