Rancher k8s Training - Oct 4 - Rajashree Mandaogane.pptx
satzzqwerty
56 views
40 slides
Jul 09, 2024
Slide 1 of 40
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
About This Presentation
Rancher k8s Training
Size: 5.46 MB
Language: en
Added: Jul 09, 2024
Slides: 40 pages
Slide Content
Getting Started with Kubernetes and Rancher 2.0 Rancher Labs Training #rancherk8s
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! 1
2 Matthew Scheer Community Advocate @ matthew_scheer Slack: @ matthew Rajashree Mandaogane Software Engineer Twitter: @rajashree_28 Slack: rajashree Github : mrajashree
For the purpose of this training, we’re assuming you understand basic Docker concepts … . #rancherk8s 3
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 Infrastructure Services Storage, networking, load balancing, security, etc. Rancher Kubernetes Distribution Certified and supported distribution that closely follows the upstream Kubernetes project 7
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 8
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 17 #rancherk8s
Pods 18
19
Replication Controller and Replica Set Defines the desired scale and state of a group of pods SOT for driving the current state to the desired state (in controller manager) 20
Replica Set 21
Replica Set 22
Replica Set 23
Deployments Level of abstraction above ReplicaSets Deployments create and update ReplicaSets Allow you to easily scale and perform rolling upgrades 24 #rancherk8s
Deployments 25
Deployments 26
Deployments 27
Deployments 28
Deployments 29
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 30 #rancherk8s
Services 31 Service IP 123.456.789
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 32 #rancherk8s
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 …) 34 #rancherk8s
https://my-nginx-app.cluster.com https://cluster.com/my-nginx-app Ingresses 35 Service IP Ingress Controller