cocowool / k8s-go Goto Github PK
View Code? Open in Web Editor NEWK8S-Go 收集整理了自己在学习实践Kubernetes过程中的一些文档和脚本,公布出来供大家参考、交流。
Home Page: http://edulinks.cn
K8S-Go 收集整理了自己在学习实践Kubernetes过程中的一些文档和脚本,公布出来供大家参考、交流。
Home Page: http://edulinks.cn
es logs error message
[2018-12-17T06:37:52,892][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [es-single-584b555bb6-czlx6] uncaught exception in thread [main] org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: No up-and-running site-local (private) addresses found, got [name:lo (lo), name:eth0 (eth0)] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.4.0.jar:6.4.0] at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.4.0.jar:6.4.0] at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.4.0.jar:6.4.0] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.4.0.jar:6.4.0] at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.4.0.jar:6.4.0] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.4.0.jar:6.4.0] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.4.0.jar:6.4.0] Caused by: java.lang.IllegalArgumentException: No up-and-running site-local (private) addresses found, got [name:lo (lo), name:eth0 (eth0)] at org.elasticsearch.common.network.NetworkUtils.getSiteLocalAddresses(NetworkUtils.java:184) ~[elasticsearch-6.4.0.jar:6.4.0] at org.elasticsearch.common.network.NetworkService.resolveInternal(NetworkService.java:213) ~[elasticsearch-6.4.0.jar:6.4.0] at org.elasticsearch.common.network.NetworkService.resolveInetAddresses(NetworkService.java:187) ~[elasticsearch-6.4.0.jar:6.4.0] at org.elasticsearch.common.network.NetworkService.resolveBindHostAddresses(NetworkService.java:106) ~[elasticsearch-6.4.0.jar:6.4.0] at org.elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:770) ~[elasticsearch-6.4.0.jar:6.4.0] at org.elasticsearch.transport.netty4.Netty4Transport.doStart(Netty4Transport.java:134) ~[?:?] at org.elasticsearch.xpack.core.security.transport.netty4.SecurityNetty4Transport.doStart(SecurityNetty4Transport.java:87) ~[?:?] at org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4ServerTransport.doStart(SecurityNetty4ServerTransport.java:41) ~[?:?] at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:66) ~[elasticsearch-6.4.0.jar:6.4.0] at org.elasticsearch.transport.TransportService.doStart(TransportService.java:217) ~[elasticsearch-6.4.0.jar:6.4.0] at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:66) ~[elasticsearch-6.4.0.jar:6.4.0] at org.elasticsearch.node.Node.start(Node.java:667) ~[elasticsearch-6.4.0.jar:6.4.0] at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:265) ~[elasticsearch-6.4.0.jar:6.4.0] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:335) ~[elasticsearch-6.4.0.jar:6.4.0] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.4.0.jar:6.4.0] ... 6 more
k8s-dns-sidecar-amd64:1.14.9 k8s-dns-kube-dns-amd64:1.14.9
k8s-dns-dnsmasq-nanny-amd64:1.14.9
阿里云镜像库没有1.14.9版本的吧,我在上面找到的只有1.14.8的
当然我已经参照文档安装成功,谢谢
你好,我是看了你这篇博客的文章过来的,我现在在MAC上使用VirtualBox运行ubuntu 16.04的系统,按照文章的方法部署kubeadm,但是coredns的pods一直是pending状态,请问要怎么排查故障呢?
PS: 我是将 https://raw.githubusercontent.com/coreos/flannel/v0.10.0/Documentation/kube-flannel.yml
下载到了本地并修改了网卡配置
$ ifconfig
docker0 Link encap:Ethernet HWaddr 02:42:87:7a:58:ba
inet addr:172.17.0.1 Bcast:172.17.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
enp0s3 Link encap:Ethernet HWaddr 02:1d:76:b3:3c:fe
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::1d:76ff:feb3:3cfe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:345552 errors:0 dropped:0 overruns:0 frame:0
TX packets:70962 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:488197696 (488.1 MB) TX bytes:4649865 (4.6 MB)
enp0s8 Link encap:Ethernet HWaddr 08:00:27:0d:61:61
inet addr:192.168.34.13 Bcast:192.168.34.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:395 errors:0 dropped:0 overruns:0 frame:0
TX packets:444 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:134394 (134.3 KB) TX bytes:150828 (150.8 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1097066 errors:0 dropped:0 overruns:0 frame:0
TX packets:1097066 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:252558544 (252.5 MB) TX bytes:252558544 (252.5 MB)
containers:
- name: kube-flannel
image: quay.io/coreos/flannel:v0.10.0-amd64
command:
- /opt/bin/flanneld
args:
- --ip-masq
- --kube-subnet-mgr
- --iface=enp0s8 #指定内网网卡
$sudo kubeadm init --kubernetes-version=v1.12.0-rc.1 --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=192.168.34.13
$ kubectl apply -f test.yml
clusterrole.rbac.authorization.k8s.io/flannel created
clusterrolebinding.rbac.authorization.k8s.io/flannel created
serviceaccount/flannel created
configmap/kube-flannel-cfg created
daemonset.extensions/kube-flannel-ds created
$ kubectl get pods --all-namespaces -o wide
NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE
kube-system coredns-576cbf47c7-twn2h 0/1 Pending 0 4m32s <none> <none> <none>
kube-system coredns-576cbf47c7-xkcfm 0/1 Pending 0 4m32s <none> <none> <none>
kube-system etcd-emqx 1/1 Running 0 3m52s 10.0.2.15 emqx <none>
kube-system kube-apiserver-emqx 1/1 Running 0 3m43s 10.0.2.15 emqx <none>
kube-system kube-controller-manager-emqx 1/1 Running 0 3m35s 10.0.2.15 emqx <none>
kube-system kube-proxy-2b5zk 1/1 Running 0 4m32s 10.0.2.15 emqx <none>
kube-system kube-scheduler-emqx 1/1 Running 0 3m30s 10.0.2.15 emqx <none>
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
emqx NotReady master 9m55s v1.12.0
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.