Running Rancher and Docker on Dev Machines - Rancher Online Meetup - May 2016
Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker...
Transcript of Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker...
![Page 1: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/1.jpg)
Rancher Introduction
Christian Frank
February 18th
teuto.net - Bielefeld (Smartsquare GmbH)
Cover artwork © Pascal CampionAll Lighthouse slides © Rancher Labs, Inc.Used with permission
![Page 2: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/2.jpg)
Experience
![Page 3: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/3.jpg)
Experience
![Page 4: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/4.jpg)
Service Model
Gavin McCance, CERN
• Pets are given names like pussinboots.cern.ch • They are unique, lovingly hand raised and cared for• When they get ill, you nurse them back to health
• Cattle are given numbers like vm0042.cern.ch• They are almost identical to other cattle• When they get ill, you get another one
Future application architectures should use Cattle but Pets with strong configuration management are viable and still needed
![Page 5: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/5.jpg)
Rancher Concepts
All Lighthouse slides © Rancher Labs, Inc. unless otherwise notedUsed with permission
![Page 6: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/6.jpg)
Enterprise Container Management Platform
Rancher Kubernetes Engine (RKE)
vSphere • Bare metal GKE AKS
Unified Cluster ManagementProvisioning • Authentication • RBAC • Policy • Security • Capacity • Cost
Workload ManagementUser Interface • App Catalog • CI/CD • Monitoring • Logging
COMPLETE CONTAINER
MANAGEMENT PLATFORM
EKS Import
![Page 7: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/7.jpg)
Multi-Cluster Kubernetes Management
1. Manage Kubernetes everywhere1. Cloud Hosted (GKE, EKS, AKS)2. Datacenter (BareMetal, OpenStack,
VMware)
2. Importing existing clusters3. Supports infrastructure as code4. Upgrade, Backup and Restore
clusters
![Page 8: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/8.jpg)
Centralize Operations and Policy Management
Centrally define and apply policies to any Kubernetes cluster
1. Pod security policies2. Network security policies3. RBAC policies
![Page 9: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/9.jpg)
Simplify container administration
1. Powerful User Interface2. CLI/API access for GitOps3. Centralize access to shared
and private Helm catalogs4. Integrated monitoring and
alerting5. Automated logging
![Page 10: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/10.jpg)
Building an Enterprise Container Service
Container Management Platform
User | Policy | Operations | Provisioning | Monitoring | Catalog
Directory Services Infrastructure Service Desk Monitoring Provisioning
IT Organization
DevOps Automation
Pipeline | Code Repository | Registry | CI/CD | Collaboration
Development DevOps Monitoring Project Management Collaboration
Application Teams
Container Security
Image Scanning | Runtime Protection | Container Firewall
Vulnerability Mgmt Policy Enforcement Access Control Secrets Management Audit and Compliance
IT Security
![Page 11: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/11.jpg)
• Founded in 2014
• 130 Employees, 250+ Customers
• We build software that makes it easy for organizations to adopt containers.
• Rancher has been adopted by more than 20,000 teams running Docker and Kubernetes around the world
![Page 12: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/12.jpg)
User Interface
![Page 13: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/13.jpg)
Demo
![Page 14: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/14.jpg)
Rancher CLI
https://rancher.com/docs/rancher/v2.x/en/cli/
![Page 15: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/15.jpg)
Rancher Catalog
![Page 16: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/16.jpg)
© 2017 Rancher Labs, Inc.
Catalog Overview
• The Catalog is a collection of application templates that make it easy to deploy complex stacks
• Includes Helm Charts as of Rancher 2.0• Decouples stack deployment from Docker knowledge• Enables non-technical users to deploy stacks• Allows site admins to maintain control over Docker image
versions in deployment• Global and cluster-level catalog repositories• Enable applications per-cluster or per-client
![Page 17: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/17.jpg)
© 2017 Rancher Labs, Inc.
Multi-Cluster Applications
• Reliable, repeatable deployments
• Reduce operational workload
• Reduce cross-AZ spend on data transfer
• Improve application availability
• Atomic installations and upgrades
![Page 18: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/18.jpg)
© 2017 Rancher Labs, Inc.
Global DNS Integration
• Connect applications and their DNS records
• Works with multi-cluster apps
• Automatically updates on cluster change
• Does away with manual DNS updates when apps change
![Page 19: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/19.jpg)
© 2017 Rancher Labs, Inc.
Catalog - Library
• Rancher Server infrastructure stacks
• Provided by Rancher and vendors
![Page 20: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/20.jpg)
© 2017 Rancher Labs, Inc.
Catalog - Community
• User stacks
• Provided by Rancher, vendors, and community members
• Basic vetting by Rancher staff
• No support unless Rancher certified
![Page 21: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/21.jpg)
© 2017 Rancher Labs, Inc.
Catalog Structure
• Git repository
• Consists of Helm Charts
• Refreshed every few minutes
• Follows a specific structure
• Allows you to create your own private catalogs
• See https://github.com/rancher/charts for details and structure
• See https://rancher.com/docs/rancher/v2.x/en/catalog/for documentation
![Page 22: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/22.jpg)
Demo
![Page 23: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/23.jpg)
Cluster Creation
![Page 24: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/24.jpg)
Demo
![Page 25: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/25.jpg)
Cluster Update (1/2)
![Page 26: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/26.jpg)
Cluster Update (2/2)
![Page 27: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/27.jpg)
Infrastructure as Code
Integrate infrastructure creation into your CI/CD pipelines.
Advantages:
• Automation!• Get fresh infrastructure with every deployment• Treat your infrastructure as cattle, not as pets• When using IaaS, there’s no more need for patching
Tiago Costa – Azure Saturday Cologne, December 2019 - https://www.tiagocosta.com/
![Page 28: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/28.jpg)
Cluster Creation (Terraform)
https://www.terraform.io/docs/providers/rancher2/r/cluster.html
![Page 29: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/29.jpg)
Cluster Creation (main.tf)
![Page 30: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/30.jpg)
Rancher Resources
![Page 31: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/31.jpg)
© 2017 Rancher Labs, Inc.
Resources – Documentationshttps://rancher.com/docs/rancher/v2.x/en/quick-start-guide/
![Page 32: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/32.jpg)
© 2017 Rancher Labs, Inc.
Resources – GitHubhttp://github.com/rancher
![Page 33: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/33.jpg)
© 2017 Rancher Labs, Inc.
Resources – Rancher Slack and Forumshttp://forums.rancher.comhttps://slack.rancher.io/
![Page 34: Rancher Introduction › bucket.chfrank.net... · • Decouples stack deployment from Docker knowledge • Enables non-technical users to deploy stacks • Allows site admins to maintain](https://reader034.fdocuments.in/reader034/viewer/2022042410/5f27bc0651d03418e20bca28/html5/thumbnails/34.jpg)
Thank [email protected]