Bare Metal Deployment Guide for kolla-kubernetes in kolla-kubernetes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-kubernetes |
New
|
Undecided
|
Unassigned |
Bug Description
This bug tracker is for errors with the documentation, use the following as a template and remove or add fields as you see fit. Convert [ ] into [x] to check boxes:
- [x] This doc is inaccurate in this way: When setting up kubernetes, canal fails at 2/3 and throws the following errors:
# kubectl logs canal-jdpd9 --container calico-node --namespace=
Checking datastore connection
Datastore connection verified
ERROR: Unable to set node resource configuration: Failed to ensure ThirdPartyResources exist: resource does not exist: {{ } {global-
Terminating
time="2018-
time="2018-
time="2018-
time="2018-
time="2018-
Calico node failed to start
For some reason, it seems that this is due to failing to set resource configuration due to global-
https:/
It appears that the subdomains may not exist, which would mean that it's not pulling a config since they're empty. I think this part of the canal/calico config need to be updated to reflect this. Here's a dig of the domain:
$ dig global-
; <<>> DiG 9.9.7-P3 <<>> global-
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 32515
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;global-
;; AUTHORITY SECTION:
projectcalico.org. 300 IN SOA ns-cloud-
;; Query time: 59 msec
;; SERVER: 2601:601:
;; WHEN: Sun Feb 11 17:45:23 PST 2018
;; MSG SIZE rcvd: 136
- [ ] This is a doc addition request.
- [ ] I have a fix to the document that I can paste below including example: input and output.
If you have a troubleshooting or support issue, use the following resources:
- Ask OpenStack: http://
- The mailing list: http://
- IRC: 'openstack' channel on Freenode
-------
Release: on 2018-02-07 21:56
SHA: d434f4a41ee2806
Source: https:/
URL: https:/
I found the way to fix/work around this issue. It turns out that you need to do the following steps to move forward: engine- 17.03* plugin= cni and have --cni-conf-dir and --cni-bin-dir properly set in your 10-kubeadm.conf file: system/ kubelet. service. d/10-kubeadm. conf /github. com/projectcali co/canal/ tree/master/ k8s-install# for-kubernetes- 17 /raw.githubuser content. com/projectcali co/canal/ master/ k8s-install/ 1.7/rbac. yaml /raw.githubuser content. com/projectcali co/canal/ master/ k8s-install/ 1.7/canal. yaml -o canal.yaml 0.0/16@ 10.1.0. 0/16@" canal.yaml
1.) remove docker version 1.17.05 or 1.12 and install 17.03:
# yum remove docker*
# yum instally -y docker-
2.) install the kubernetes packages:
# yum install -y ebtables kubeadm kubectl kubelet kubernetes-cni git gcc
3.) validate that you are doing this:
kubelets must be started with --network-
/etc/systemd/
*Not sure if this is different from what is automatically installed via yum or not as I was monkeying with all the settings, but I removed the --network-plugin for a while and it caused problems, so I put the settings from the below link.
4.) follow the steps for canal on github for version 1.7+ from here with the modifications in the kolla-kubernetes install guide:
https:/
$ kubectl apply -f https:/
$ curl -L -s https:/
$ sed -i "s@10.244.
$ kubectl apply -f canal.yaml
5.) Once you've completed the above, your canal should get to 3/3 and start passing dns checks as well (though DNS would pass before this).