Kubernetes指南
Linux性能优化实战eBPF 核心技术与实战SDN指南个人博客
EN
EN
  • Overview
  • Introduction
    • Kubernetes Introduction
    • Kubernetes Concepts
    • Kubernetes 101
    • Kubernetes 201
    • Kubernetes Cluster
  • Concepts
    • Concepts
    • Architecture
    • Design Principles
    • Components
      • etcd
      • kube-apiserver
      • kube-scheduler
      • kube-controller-manager
      • kubelet
      • kube-proxy
      • kube-dns
      • Federation
      • kubeadm
      • hyperkube
      • kubectl
    • Objects
      • Autoscaling
      • ConfigMap
      • CronJob
      • CustomResourceDefinition
      • DaemonSet
      • Deployment
      • Ingress
      • Job
      • LocalVolume
      • Namespace
      • NetworkPolicy
      • Node
      • PersistentVolume
      • Pod
      • PodPreset
      • ReplicaSet
      • Resource Quota
      • Secret
      • SecurityContext
      • Service
      • ServiceAccount
      • StatefulSet
      • Volume
  • Setup
    • Setup Guidance
    • kubectl Install
    • Single Machine
    • Feature Gates
    • Best Practice
    • Version Support
    • Setup Cluster
      • kubeadm
      • kops
      • Kubespray
      • Azure
      • Windows
      • LinuxKit
      • kubeasz
    • Setup Addons
      • Addon-manager
      • DNS
      • Dashboard
      • Monitoring
      • Logging
      • Metrics
      • GPU
      • Cluster Autoscaler
      • ip-masq-agent
  • Extension
    • API Extension
      • Aggregation
      • CustomResourceDefinition
    • Access Control
      • Authentication
      • RBAC Authz
      • Admission
    • Scheduler Extension
    • Network Plugin
      • CNI
      • Flannel
      • Calico
      • Weave
      • Cilium
      • OVN
      • Contiv
      • SR-IOV
      • Romana
      • OpenContrail
      • Kuryr
    • Container Runtime
      • CRI-tools
      • Frakti
    • Storage Driver
      • CSI
      • FlexVolume
      • glusterfs
    • Network Policy
    • Ingress Controller
      • Ingress + Letsencrypt
      • minikube Ingress
      • Traefik Ingress
      • Keepalived-VIP
    • Cloud Provider
    • Device Plugin
  • Cloud Native Apps
    • Apps Management
      • Patterns
      • Rolling Update
      • Helm
      • Operator
      • Service Mesh
      • Linkerd
      • Linkerd2
    • Istio
      • Deploy
      • Traffic Management
      • Security
      • Policy
      • Metrics
      • Troubleshooting
      • Community
    • Devops
      • Draft
      • Jenkins X
      • Spinnaker
      • Kompose
      • Skaffold
      • Argo
      • Flux GitOps
  • Practices
    • Overview
    • Resource Management
    • Cluster HA
    • Workload HA
    • Debugging
    • Portmap
    • Portforward
    • User Management
    • GPU
    • HugePage
    • Security
    • Audit
    • Backup
    • Cert Rotation
    • Large Cluster
    • Big Data
      • Spark
      • Tensorflow
    • Serverless
  • Troubleshooting
    • Overview
    • Cluster Troubleshooting
    • Pod Troubleshooting
    • Network Troubleshooting
    • PV Troubleshooting
      • AzureDisk
      • AzureFile
    • Windows Troubleshooting
    • Cloud Platform Troubleshooting
      • Azure
    • Troubleshooting Tools
  • Community
    • Development Guide
    • Unit Test and Integration Test
    • Community Contribution
  • Appendix
    • Ecosystem
    • Learning Resources
    • Domestic Mirrors
    • How to Contribute
    • Reference Documents
由 GitBook 提供支持
在本页
  • Inside a Kubernetes Cluster
  • Cluster Federation
  • Setting Up a Kubernetes Cluster
  • Discover the World of Kubernetes Clusters
  • Expanding Horizons with Cluster Federation
  • Crafting Your Kubernetes Cluster
  1. Introduction

