Top Related Projects
Production-Grade Container Scheduling and Management
Bootstrap Kubernetes the hard way. No scripts.
Lightweight Kubernetes
Deploy a Production Ready Kubernetes Cluster
The container platform tailored for Kubernetes multi-cloud, datacenter, and edge management ⎈ 🖥 ☁️
Quick Overview
The "follow-me-install-kubernetes-cluster" repository is a comprehensive guide for manually deploying a production-grade Kubernetes cluster. It provides step-by-step instructions in Chinese for setting up a highly available Kubernetes environment, including all necessary components and best practices.
Pros
- Detailed, step-by-step instructions for a complete Kubernetes setup
- Covers advanced topics like high availability and security considerations
- Regularly updated to reflect the latest Kubernetes versions and best practices
- Includes explanations and rationale for each step, promoting understanding
Cons
- Instructions are primarily in Chinese, which may limit accessibility for non-Chinese speakers
- Manual installation process can be time-consuming compared to automated tools
- Requires a deep understanding of Kubernetes concepts and Linux administration
- May not be suitable for small-scale or development environments due to its production-grade focus
Getting Started
To begin using this guide:
-
Clone the repository:
git clone https://github.com/opsnull/follow-me-install-kubernetes-cluster.git
-
Navigate to the repository directory:
cd follow-me-install-kubernetes-cluster
-
Start with the README.md file, which provides an overview and table of contents for the installation process.
-
Follow the chapters in order, starting with environment preparation and progressing through component installation and configuration.
-
Refer to the specific markdown files for each step, carefully following the instructions and executing the provided commands.
Note: Ensure you have the necessary hardware resources and meet the prerequisites before beginning the installation process. It's recommended to have a good understanding of Kubernetes concepts and Linux administration before attempting this manual installation.
Competitor Comparisons
Production-Grade Container Scheduling and Management
Pros of kubernetes
- Official repository with comprehensive documentation and extensive community support
- Contains the core Kubernetes components and APIs, allowing for deeper understanding and customization
- Regularly updated with the latest features, bug fixes, and security patches
Cons of kubernetes
- Steeper learning curve for beginners due to its complexity and extensive codebase
- Requires more setup and configuration compared to the follow-me-install-kubernetes-cluster guide
- May be overwhelming for users who just want a simple Kubernetes installation
Code Comparison
follow-me-install-kubernetes-cluster:
# Example installation step
$ sudo apt-get update && sudo apt-get install -y kubelet kubeadm kubectl
kubernetes:
// Example Kubernetes API code
type Pod struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PodSpec `json:"spec,omitempty"`
Status PodStatus `json:"status,omitempty"`
}
The follow-me-install-kubernetes-cluster repository provides a step-by-step guide for installing Kubernetes, making it more accessible for beginners. In contrast, the kubernetes repository contains the actual source code and components of the Kubernetes project, offering a deeper dive into the system's internals but requiring more expertise to navigate and utilize effectively.
Bootstrap Kubernetes the hard way. No scripts.
Pros of kubernetes-the-hard-way
- More comprehensive and detailed, covering advanced topics
- Focuses on manual installation, providing deeper understanding
- Regularly updated to reflect latest Kubernetes versions
Cons of kubernetes-the-hard-way
- More time-consuming to complete
- Requires more technical expertise
- Less focused on production-ready deployments
Code Comparison
follow-me-install-kubernetes-cluster:
# Install Docker
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce
systemctl enable docker && systemctl start docker
kubernetes-the-hard-way:
# Generate the Kubernetes Configuration Files for Authentication
kubectl config set-cluster kubernetes-the-hard-way \
--certificate-authority=ca.pem \
--embed-certs=true \
--server=https://${KUBERNETES_PUBLIC_ADDRESS}:6443 \
--kubeconfig=kube-proxy.kubeconfig
The code snippets demonstrate the difference in approach. follow-me-install-kubernetes-cluster focuses on practical installation steps, while kubernetes-the-hard-way emphasizes manual configuration and deeper understanding of Kubernetes components.
Both repositories provide valuable resources for learning Kubernetes, but cater to different skill levels and learning objectives. follow-me-install-kubernetes-cluster is more suitable for beginners and those seeking a quicker setup, while kubernetes-the-hard-way is ideal for advanced users and those wanting to gain in-depth knowledge of Kubernetes internals.
Lightweight Kubernetes
Pros of k3s
- Lightweight and resource-efficient, ideal for edge computing and IoT devices
- Easy to install and manage with a single binary
- Includes built-in storage and load balancing solutions
Cons of k3s
- Limited customization options compared to full Kubernetes installations
- May not support all Kubernetes features and add-ons
- Potential performance limitations for large-scale deployments
Code Comparison
follow-me-install-kubernetes-cluster:
# Install etcd
yum -y install etcd
systemctl enable etcd
systemctl start etcd
k3s:
# Install k3s
curl -sfL https://get.k3s.io | sh -
# Check installation
k3s kubectl get node
The follow-me-install-kubernetes-cluster repository provides a step-by-step guide for manually installing a full Kubernetes cluster, which offers more control and customization. In contrast, k3s simplifies the installation process with a single command, making it easier for beginners but potentially limiting advanced configurations.
k3s is more suitable for lightweight environments and quick deployments, while follow-me-install-kubernetes-cluster is better for learning the intricacies of Kubernetes and creating highly customized clusters.
Deploy a Production Ready Kubernetes Cluster
Pros of kubespray
- More actively maintained with frequent updates and a larger community
- Supports multiple cloud providers and on-premises deployments
- Offers more customization options and flexibility in cluster configuration
Cons of kubespray
- Steeper learning curve due to its complexity and extensive feature set
- Requires more system resources for deployment and management
- May be overkill for simple or small-scale Kubernetes deployments
Code Comparison
follow-me-install-kubernetes-cluster:
# Example of manual etcd configuration
etcd \
--name ${ETCD_NAME} \
--data-dir=${ETCD_DATA_DIR} \
--listen-peer-urls=https://${ETCD_IP}:2380 \
--listen-client-urls=https://${ETCD_IP}:2379,http://127.0.0.1:2379 \
--advertise-client-urls=https://${ETCD_IP}:2379 \
--initial-advertise-peer-urls=https://${ETCD_IP}:2380 \
--initial-cluster=${ETCD_NODES} \
--initial-cluster-state=new \
--initial-cluster-token=etcd-cluster-0 \
--client-cert-auth \
--trusted-ca-file=/etc/kubernetes/ssl/ca.pem \
--cert-file=/etc/etcd/ssl/etcd.pem \
--key-file=/etc/etcd/ssl/etcd-key.pem \
--peer-client-cert-auth \
--peer-trusted-ca-file=/etc/kubernetes/ssl/ca.pem \
--peer-cert-file=/etc/etcd/ssl/etcd.pem \
--peer-key-file=/etc/etcd/ssl/etcd-key.pem
kubespray:
# Example of etcd configuration in group_vars/etcd.yml
etcd_peer_port: 2380
etcd_client_port: 2379
etcd_data_dir: "/var/lib/etcd"
etcd_cert_dir: "/etc/ssl/etcd/ssl"
etcd_config_dir: "/etc/etcd"
etcd_cert_group: "root"
etcd_script_dir: "{{ bin_dir }}/etcd-scripts"
The container platform tailored for Kubernetes multi-cloud, datacenter, and edge management ⎈ 🖥 ☁️
Pros of KubeSphere
- Provides a comprehensive web-based UI for managing Kubernetes clusters
- Offers built-in monitoring, logging, and alerting capabilities
- Includes multi-tenancy support and fine-grained access control
Cons of KubeSphere
- Requires more resources to run due to additional components
- May have a steeper learning curve for users new to Kubernetes
- Some advanced Kubernetes features might be abstracted or less accessible
Code Comparison
follow-me-install-kubernetes-cluster:
# Install etcd
tar -xvf etcd-v3.4.3-linux-amd64.tar.gz
mv etcd-v3.4.3-linux-amd64/etcd* /opt/k8s/bin
KubeSphere:
apiVersion: installer.kubesphere.io/v1alpha1
kind: ClusterConfiguration
metadata:
name: ks-installer
namespace: kubesphere-system
spec:
persistence:
storageClass: ""
The follow-me-install-kubernetes-cluster repository provides a step-by-step guide for manually installing Kubernetes components, while KubeSphere offers a more automated installation process with additional features and a user-friendly interface. The code snippets show the difference in approach, with follow-me-install-kubernetes-cluster focusing on individual component installation and KubeSphere using a custom resource definition for cluster configuration.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
åæä¸æ¥æ¥é¨ç½² kubernetes é群
æ¬ç³»åææ¡£ä»ç»ä½¿ç¨äºè¿å¶é¨ç½² kubernetes v1.16.6
é群çæææ¥éª¤ï¼Hard-Way 模å¼ï¼ã
å¨é¨ç½²çè¿ç¨ä¸ï¼å°è¯¦ç»ååºåç»ä»¶çå¯å¨åæ°ï¼å®ä»¬çå«ä¹åå¯è½éå°çé®é¢ã
é¨ç½²å®æåï¼ä½ å°ç解系ç»åç»ä»¶ç交äºåçï¼è¿èè½å¿«é解å³å®é é®é¢ã
æ以æ¬æ档主è¦éåäºé£äºæä¸å® kubernetes åºç¡ï¼æ³éè¿ä¸æ¥æ¥é¨ç½²çæ¹å¼æ¥å¦ä¹ åäºè§£ç³»ç»é ç½®ãè¿è¡åçç人ã
æ¬ç³»åç³»ææ¡£éç¨äº CentOS 7
å以ä¸çæ¬ç³»ç»ï¼**éçåç»ä»¶çæ´æ°èæ´æ°**ï¼æä»»ä½é®é¢æ¬¢è¿æ issueï¼
ç±äºå¯ç¨äº x509
è¯ä¹¦åå认è¯ãRBAC
ææçä¸¥æ ¼çå®å
¨æºå¶ï¼å»ºè®®ä»å¤´å¼å§é¨ç½²ï¼å¦åå¯è½ä¼è®¤è¯ãææç失败ï¼
ä» v1.16.x çæ¬å¼å§ï¼æ¬ææ¡£åäºå¦ä¸è°æ´ï¼
- 容å¨è¿è¡æ¶ï¼ç¨ containerd æ¿æ¢ dockerï¼æ´å ç®åãå¥å£®ï¼ç¸åºçå½ä»¤è¡å·¥å ·ä¸º crictlï¼
- Pod ç½ç»ï¼ç¨ calico æ¿æ¢ flannel å®ç° Pod äºéï¼æ¯ææ´å¤§è§æ¨¡çé群ï¼
æ°å¢ææ çæ§ç³»ç»ï¼ä½¿ç¨ä¸»æµç PrometheusãGrafana ææ¯æ å®ç°é群ææ ééåçæ§ï¼
å¦ææ³ç»§ç»ä½¿ç¨ docker å flannelï¼è¯·åèé件ææ¡£ã
åå²çæ¬
- v1.6.2ï¼å·²åæ¢æ´æ°ï¼
- v1.8.xï¼å·²åæ¢æ´æ°ï¼
- v1.10.xï¼å·²åæ¢æ´æ°ï¼
- v1.12.xï¼å·²åæ¢æ´æ°ï¼
- v1.14.xï¼ç»§ç»æ´æ°ï¼
æ¥éª¤å表
- 00.ç»ä»¶çæ¬åé ç½®çç¥
- 01.åå§åç³»ç»åå ¨å±åé
- 02.å建CAæ ¹è¯ä¹¦åç§é¥
- 03.é¨ç½²kubectlå½ä»¤è¡å·¥å ·
- 04.é¨ç½²etcdé群
- 05-1.é¨ç½²masterèç¹.md
- 06-1.é¨ç½²wokerèç¹
- 07.éªè¯é群åè½
- 08-1.é¨ç½²é群æ件
- 09.é¨ç½²Docker-Registry
- 10.æ¸ çé群
- A.æµè§å¨è®¿é®apiserverå®å ¨ç«¯å£
- B.æ ¡éªTLSè¯ä¹¦
- C.é¨ç½²metrics-serveræ件
- D.é¨ç½²Harbor-Registry
å¨çº¿é 读
çµå书
æèµ
å¦æä½ è§å¾è¿ä»½ææ¡£å¯¹ä½ æ帮å©ï¼è¯·å¾®ä¿¡æ«æä¸æ¹çäºç»´ç è¿è¡æèµ ï¼å æ²¹åç opsnull å°ä¼åä½ å享æ´å¤çååæç¨ï¼è°¢è°¢ï¼
广åä½
çæ
Copyright 2017-2020 zhangjun (geekard@qq.com)
ç¥è¯å ±äº« ç½²å-éåä¸æ§ä½¿ç¨-ç¸åæ¹å¼å ±äº« 4.0ï¼CC BY-NC-SA 4.0ï¼ï¼è¯¦æ è§ LICENSE æ件ã
Top Related Projects
Production-Grade Container Scheduling and Management
Bootstrap Kubernetes the hard way. No scripts.
Lightweight Kubernetes
Deploy a Production Ready Kubernetes Cluster
The container platform tailored for Kubernetes multi-cloud, datacenter, and edge management ⎈ 🖥 ☁️
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot