SlideShare une entreprise Scribd logo
1  sur  22
November 30, 2017#RancherMeetup
Managing Kubernetes Clusters
with Rancher 2.0
2
Darren Shepherd
Co-Founder/Chief Architect
@ibuildthecloud
Freenode: darren0
#RancherMeetup
Shannon Williams
Co-Founder/VP Sales
@smw355
3
First things first…
This is a not a !
#RancherMeetup
4
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
Join the conversation on Twitter
#RancherMeetup
5
6
Agenda
Rancher 2.0 update - Shannon
Introducing Rancher Kubernetes Engine – Darren
Demo 1: Rancher Kubernetes Engine – Darren
Rancher 2.0 Tech Preview 2 Update – Darren
Demo 2: Tech Preview 2 Demo (RBAC/Cluster Management) – Darren
Getting started and questions – Shannon
7
Managing Kubernetes Clusters with Rancher 2.0
8
Last month we introduced Rancher 2.0
Recording: https://youtu.be/cATqiXBZ8MY
9
Rancher 2.0
All the magic of Rancher on any Kubernetes cluster
Key enhancements:
• Kubernetes now orchestrates everything
• Unified Cluster Management
• Rancher Cattle now on Kubernetes
• Import and manage any Kubernetes
clusters
• RBAC, policy and project management
• Workload management (monitoring,
logging, CI/CD)
• Application catalog
Rancher 1.x
Built on Docker
Stand up Kubernetes clusters
Rancher 2.0
Built on Kubernetes
Accelerate Container Adoption
10
Rancher Kubernetes Engine
(RKE)
vSphere • Bare metal GKE AKS
Unified Cluster Management
Provisioning • Upgrades • RBAC • Policy • Security • Capacity • Cost
Workload Management
User Interface • App Catalog • CI/CD • Monitoring • Logging
COMPLETE
CONTAINER
MANAGEMENT
PLATFORM
EKS
11
Introducing Rancher Kubernetes Engine (RKE)
New Kubernetes installer that deploys Kubernetes using containers
Simple, very fast, works anywhere
Looked at existing Kubernetes Installers
•Kops – great for AWS
•Kubespray – runs anywhere, based on Ansible
Install/maintain/upgrade from a single cluster.yml file
Easy to extend with addons
12
rke cluster up --cluster-file cluster.yml
auth:
strategy: x509
network:
plugin: flannel
ssh_key_path: /home/user/.ssh/id_rsa
nodes:
- address: server1
user: ubuntu
role: [controlplane, etcd]
- address: server2
user: ubuntu
role: [worker]
services:
etcd:
image: quay.io/coreos/etcd:latest
kube-api:
image: rancher/k8s:v1.8.3-rancher2
service_cluster_ip_range: 10.233.0.0/18
extra_args:
v: 4
kube-controller:
image: rancher/k8s:v1.8.3-rancher2
cluster_cidr: 10.233.64.0/18
service_cluster_ip_range: 10.233.0.0/18
scheduler:
image: rancher/k8s:v1.8.3-rancher2
kubelet:
image: rancher/k8s:v1.8.3-rancher2
cluster_domain: cluster.local
cluster_dns_server: 10.233.0.3
infra_container_image:
gcr.io/google_containers/pause-amd64:3.0
kubeproxy:
image: rancher/k8s:v1.8.3-rancher2
13
Extending RKE with Addons
• RKE supports pluggable add-ons on cluster
bootstrap.
• Specify the add-on YAML in the cluster.yml file
• RKE deploys the add-ons YAML after the cluster
starts
• RKE uploads the YAML file as a config map in
the Kubernetes cluster then runs a Kubernetes
job that mounts this config map and deploys the
add-ons
• Use cases:
• Distributing apps with Kubernetes
• Extending Kubernetes configurations
14
Demo 1: RKE
network_plugin: flannel
hosts:
- address: 192.168.145.141
user: sheng
role: [controlplane, etcd, worker]
docker_socket: /var/run/docker.sock
- address: 192.168.145.142
user: sheng
role: [worker]
docker_socket: /var/run/docker.sock
15
Rancher 2.0 Release Timing
• Tech preview 1 (September)
• Cattle on Kubernetes
• Importing existing clusters
• New User Interface
• Tech preview 2 (December)
• Cluster deployment (Cloud and RKE)
• Cluster management
• Volume Support
• Authentication/RBAC
• Load Balancer (ingress and service)
• Secret management
• Workload management
• Beta (January)
• GA (March)
• Continue to support 1.6.x until end of 2018
16
Rancher
Controller
Netes-agent MySQL
Rancher
Agent
Kubelet
Docker
Daemon
Rancher
Agent
Kubelet
Docker
Daemon
GKE
K8s Master
Embedded
K8s Master
Rancher Server
Rancher Host
GKE Host
Rancher
UI
CLI
API
K8s API
Auth
Proxy
kubectl
TECH PREVIEW 1
17
Rancher
API Server
etcd
Cluster
Agent
Kubelet
Cluster
Agent
Kubelet
GKE
K8s Master
Rancher Server
RKE Node GKE Node
Rancher
UI
CLI
API
Auth
Proxy
kubectl
K8s API
RKE
K8s Master
Cluster
Controller
Provision & upgrade clusters
Capacity calculation
Manage workloads
Gather stats
Report health
Distribute policies
TECH PREVIEW 2
18
Demo 2: Tech Preview 2 – RBAC/Cluster
Management
19
Get started in two easy steps
Step 1: Prepare a Linux Host
Rancher requires a single host installed with either Ubuntu 16.04 (kernel v3.10+) or
RHEL/CentOS 7.3 as well as at least 2GB of memory, 20GB of local disk and a
supported version of Docker.
Step 2: Start the server
To install and run Rancher server, execute the following Docker command on your host:
20
Rancher 2.0 Quick Start Guide
http://rancher.com/docs/rancher/v2.0/en/quick-start-guide/
21
Rancher, RancherOS, RKE are in GitHub
Get involved!
http://github.com/rancher
22
Thank you
@Rancher_Labs · #RancherMeetup