Kubernetes Cluster

上一页Kubernetes 201下一页Concepts

最后更新于1年前

Inside a Kubernetes Cluster

At the heart of a Kubernetes cluster, lies a harmonious blend of distributed storage, etcd, control nodes, and service nodes known as Nodes.

  • Control nodes are the orchestrators of the cluster, responsible for container scheduling, maintaining resource states, automatic scaling, and rolling updates.

  • Service nodes are the workhorses that run containers, managing images and containers, as well as handling service discovery and load balancing within the cluster.

  • An etcd cluster holds the entire state of the Kubernetes cluster.

Cluster Federation

Cluster Federation (Federation) extends Kubernetes across multiple availability zones and is realized in conjunction with cloud service providers such as GCE and AWS.

Setting Up a Kubernetes Cluster

minikube

$ minikube start
Starting local Kubernetes cluster...
Kubectl is now configured to use the cluster.
$ kubectl cluster-info
Kubernetes master is running at https://192.168.64.12:8443
kubernetes-dashboard is running at https://192.168.64.12:8443/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

play-with-k8s

A handy feature of Play with Kubernetes is the automatic display of all NodePort type service ports on the page. Simply clicking on the port allows access to the corresponding service.


Discover the World of Kubernetes Clusters

Delve into the ecosystem of a Kubernetes cluster, an intricate infrastructure comprised of distributed storage with etcd, central command centers known as control nodes, and the workstations called service nodes or nodes.

  • Control nodes like conductors in an orchestra, they manage the overall operations of the cluster, ensuring containers are aptly scheduled, resources statuses are up to date, scaling is done automatically, and updates roll out seamlessly.

  • Service nodes are the powerhouse of the cluster, directly hosting and handling containers, busying themselves with the management of images and containers, alongside the pivotal roles of service discovery and load balancing within the 'Kubernetes universe'.

  • The etcd cluster’s task is momentous, as it meticulously archives the entire state of the Kubernetes cluster.

Expanding Horizons with Cluster Federation

Cluster Federation (Federation) is designed to scale Kubernetes across several availability zones, tightly integrating with cloud service giants like GCE and AWS.

Crafting Your Kubernetes Cluster

minikube

$ minikube start
Starting local Kubernetes cluster...
Kubectl is now configured to use the cluster.
$ kubectl cluster-info
Kubernetes master is running at https://192.168.64.12:8443
kubernetes-dashboard is running at https://192.168.64.12:8443/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

play-with-k8s

What's neat about Play with Kubernetes is its intuitive presentation of all NodePort type service ports, just a click away from accessing the services they lead to.

For a more detailed introduction, please refer to .

For a more detailed introduction, please refer to .

You can deploy a Kubernetes cluster by following the . For beginners or for simple validation tests, the following are easier methods.

The easiest way to create a Kubernetes cluster (single-node version) is with :

provides a free Kubernetes learning environment, giving you access to kubeadm to create clusters directly at . Be mindful that each created cluster can only be used for up to 4 hours.

For detailed usage, refer to .

For a deep dive into this topic, check out the .

Tackle more on this subject in the .

Embark on setting up your own Kubernetes cluster via the comprehensive . If you're just getting your feet wet or simply tinkering for testing purposes, here are some straightforward alternatives:

For a breezy introduction to a single-node Kubernetes cluster, is your best bet:

For a hands-on, no-cost experience with Kubernetes, is the go-to platform. It allows you to dive in using kubeadm to craft clusters right there on , though remember each cluster exists for a fleeting 4 hours maximum.

Uncover tips and tricks in the realm of Play with Kubernetes by visiting .

Kubernetes Architecture
Federation
Kubernetes Deployment Guide
minikube
Play with Kubernetes
http://play-with-k8s.com
Play-With-Kubernetes
Kubernetes Architecture
Federation Overview
Kubernetes Deployment Guide
minikube
Play with Kubernetes
http://play-with-k8s.com
Play-With-Kubernetes