Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup
-
Upload
shannon-williams -
Category
Software
-
view
4.444 -
download
0
Transcript of Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup
![Page 1: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/1.jpg)
© 2015 Rancher Labs, Inc.© 2015 Rancher Labs, Inc .
Introducing Kubernetes Environments in Rancher
February 25, 2016
#ranchermeetup
![Page 2: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/2.jpg)
© 2015 Rancher Labs, Inc.2
Shannon WilliamsCo-Founder/VP Marketing @smw355
Darren ShepherdCo-Founder/Chief Architect @ibuildthecloudFreenode: darren0
#ranchermeetup
![Page 3: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/3.jpg)
© 2015 Rancher Labs, Inc.3
First things first…
This is a not a !
#ranchermeetup
![Page 4: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/4.jpg)
© 2015 Rancher Labs, Inc.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
![Page 5: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/5.jpg)
© 2015 Rancher Labs, Inc.5
Join the conversation on Twitter #ranchermeetup
![Page 6: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/6.jpg)
© 2015 Rancher Labs, Inc.6
Agenda• Introducing Kubernetes Environments in Rancher – Shannon• Demo: Launching a Kubernetes Environment – Darren• Demo: Deploying an Application on Kubernetes – Darren• Latest Rancher Updates – Darren
#ranchermeetup
![Page 7: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/7.jpg)
© 2015 Rancher Labs, Inc.7
Rancher Labs
#ranchermeetup
![Page 8: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/8.jpg)
© 2015 Rancher Labs, Inc.8
Rancher OverviewRancher Catalog
AD/LDAP
Alerts/Events
Environment 1 Environment N…Network Services Storage Services
Container Orchestration and SchedulingUser Mgmt Ops Mgmt
#ranchermeetup
![Page 9: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/9.jpg)
© 2015 Rancher Labs, Inc.
Introducing Kubernetes Environments in Rancher
#ranchermeetup
![Page 10: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/10.jpg)
© 2015 Rancher Labs, Inc.10
KubernetesKubernetes 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
![Page 11: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/11.jpg)
© 2015 Rancher Labs, Inc.11
Native Kubernetes support in Rancher
• 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
![Page 12: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/12.jpg)
© 2015 Rancher Labs, Inc.12
Inside a Rancher Kubernetes Environment
Environment A
apiserver
etcd
scheduler
controller
kubelet
proxy
dns service
metadata service
network agent
system services
![Page 13: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/13.jpg)
© 2015 Rancher Labs, Inc.13
• 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
![Page 14: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/14.jpg)
© 2015 Rancher Labs, Inc.14
• 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
![Page 15: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/15.jpg)
© 2015 Rancher Labs, Inc.15
Inside a Rancher Kubernetes Environment
system services
Environment A
replication controller containerpods pods
containerapp2
containerpods pods pods
container containerreplication controllerapp1
![Page 16: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/16.jpg)
© 2015 Rancher Labs, Inc.16
• 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
![Page 17: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/17.jpg)
© 2015 Rancher Labs, Inc.17
Inside a Rancher Kubernetes Environment
system services
Environment A
replication controller containerpods pods
containerapp2
containerpods pods pods
container containerreplication controllerapp1
Pod IP10.42.x.x
Pod IP10.42.x.x
Pod IP10.42.x.x
Pod IP10.42.x.x
Pod IP10.42.x.x
Service IP10.43.x.x
service
service
Service IP10.43.x.x
![Page 18: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/18.jpg)
© 2015 Rancher Labs, Inc.18
• Simple web access to Kubectl for running any Kubernetes commands.
• Leverage Rancher users and authentication to control access to Kubectl.
Full access to Kubectl
![Page 19: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/19.jpg)
© 2015 Rancher Labs, Inc.19
Demo
#ranchermeetup
![Page 20: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/20.jpg)
© 2015 Rancher Labs, Inc.
Latest Rancher Enhancements
20
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
![Page 21: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/21.jpg)
© 2015 Rancher Labs, Inc.21 #ranchermeetup
http://info.rancher.com/beta
![Page 22: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/22.jpg)
© 2015 Rancher Labs, Inc.22
Getting StartedRancher and RancherOS are in GitHub – Get Involved, Join the Beta
#ranchermeetup
http://github.com/rancher
![Page 23: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/23.jpg)
© 2015 Rancher Labs, Inc.23
New eBook: Building a CI/CD Pipeline with Docker & Rancher
http://info.rancher.com/cicd-with-docker-ebook
![Page 24: Introducing Kubernetes Clusters in Rancher - February 2016 Online Meetup](https://reader035.fdocuments.us/reader035/viewer/2022062316/5876fd4b1a28abf3398b69c1/html5/thumbnails/24.jpg)
© 2015 Rancher Labs, Inc.© 2015 Rancher Labs, Inc .
Thank yourancher.com
#ranchermeetup