Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup

4,452 views

Published on

A hands-on guide to deploying applications in Rancher's new Kubernetes environments

Over the last few months our team at Rancher Labs has been adding support for Kubernetes natively within Rancher. Our implementation of Kubernetes takes advantage of Rancher’s platform orchestration, simple UI, access control, networking and storage capabilities to deliver simple to deploy Kubernetes clusters for managing applications. In our February meetup we introduced this new support, and discussed how these Kubernetes environments compare with our native Docker environments and help you understand when and how each can be used to power your containers.

Our new support for Kubernetes will be available in Rancher in our next major release in March.

In this recording we demonstrated:
- Deploying a Kubernetes Cluster within Rancher
- Launching Kubernetes Pods and Replication Controllers
- Leveraging Rancher services within Kubernetes
- Understanding the differences between Kubernetes and native Docker environments
- Service discovery, scheduling and high availability within Kubernetes

Published in: Software

Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup

  1. 1. © 2015 Rancher Labs, Inc.© 2015 Rancher Labs, Inc . Introducing Kubernetes Environments in Rancher February 25, 2016 #ranchermeetup
  2. 2. © 2015 Rancher Labs, Inc. Shannon Williams Co-Founder/VP Marketing @smw355 1 Darren Shepherd Co-Founder/Chief Architect @ibuildthecloud Freenode: darren0 #ranchermeetup
  3. 3. © 2015 Rancher Labs, Inc. First things first… This is a not a ! 2 #ranchermeetup
  4. 4. © 2015 Rancher Labs, Inc.3 There are rules for a meetup! • We won’t be done on time • Questions are always welcome • There are no bad questions • Demo, then demo some more • Things will break, be patient #ranchermeetup
  5. 5. © 2015 Rancher Labs, Inc.4 Join the conversation on Twitter #ranchermeetup
  6. 6. © 2015 Rancher Labs, Inc. Agenda • Introducing Kubernetes Environments in Rancher – Shannon • Demo: Launching a Kubernetes Environment – Darren • Demo: Deploying an Application on Kubernetes – Darren • Latest Rancher Updates – Darren 5 #ranchermeetup
  7. 7. © 2015 Rancher Labs, Inc. Rancher Labs 6 #ranchermeetup
  8. 8. © 2015 Rancher Labs, Inc. Rancher Overview 7 Rancher Catalog AD/LDAP Alerts/Events Environment 1 Environment N … Network Services Storage Services Container Orchestration and Scheduling User Mgmt Ops Mgmt #ranchermeetup
  9. 9. © 2015 Rancher Labs, Inc. Introducing Kubernetes Environments in Rancher #ranchermeetup
  10. 10. © 2015 Rancher Labs, Inc. Kubernetes Kubernetes is open source software for managing a cluster of servers and deploying applications. • Started by Google, but widely contributed to at this point • Latest version is 1.2 • Powerful app management concepts • First project contributed to the Cloud Native Computing Foundation (CNCF) • Kubernetes.io 9
  11. 11. © 2015 Rancher Labs, Inc. Native Kubernetes support in Rancher 10 • Automated deployment of an unlimited number of Kubernetes clusters • Control user access to Kubernetes clusters • Simple to use UI for Kubernetes • Supports cross zone, cloud or datacenter deployments • Node provisioning through Docker Machine • Access Rancher services including: - Multi-host Networking - Load Balancer - Application Catalog - Persistent Storage Services - Metadata Service
  12. 12. © 2015 Rancher Labs, Inc. Inside a Rancher Kubernetes Environment 11 Environment A apiserver etcd scheduler controller kubelet proxy dns service metadata service network agent system services
  13. 13. © 2015 Rancher Labs, Inc.12 • Pods are the smallest unit in Kubernetes • Each pod is a group of tightly coupled containers and volumes • Unique ID, allocated to a specific host. • Rancher allocates a private IP on the rancher network to each pod Kubernetes Pods
  14. 14. © 2015 Rancher Labs, Inc.13 • Replication Controllers define the number of copies of a pod that are launched. • RCs are managed by the Kubernetes controller, which works with the scheduler to achieve the desired state. Kubernetes Replication Controllers
  15. 15. © 2015 Rancher Labs, Inc. Inside a Rancher Kubernetes Environment 14 system services Environment A replication controller container pods pods containerapp2 container pods pods pods container container replication controllerapp1
  16. 16. © 2015 Rancher Labs, Inc.15 • Services in Kubernetes typically define a cluster IP for a group of pods • Cluster IPs are on a separate subnet from the pod IPs. Kubernetes Services
  17. 17. © 2015 Rancher Labs, Inc. Inside a Rancher Kubernetes Environment 16 system services Environment A replication controller container pods pods containerapp2 container pods pods pods container container replication controllerapp1 Pod IP 10.42.x.x Pod IP 10.42.x.x Pod IP 10.42.x.x Pod IP 10.42.x.x Pod IP 10.42.x.x Service IP 10.43.x.x service service Service IP 10.43.x.x
  18. 18. © 2015 Rancher Labs, Inc.17 • Simple web access to Kubectl for running any Kubernetes commands. • Leverage Rancher users and authentication to control access to Kubectl. Full access to Kubectl
  19. 19. © 2015 Rancher Labs, Inc.18 Demo #ranchermeetup
  20. 20. © 2015 Rancher Labs, Inc. Latest Rancher Enhancements 19 0.56 • Improved Rancher Managed Network • UI Enhancements • Health Check Action Strategies • Rancher Metadata Service Update 0.59 • Support Retaining Container IP on container upgrade or destroy • Added support for Docker 1.10 • Split Rancher Catalog into Library & Community #ranchermeetup
  21. 21. © 2015 Rancher Labs, Inc.20 #ranchermeetup http://info.rancher.com/beta
  22. 22. © 2015 Rancher Labs, Inc. Getting Started Rancher and RancherOS are in GitHub – Get Involved, Join the Beta 21 #ranchermeetup http://github.com/rancher
  23. 23. © 2015 Rancher Labs, Inc. New eBook: Building a CI/CD Pipeline with Docker & Rancher 22 http://info.rancher.com/cicd-with-docker-ebook
  24. 24. © 2015 Rancher Labs, Inc.© 2015 Rancher Labs, Inc . Thank you rancher.com #ranchermeetup

×