zoukankan      html  css  js  c++  java
  • k8s安装

    kubeadm init --kubernetes-version=1.17.0 --apiserver-advertise-address=192.168.122.55 --image-repository registry.aliyuncs.com/google_containers --service-cidr=10.1.0.0/16 --pod-network-cidr=10.244.0.0/16

    https://www.kubernetes.org.cn/5462.html


    To start using your cluster, you need to run the following as a regular user:

    mkdir -p $HOME/.kube
    sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
    sudo chown $(id -u):$(id -g) $HOME/.kube/config

    You should now deploy a pod network to the cluster.
    Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
    https://kubernetes.io/docs/concepts/cluster-administration/addons/

    Then you can join any number of worker nodes by running the following on each as root:

    kubeadm join 192.168.122.55:6443 --token fuu0zz.1oj3o8zbsf0eyj1x
    --discovery-token-ca-cert-hash sha256:26f14aed87dffb4ac88f8166b55386dbb36fcb8a381431205110008aeda22f6b

    https://stackoverflow.com/questions/58971938/unable-to-recognize-kube-flannel-yml-no-matches-for-kind-daemonset-in-versi
    It seems you're using k8s version 1.16 and daemonset API group change to apps/v1
    Update the link to this: https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
    And also there is an issue about this out there: https://github.com/kubernetes/website/issues/16441
    shareimprove this answer
    answered Nov 21 at 9:57
    Alireza Davoodi
    63055 silver badges1818 bronze badges
    resolved master pending node issue but still node not able to join – Ashish Karpe Nov 21 at 10:05
    1
    Please check the flannel daemonset, Is it running on all nodes? – Alireza Davoodi Nov 21 at 10:07
    how to do that? – Ashish Karpe Nov 21 at 10:09
    1
    kubectl -n kube-system get daemonset kube-flannel-ds-amd64 -o wide Should run on all nodes. – Alireza Davoodi Nov 21 at 10:11
    1
    You don't need to add explicitly a pod to the node because already you're using daemonset so that object apply a pod to all of the cluster nodes. – Alireza Davoodi Nov 21 at 10:16

  • 相关阅读:
    __declspec(noinline)
    硬件遮挡查询
    #pragma pack(*) 与 __declspec(align(*))
    Interesting. 如何获取一个数组长度
    __declspec(novtable)
    如何将一个float的小数部分保存成RGBA4个8位的byte
    plain old C++ functions, base模板函数与特化的模板函数
    LeetCode 5: Longest Palindromic Substring
    LeetCode 335:Self Crossing 自交
    LeetCode 649:Dota2 Senate
  • 原文地址:https://www.cnblogs.com/dablyo/p/12057644.html
Copyright © 2011-2022 走看看