Giter Club home page Giter Club logo

k8s-install-scripts's Issues

1.7.2版本脚本错误

kubeadm init --apiserver-advertise-address=${MASTER_ADDRESS} --kubernetes-version=v${KUBE_VERSION} --token=${KUBE_TOKEN} --pod-network-cidr=10.244.0.0/12
会导致容器无法不匹配iptables的策略,无法snat而无法访问外网

这里的网段掩码有误应该是 --pod-network-cidr=10.244.0.0/16

The connection to the server localhost:8080 was refused - did you specify the right host or port?

按照教程,先运行master,然后按照提示处理admin.conf,然后在另一台机器上运行node,在node机器上
[root@bigbangtest1st] /etc/kubernetes/manifests$ kubeadm join --token 863f67.19babbff7bfe8543 172.18.0.16:6443 --skip-preflight-checks
[kubeadm] WARNING: kubeadm is in beta, please do not use it for production clusters.
[preflight] Skipping pre-flight checks
[discovery] Trying to connect to API Server "172.18.0.16:6443"
[discovery] Created cluster-info discovery client, requesting info from "https://172.18.0.16:6443"
[discovery] Cluster info signature and contents are valid, will use API Server "https://172.18.0.16:6443"
[discovery] Successfully established connection with API Server "172.18.0.16:6443"
[bootstrap] Detected server version: v1.7.2
[bootstrap] The server supports the Certificates API (certificates.k8s.io/v1beta1)
[csr] Created API client to obtain unique certificate for this node, generating keys and certificate signing request
[csr] Received signed certificate from the API server, generating KubeConfig...
[kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/kubelet.conf"

Node join complete:

  • Certificate signing request sent to master and response
    received.
  • Kubelet informed of new secure connection details.

Run 'kubectl get nodes' on the master to see this machine join.

kubectl create -f kubedns-controller.yaml报错请教

[root@k8s ~]# kubectl create -f kubedns-controller.yaml
error: error validating "kubedns-controller.yaml": error validating data: [found invalid field tolerations for v1.PodSpec, found invalid field optional for v1.ConfigMapVolumeSource]; if you choose to ignore these errors, turn validation off with --validate=false

centos mini版问题

如果没有安装firewalld 脚本会报错,需要手动注释掉关于firewalld的内容;
如果没有安装estables,安装会终止,需要手动yum install estables;

etcd.sh脚本执行有问题

对于最小安装的系统,没说明脚本需要依赖于什么命令
etcd.sh脚本中需要添加一行配置
yum install -y zip unzip wget
取消注释source ~/.bash_profile
需要注释掉 exec bash --login

k8s 1.9.1

[etcd] Wrote Static Pod manifest for a local etcd instance to "/etc/kubernetes/manifests/etcd.yaml"
[init] Waiting for the kubelet to boot up the control plane as Static Pods from directory "/etc/kubernetes/manifests".
[init] This might take a minute or longer if the control plane images have to be pulled.
然后很 久后 就失败了 提示的是 TLS handshake timeout

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.