Learn Kubernetes in 1 Hour - K8s新手速通 - 进阶笔记敬请期待

2023-12-14 05:50:14

Learn Kubernetes in 1 Hour

Welcome to learn k8s with me!!! [Kubernetes Crash Course for Absolute Beginners NEW] - YouTube

1. Kubernetes Architecture

image-20231209095632045

  • control node - several important processes

    image-20231209095602769

  • worker nodes

master nodes are much more important than worker nodes

image-20231209095746464

2. Main Kubernetes Components

image-20231209095806577

image-20231210214631420

image-20231210214659459

image-20231210214713465

image-20231210214725234

2.1 Node & Pod

Node: a virtual or physical machine

image-20231209101129723

IP adjust every time the pod restart,so -> service

2.2 Service &Ingress

image-20231209101335836

image-20231209101642797

Ingress: cause the node-ip is not very practical.

image-20231209101739518

2.3 ConfigMap & Secret

change name: mogo-db-service -> mogo-db

image-20231209103152159

image-20231209104749709

! ConfigMap is for non-confidential data only! ->Secret

image-20231209105013422

2.4 Volume

image-20231210212555824

image-20231210212732924

2.5 Deployment & StatefulSet

my-app died -> replicates everything!

image-20231210212941381

Define blueprint for Pods: specify how many replicas you want to have

work with deployments instead of pods.

image-20231210213512410

! DB can’t be replicated via Deployment!

DB has state -> data inconsistence - > StatefulSet
image-20231210214006357

image-20231210214041123

however, deploying StatefulSet not easy -> common practice: DB hosted outside of k8s cluster.

image-20231210214534765

3. Kubernetes Configuration

talk to API server

image-20231210215309214

C-M

image-20231210215448223

each configuration file has 3 parts

image-20231210220119513

image-20231210220153661

image-20231210220240789

image-20231210220333405

image-20231210220601455

image-20231210220702462

image-20231210220809774

4. Minikube & Kubeetcl - Setup k8s cluster locally

文章来源:https://blog.csdn.net/qq_54851255/article/details/134915664
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。