• 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

  • 相关阅读:
    WPF 插件开发(.NET Framework 3.5 System.Addin)
    如何:创建返回 UI 的外接程序
    WPF分析工具
    可视化的工具
    .NET Core入门程序
    我是如何同时拿到阿里和腾讯offer的 【转载】
    我的求职之路:9个offer,12家公司,35场面试,最终谷歌【转载】
    Mysql 配置文件和目录的合理分配
    修改socket文件, MySQL启动报错
    confluence + 禅道安装教程
  • 原文地址:https://www.cnblogs.com/dablyo/p/12057644.html
Copyright © 2020-2023  润新知