Rancher k8s Training - Oct 4 - Rajashree Mandaogane.pptx

satzzqwerty 56 views 40 slides Jul 09, 2024
Slide 1
Slide 1 of 40
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40

About This Presentation

Rancher k8s Training


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

Resources - docs 4 https:// rancher.com /docs/rancher/v2.x/en/quick-start-guide/ #rancherk8s

Resources - forums 5 http://forums.rancher.com #rancherk8s http ://slack.rancher.io

6

7

8

9

10

11

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

13

14

Kubernetes 101 Pods Deployments Services Config maps Ingresses 15 #rancherk8s

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

apiVersion : v1  kind: ConfigMap   metadata:    name: dev-config    namespace: default  data:    Item1: dev-stuff    Item2: more dev stuff Config Maps 33 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

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

Rancher 2.0 101 Setting up Rancher Clusters Authentication & Security Storage Projects Namespaces Catalogs CLI/API/ Kubectl

37 Demo Time

Join other Rancher users in Slack https://slack.rancher.io #Kubernetes channel 15

Thank you rancher.com/kubernetes #rancherk8s
Tags