<nav id="luije"><kbd id="luije"></kbd></nav>
<center id="luije"><form id="luije"></form></center><tt id="luije"><form id="luije"></form></tt>
<output id="luije"><xmp id="luije"></xmp></output>
  • <form id="luije"><acronym id="luije"></acronym></form>
  • <output id="luije"><font id="luije"><rp id="luije"></rp></font></output>
    <sub id="luije"><form id="luije"></form></sub>
  • <sub id="luije"></sub>
    <li id="luije"></li>
  • <acronym id="luije"><noframes id="luije"><sub id="luije"></sub></noframes></acronym>
  • <rp id="luije"><output id="luije"></output></rp>
    <rp id="luije"></rp>
  • <var id="luije"></var>
  • <acronym id="luije"><nav id="luije"></nav></acronym>
  • <li id="luije"><strike id="luije"><font id="luije"></font></strike></li>
    <form id="luije"></form>
  • <output id="luije"><table id="luije"><input id="luije"></input></table></output>
  • <var id="luije"><table id="luije"></table></var>
    溫馨提示×

    溫馨提示×

    您好,登錄后才能下訂單哦!

    密碼登錄×
    登錄注冊×
    其他方式登錄
    點擊 登錄注冊 即表示同意《億速云用戶服務條款》

    Kubekey安裝Kubernetes-1.24.8的過程介紹

    發布時間:2023-11-30 11:41:32 來源:億速云 閱讀:226 作者:栢白 欄目:開發技術

    本篇文章和大家了解一下Kubekey安裝Kubernetes-1.24.8的過程介紹。有一定的參考價值,有需要的朋友可以參考一下,希望對大家有所幫助。


    master節點

      • 12.驗證-master節點

    Kubekey簡介

    官網文檔:https://kubesphere.com.cn/docs/v3.3/installing-on-linux/introduction/kubekey/

    Github:https://github.com/kubesphere/kubekey

    Github中文文檔:https://github.com/kubesphere/kubekey/blob/master/README_zh-CN.md

    Kubekey采用Go編寫,不像Ansible那樣依賴運行環境,可以同時安裝 Kubernetes 和 KubeSphere。此外Kubekey還可以對K8S集群做升級、擴縮容、根據Yaml安裝插件等操作,對非專業運維的開發人員相當友好。

    多節點安裝K8S及KubeSphere官方文檔:https://kubesphere.com.cn/docs/v3.3/installing-on-linux/introduction/multioverview/

    Kubekey安裝Kubernetes-1.24.8 0.

    0.系統環境

    • 主機:3臺虛擬機 4C8G

    • 系統:CentOS-7.9

    • 完成環境:kubernetes-1.24.8,容器:containerd

    1.hostname-所有節點

    hostnamectl set-hostname l-master
    hostnamectl set-hostname l-worker-01
    hostnamectl set-hostname l-worker-02

    2.hosts-所有節點

    192.168.31.66   l-master
    192.168.31.67   l-worker-01
    192.168.31.68   l-worker-02

    3.yum安裝依賴-所有節點

    yum install -y update 
    yum install -y wget && yum install -y vim && yum install -y lsof && yum install -y net-tools

    4.關閉防火墻-所有節點

    systemctl stop firewalld
    systemctl disable firewalld

    5.關閉 selinux-所有節點

    sed -i 's/enforcing/disabled/' /etc/selinux/config
    setenforce 0
    cat /etc/selinux/config

    6.關閉 swap-所有節點

    swapoff -a
    sed -ri 's/.*swap.*/#&/' /etc/fstab
    free -l -h

    7.安裝依賴組件### 安裝依賴組件-所有節點

    yum install -y ebtables socat ipset conntrack

    8.安裝其他依賴于時間同步-所有節點

    yum install -y ebtables socat ipset conntrack

    9.下載kk-master節點

    mkdir /opt/kubesphere
    cd /opt/kubesphere
    export KKZONE=cn
    curl -sfL https://get-kk.kubesphere.io | VERSION=v3.0.7 sh -

    10.準備配置文件-master節點

    cat /opt/kubesphere/k8s-config.yaml

    apiVersion: kubekey.kubesphere.io/v1alpha2
    kind: Cluster
    metadata:
      name: sample
    spec:
      hosts:
      - {name: l-master, address: 192.168.31.66, internalAddress: 192.168.31.66, user: root, password: "root"}
      - {name: l-worker-01, address: 192.168.31.67, internalAddress: 192.168.31.67, user: root, password: "root"}
      - {name: l-worker-02, address: 192.168.31.68, internalAddress: 192.168.31.68, user: root, password: "root"}
      roleGroups:
        etcd:
        - l-master
        control-plane: 
        - l-master
        worker:
        - l-master
        - l-worker-01
        - l-worker-02
      controlPlaneEndpoint:
        ## Internal loadbalancer for apiservers 
        # internalLoadbalancer: haproxy
        domain: lb.kubesphere.local
        address: ""
        port: 6443
      kubernetes:
        version: v1.24.8
        clusterName: cluster.local
        autoRenewCerts: true
        containerManager: docker
      etcd:
        type: kubekey
      network:
        plugin: calico
        kubePodsCIDR: 10.233.64.0/18
        kubeServiceCIDR: 10.233.0.0/18
        ## multus support. https://github.com/k8snetworkplumbingwg/multus-cni
        multusCNI:
          enabled: false
      registry:
        privateRegistry: ""
        namespaceOverride: ""
        registryMirrors: []
        insecureRegistries: []
      addons: []

    11.執行安裝-master節點

    ./kk create cluster -f k8s-config.yaml -y --container-manager containerd

    12.驗證-master節點

    kubectl get pod -A

    kube-system   calico-kube-controllers-676c86494f-5lr5w             1/1     Running   1 (50m ago)   4h45m
    kube-system   calico-node-c79sk                                    1/1     Running   1 (50m ago)   4h45m
    kube-system   calico-node-mkmdg                                    1/1     Running   1 (50m ago)   4h45m
    kube-system   calico-node-p55pb                                    1/1     Running   1 (50m ago)   4h45m
    kube-system   coredns-757cd945b-9crbl                              1/1     Running   1 (50m ago)   4h45m
    kube-system   coredns-757cd945b-pw9qc                              1/1     Running   1 (50m ago)   4h45m
    kube-system   kube-apiserver-b-master                              1/1     Running   1 (50m ago)   4h45m
    kube-system   kube-controller-manager-b-master                     1/1     Running   1 (50m ago)   4h45m
    kube-system   kube-proxy-2vnlb                                     1/1     Running   1 (50m ago)   4h45m
    kube-system   kube-proxy-5tv62                                     1/1     Running   1 (50m ago)   4h45m
    kube-system   kube-proxy-vckp4                                     1/1     Running   1 (50m ago)   4h45m
    kube-system   kube-scheduler-b-master                              1/1     Running   1 (50m ago)   4h45m
    kube-system   nodelocaldns-5jwdf                                   1/1     Running   1 (50m ago)   4h45m
    kube-system   nodelocaldns-p99zp                                   1/1     Running   1 (50m ago)   4h45m
    kube-system   nodelocaldns-xbvfk                                   1/1     Running   1 (50m ago)   4h45m

    以上就是Kubekey安裝Kubernetes-1.24.8的過程介紹的簡略介紹,當然詳細使用上面的不同還得要大家自己使用過才領會。如果想了解更多,歡迎關注億速云行業資訊頻道哦!

    向AI問一下細節

    免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

    AI

    自拍偷自拍亚洲精品牛影院_99久热re在线精品99re8_国国产a国产片免费_成人午夜精品无码区
    <nav id="luije"><kbd id="luije"></kbd></nav>
    <center id="luije"><form id="luije"></form></center><tt id="luije"><form id="luije"></form></tt>
    <output id="luije"><xmp id="luije"></xmp></output>
  • <form id="luije"><acronym id="luije"></acronym></form>
  • <output id="luije"><font id="luije"><rp id="luije"></rp></font></output>
    <sub id="luije"><form id="luije"></form></sub>
  • <sub id="luije"></sub>
    <li id="luije"></li>
  • <acronym id="luije"><noframes id="luije"><sub id="luije"></sub></noframes></acronym>
  • <rp id="luije"><output id="luije"></output></rp>
    <rp id="luije"></rp>
  • <var id="luije"></var>
  • <acronym id="luije"><nav id="luije"></nav></acronym>
  • <li id="luije"><strike id="luije"><font id="luije"></font></strike></li>
    <form id="luije"></form>
  • <output id="luije"><table id="luije"><input id="luije"></input></table></output>
  • <var id="luije"><table id="luije"></table></var>