Download presentation
Presentation is loading. Please wait.
1
Getting Started with Kubernetes and Rancher 2.0
Rancher Labs Training #rancherk8s
2
Today’s objectives Technical introduction to Kubernetes using Rancher
Keep the slides to a minimum Demo, then demo some more Questions are always welcome We won’t leave until all your questions are answered!
3
Field Engineer, Germany
Matthew Scheer Community Advocate @matthew_scheer Jan Bruder Field Engineer, Germany @janbrdr
4
For the purpose of this training, we’re assuming you understand basic Docker concepts….
#rancherk8s
5
https://rancher.com/docs/rancher/v2.x/en/quick-start-guide/
Resources - docs #rancherk8s
6
Resources - forums http://slack.rancher.io http://forums.rancher.com
#rancherk8s
13
Rancher & Kubernetes - better together
Open source container manager used to run Kubernetes in production Easy-to-use interface for k8s configuration and deployment Infrastructure management across multiple clusters and clouds Automated deployment of the latest k8s release Workload, RBAC, policy, and project management 24x7 enterprise-grade support Rancher Kubernetes Distribution Certified and supported distribution that closely follows the upstream Kubernetes project Rancher Infrastructure Services Storage, networking, load balancing, security, etc.
16
Kubernetes 101 Pods Deployments Services Config maps Ingresses
#rancherk8s
17
Pods Smallest unit that can be deployed in Kubernetes
Consist of one or more containers that are always scheduled together Each pod is given a unique IP address Containers in a pod can speak to each other via localhost #rancherk8s
18
Pods are confusing If the explanation is confusing, don’t worry too much Pods typically contain only a single container Try to think of pods as containers for the remainder of the training #rancherk8s
19
Pods
21
Replication Controller and Replica Set
Defines the desired scale and state of a group of pods
22
Replica Set
23
Replica Set
24
Replica Set
25
Deployments Level of abstraction above ReplicaSets
Deployments create and update ReplicaSets Allow you to easily scale and perform rolling upgrades #rancherk8s
26
Deployments
27
Deployments
28
Deployments
29
Deployments
30
Deployments
31
Services Define a DNS entry that can be used to refer to a group of pods Provide a consistent endpoint for the group of pods Different types: nodePort, clusterIP, loadbalancer #rancherk8s
32
Services Service IP
33
Config maps Allow storing of arbitrary configuration values and files
Exposed in pods as either environment variables or as local storage Decoupled storage of configuration from pod spec #rancherk8s
34
Config Maps apiVersion: v1 kind: ConfigMap metadata: name: dev-config
namespace: default data: Item1: dev-stuff Item2: more dev stuff apiVersion: v1 kind: ConfigMap metadata: name: dev-config namespace: default data: Item1: qa-stuff Item2: more qa stuff apiVersion: v1 kind: ConfigMap metadata: name: dev-config namespace: default data: Item1: prod-stuff Item2: more prod stuff
35
Ingresses Define how traffic outside the cluster is routed to inside the cluster Used to expose Kubernetes services to the world Route traffic to internal services based on factors such as host and path Ingress is usually implemented by a load balancer (Nginx, HAProxy, AWS ELB, etc…) #rancherk8s
36
https://my-nginx-app.cluster.com https://cluster.com/my-nginx-app
Ingresses Ingress Controller Service IP
37
Rancher 2.0 101 Setting up Rancher Clusters Authentication & Security
Storage Projects Namespaces Catalogs CLI/API/Kubectl
38
Demo Time
39
Join other Rancher users in Slack
#Kubernetes channel
40
rancher.com/kubernetes #rancherk8s
Thank you rancher.com/kubernetes #rancherk8s
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.