Contenu connexe

Plus de Shannon Williams

The ultimate container monitoring bake-off - Rancher Online Meetup October 2016
The ultimate container monitoring bake-off - Rancher Online Meetup October 2016The ultimate container monitoring bake-off - Rancher Online Meetup October 2016
The ultimate container monitoring bake-off - Rancher Online Meetup October 2016Shannon Williams
 
Next Gen Storage and Networking in Container Environments - September 2016 Ra...
Next Gen Storage and Networking in Container Environments - September 2016 Ra...Next Gen Storage and Networking in Container Environments - September 2016 Ra...
Next Gen Storage and Networking in Container Environments - September 2016 Ra...Shannon Williams
 
Dear IT...I'd Like A Kubernetes Cluster
Dear IT...I'd Like A Kubernetes ClusterDear IT...I'd Like A Kubernetes Cluster
Dear IT...I'd Like A Kubernetes ClusterShannon Williams
 
Introducing Apache Mesos environments in Rancher - June 2016 Online Meetup
Introducing Apache Mesos environments in Rancher - June 2016 Online MeetupIntroducing Apache Mesos environments in Rancher - June 2016 Online Meetup
Introducing Apache Mesos environments in Rancher - June 2016 Online MeetupShannon Williams
 
Running Rancher and Docker on Dev Machines - Rancher Online Meetup - May 2016
Running Rancher and Docker on Dev Machines - Rancher Online Meetup - May 2016Running Rancher and Docker on Dev Machines - Rancher Online Meetup - May 2016
Running Rancher and Docker on Dev Machines - Rancher Online Meetup - May 2016Shannon Williams
 
From Hello World to Real World - Container Days Boston 2016
From Hello World to Real World - Container Days Boston 2016From Hello World to Real World - Container Days Boston 2016
From Hello World to Real World - Container Days Boston 2016Shannon Williams
 
Tips, Tricks and Tools for Running Containers Like a Pro - Rancher Labs April...
Tips, Tricks and Tools for Running Containers Like a Pro - Rancher Labs April...Tips, Tricks and Tools for Running Containers Like a Pro - Rancher Labs April...
Tips, Tricks and Tools for Running Containers Like a Pro - Rancher Labs April...Shannon Williams
 
Rancher March 2016 Online Meetup Containers-as-a-Service with Rancher 1.0
Rancher March 2016 Online Meetup Containers-as-a-Service with Rancher 1.0Rancher March 2016 Online Meetup Containers-as-a-Service with Rancher 1.0
Rancher March 2016 Online Meetup Containers-as-a-Service with Rancher 1.0Shannon Williams
 
Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup
Introducing Kubernetes Clusters in Rancher - February 2016 Online MeetupIntroducing Kubernetes Clusters in Rancher - February 2016 Online Meetup
Introducing Kubernetes Clusters in Rancher - February 2016 Online MeetupShannon Williams
 
