rancher introduction › bucket.chfrank.net... · • decouples stack deployment from docker...

34
Rancher Introduction Christian Frank February 18 th teuto.net - Bielefeld (Smartsquare GmbH) Cover artwork © Pascal Campion All Lighthouse slides © Rancher Labs, Inc. Used with permission

Upload: others

Post on 07-Jul-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

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

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

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

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

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

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

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

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

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

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

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

• 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

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

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

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

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

© 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

© 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

© 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

© 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

© 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

© 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

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

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

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

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

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

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

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

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

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

© 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

© 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

© 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

Thank [email protected]