unixhot / salt-kubebin Goto Github PK
View Code? Open in Web Editor NEWSaltStack使用二进制方式自动化部署Kubernetes(版本v1.10.3)
Home Page: http://k8s.unixhot.com/
License: MIT License
SaltStack使用二进制方式自动化部署Kubernetes(版本v1.10.3)
Home Page: http://k8s.unixhot.com/
License: MIT License
recognized and used environment variable ETCD_INITIAL_CLUSTER_STATE=new
recognized and used environment variable ETCD_INITIAL_CLUSTER_TOKEN=k8s-etcd-cluster
recognized and used environment variable ETCD_KEY_FILE=/opt/kubernetes/ssl/etcd-key.pem
recognized and used environment variable ETCD_LISTEN_CLIENT_URLS=https://10.2.17.0:2379,https://127.0.0.1:2379
recognized and used environment variable ETCD_LISTEN_PEER_URLS=https://10.2.17.0:2380
recognized and used environment variable ETCD_NAME=etcd-node1
etcd.service: main process exited, code=exited, status=1/FAILURE
Failed to start Etcd Server.
Unit etcd.service entered failed state.
etcd.service failed.
请问大佬,集群搭建完成之后,使用kubectl get node
时只有node节点信息而没有master节点,这样的情况应该如何解决?
Normal Scheduled 1m default-scheduler Successfully assigned kubernetes-dashboard-66c9d98865-zfrjj to 10.100.0.102
Warning FailedCreatePodSandBox 1m (x11 over 1m) kubelet, 10.100.0.102 Failed create pod sandbox: rpc error: code = Unknown desc = failed to start sandbox container for pod "kubernetes-dashboard-66c9d98865-zfrjj": Error response from daemon: shim error: docker-runc not installed on system
系统已安装 docker-runc
[root@k8s-master-node-001-166 dashboard]# which docker-runc
/usr/bin/docker-runc
...
[Service]
Type=simple
WorkingDirectory=/var/lib/etcd
EnvironmentFile=-/opt/kubernetes/cfg/etcd.conf
# set GOMAXPROCS to number of processors
ExecStart=/bin/bash -c "GOMAXPROCS=$(nproc) /opt/kubernetes/bin/etcd"
Type=notify
...
两个Type..
使用kubectl logs pod名称 会出现以下报错信息:
error: You must be logged in to the server (the server has asked for the client to provide credentials ( pods/log docker-service-deployment-6b6db5675b-v4lgf))
麻烦赵班长有时间帮忙看一下是何问题,在api的日志中也没有看到相关报错信息,按照网上的说法,创建apiserver-to-kubelet-rbac 后也依然出现该问题。
在kubernetes 1.11.4版本上适用成功,希望班长能增加多主模式的配置。
kube-scheduler.service.template和remove-docker0.sh.template需要dos2unix一下
/srv/addons/apiserver-to-kubelet-rbac.yml
这个文件里边多出一段脚本
[root@kube-master37 yaml]# kubectl apply -f apiserver-to-kubelet-rbac.yml ^C
[root@kube-master37 yaml]# cat apiserver-to-kubelet-rbac.yml
rt,或者相关解决方案的讨论
Kuber-Proxy使用
更正为kube-proxy
感谢赵班长的贡献,以及为**IT培训事业做出的努力。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.