Building a Scalable CI Platform using Docker, Drone and Rancher
Building a Scalable CI  Platform using Docker, Drone and RancherBuilding a Scalable CI  Platform using Docker, Drone and Rancher
Building a Scalable CI Platform using Docker, Drone and RancherShannon Williams
 

Plus de Shannon Williams (10)

The ultimate container monitoring bake-off - Rancher Online Meetup October 2016
The ultimate container monitoring bake-off - Rancher Online Meetup October 2016The ultimate container monitoring bake-off - Rancher Online Meetup October 2016
The ultimate container monitoring bake-off - Rancher Online Meetup October 2016
 
Next Gen Storage and Networking in Container Environments - September 2016 Ra...
Next Gen Storage and Networking in Container Environments - September 2016 Ra...Next Gen Storage and Networking in Container Environments - September 2016 Ra...
Next Gen Storage and Networking in Container Environments - September 2016 Ra...
 
Dear IT...I'd Like A Kubernetes Cluster
Dear IT...I'd Like A Kubernetes ClusterDear IT...I'd Like A Kubernetes Cluster
Dear IT...I'd Like A Kubernetes Cluster
 
Introducing Apache Mesos environments in Rancher - June 2016 Online Meetup
Introducing Apache Mesos environments in Rancher - June 2016 Online MeetupIntroducing Apache Mesos environments in Rancher - June 2016 Online Meetup
Introducing Apache Mesos environments in Rancher - June 2016 Online Meetup
 
Running Rancher and Docker on Dev Machines - Rancher Online Meetup - May 2016
Running Rancher and Docker on Dev Machines - Rancher Online Meetup - May 2016Running Rancher and Docker on Dev Machines - Rancher Online Meetup - May 2016
Running Rancher and Docker on Dev Machines - Rancher Online Meetup - May 2016
 
From Hello World to Real World - Container Days Boston 2016
From Hello World to Real World - Container Days Boston 2016From Hello World to Real World - Container Days Boston 2016
From Hello World to Real World - Container Days Boston 2016
 
Tips, Tricks and Tools for Running Containers Like a Pro - Rancher Labs April...
Tips, Tricks and Tools for Running Containers Like a Pro - Rancher Labs April...Tips, Tricks and Tools for Running Containers Like a Pro - Rancher Labs April...
Tips, Tricks and Tools for Running Containers Like a Pro - Rancher Labs April...
 
Rancher March 2016 Online Meetup Containers-as-a-Service with Rancher 1.0
Rancher March 2016 Online Meetup Containers-as-a-Service with Rancher 1.0Rancher March 2016 Online Meetup Containers-as-a-Service with Rancher 1.0
Rancher March 2016 Online Meetup Containers-as-a-Service with Rancher 1.0
 
Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup
Introducing Kubernetes Clusters in Rancher - February 2016 Online MeetupIntroducing Kubernetes Clusters in Rancher - February 2016 Online Meetup
Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup
 
Building a Scalable CI Platform using Docker, Drone and Rancher
Building a Scalable CI  Platform using Docker, Drone and RancherBuilding a Scalable CI  Platform using Docker, Drone and Rancher
Building a Scalable CI Platform using Docker, Drone and Rancher
 

Dernier

What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 

Dernier (20)

What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 

