Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Single-node deployment for Kubernetes binary deployment

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

K8s single node binary deployment K8s binary deployment steps: 1: self-sign ETCD certificate 2:ETCD deployment 3:Node installation docker 4:Flannel deployment (first write subnet to etcd)-master-5: self-sign APIServer certificate 6: deploy APIServer components (token Csv) 7: deploy controller-manager (specify apiserver certificate) and scheduler component-node-8: generate kubeconfig (bootstrap,kubeconfig and kube-proxy.kubeconfig) 9: deploy kubelet component 10: deploy kube-proxy component-join cluster-11:kubectl get csr & & kubectl certificate approve allow method certificate Join Cluster 12: add a node Node 13: view kubectl get node Node Environment preparation: * * master Node: * CentOS 7-3:192.168.18.128***node Node: * CentOS 7-4 CentOS 192.168.18.129 docker**CentOS 7-5 docker* Experimental Software package for 192.168.18.130

K8s official website address: https://github.com/kubernetes/kubernetes/releases?after=v1.13.1

Master deployment: [root@master ~] # mkdir K8s [root@master ~] # cd k8s/ [root@master K8s] # mkdir etcd-cert [root@master K8s] # mv etcd-cert.sh etcd-cert [root@master K8s] # lsetcd-cert etcd.sh [root@master K8s] # vim cfssl.shcurl-L https://pkg.cfssl.org/R1.2/cfssl_linux-amd64-o / usr/local/bin/cfsslcurl-L https://pkg.cfssl.org/R1.2 / cfssljson_linux-amd64-o / usr/local/bin/cfssljsoncurl-L https://pkg.cfssl.org/R1.2/cfssl-certinfo_linux-amd64-o / usr/local/bin/cfssl-certinfochmod + x / usr/local/bin/cfssl / usr/local/bin/cfssljson / usr/local/bin/cfssl-certinfo [root@master k8s] # bash cfssl.sh [root@master k8s] # ls / usr/local/bin/cfssl cfssl-certinfo cfssljson [root@master k8s] # cd etcd-cert / `define CA certificate `cat > ca-config.json

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report