Managing Kubernetes Clusters with Rancher 2.0 - November 2017 Rancher Online Meetup

  • 1. November 30, 2017#RancherMeetup Managing Kubernetes Clusters with Rancher 2.0
  • 2. 2 Darren Shepherd Co-Founder/Chief Architect @ibuildthecloud Freenode: darren0 #RancherMeetup Shannon Williams Co-Founder/VP Sales @smw355
  • 3. 3 First things first… This is a not a ! #RancherMeetup
  • 4. 4 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 Join the conversation on Twitter #RancherMeetup 5
  • 6. 6 Agenda Rancher 2.0 update - Shannon Introducing Rancher Kubernetes Engine – Darren Demo 1: Rancher Kubernetes Engine – Darren Rancher 2.0 Tech Preview 2 Update – Darren Demo 2: Tech Preview 2 Demo (RBAC/Cluster Management) – Darren Getting started and questions – Shannon
  • 8. 8 Last month we introduced Rancher 2.0 Recording: https://youtu.be/cATqiXBZ8MY
  • 9. 9 Rancher 2.0 All the magic of Rancher on any Kubernetes cluster Key enhancements: • Kubernetes now orchestrates everything • Unified Cluster Management • Rancher Cattle now on Kubernetes • Import and manage any Kubernetes clusters • RBAC, policy and project management • Workload management (monitoring, logging, CI/CD) • Application catalog Rancher 1.x Built on Docker Stand up Kubernetes clusters Rancher 2.0 Built on Kubernetes Accelerate Container Adoption
  • 10. 10 Rancher Kubernetes Engine (RKE) vSphere • Bare metal GKE AKS Unified Cluster Management Provisioning • Upgrades • RBAC • Policy • Security • Capacity • Cost Workload Management User Interface • App Catalog • CI/CD • Monitoring • Logging COMPLETE CONTAINER MANAGEMENT PLATFORM EKS
  • 11. 11 Introducing Rancher Kubernetes Engine (RKE) New Kubernetes installer that deploys Kubernetes using containers Simple, very fast, works anywhere Looked at existing Kubernetes Installers •Kops – great for AWS •Kubespray – runs anywhere, based on Ansible Install/maintain/upgrade from a single cluster.yml file Easy to extend with addons
  • 12. 12 rke cluster up --cluster-file cluster.yml auth: strategy: x509 network: plugin: flannel ssh_key_path: /home/user/.ssh/id_rsa nodes: - address: server1 user: ubuntu role: [controlplane, etcd] - address: server2 user: ubuntu role: [worker] services: etcd: image: quay.io/coreos/etcd:latest kube-api: image: rancher/k8s:v1.8.3-rancher2 service_cluster_ip_range: 10.233.0.0/18 extra_args: v: 4 kube-controller: image: rancher/k8s:v1.8.3-rancher2 cluster_cidr: 10.233.64.0/18 service_cluster_ip_range: 10.233.0.0/18 scheduler: image: rancher/k8s:v1.8.3-rancher2 kubelet: image: rancher/k8s:v1.8.3-rancher2 cluster_domain: cluster.local cluster_dns_server: 10.233.0.3 infra_container_image: gcr.io/google_containers/pause-amd64:3.0 kubeproxy: image: rancher/k8s:v1.8.3-rancher2
  • 13. 13 Extending RKE with Addons • RKE supports pluggable add-ons on cluster bootstrap. • Specify the add-on YAML in the cluster.yml file • RKE deploys the add-ons YAML after the cluster starts • RKE uploads the YAML file as a config map in the Kubernetes cluster then runs a Kubernetes job that mounts this config map and deploys the add-ons • Use cases: • Distributing apps with Kubernetes • Extending Kubernetes configurations
  • 14. 14 Demo 1: RKE network_plugin: flannel hosts: - address: 192.168.145.141 user: sheng role: [controlplane, etcd, worker] docker_socket: /var/run/docker.sock - address: 192.168.145.142 user: sheng role: [worker] docker_socket: /var/run/docker.sock
  • 15. 15 Rancher 2.0 Release Timing • Tech preview 1 (September) • Cattle on Kubernetes • Importing existing clusters • New User Interface • Tech preview 2 (December) • Cluster deployment (Cloud and RKE) • Cluster management • Volume Support • Authentication/RBAC • Load Balancer (ingress and service) • Secret management • Workload management • Beta (January) • GA (March) • Continue to support 1.6.x until end of 2018
  • 16. 16 Rancher Controller Netes-agent MySQL Rancher Agent Kubelet Docker Daemon Rancher Agent Kubelet Docker Daemon GKE K8s Master Embedded K8s Master Rancher Server Rancher Host GKE Host Rancher UI CLI API K8s API Auth Proxy kubectl TECH PREVIEW 1
  • 17. 17 Rancher API Server etcd Cluster Agent Kubelet Cluster Agent Kubelet GKE K8s Master Rancher Server RKE Node GKE Node Rancher UI CLI API Auth Proxy kubectl K8s API RKE K8s Master Cluster Controller Provision & upgrade clusters Capacity calculation Manage workloads Gather stats Report health Distribute policies TECH PREVIEW 2
  • 18. 18 Demo 2: Tech Preview 2 – RBAC/Cluster Management
  • 19. 19 Get started in two easy steps Step 1: Prepare a Linux Host Rancher requires a single host installed with either Ubuntu 16.04 (kernel v3.10+) or RHEL/CentOS 7.3 as well as at least 2GB of memory, 20GB of local disk and a supported version of Docker. Step 2: Start the server To install and run Rancher server, execute the following Docker command on your host:
  • 20. 20 Rancher 2.0 Quick Start Guide http://rancher.com/docs/rancher/v2.0/en/quick-start-guide/
  • 21. 21 Rancher, RancherOS, RKE are in GitHub Get involved! http://github.com/rancher