This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[fedora@kube-cluster-kube-master-feulivz7l4jn ~]$ ifconfig | |
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 | |
inet 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255 | |
inet6 fe80::f816:3eff:fec3:ddbf prefixlen 64 scopeid 0x20<link> | |
ether fa:16:3e:c3:dd:bf txqueuelen 1000 (Ethernet) | |
RX packets 318298 bytes 27748924 (26.4 MiB) | |
RX errors 0 dropped 0 overruns 0 frame 0 | |
TX packets 297903 bytes 35221025 (33.5 MiB) | |
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oct 13 21:12:27 kube-cluster-kube-master-feulivz7l4jn.dmz-pod2.lab kube-scheduler[791]: E1013 21:12:27.535112 00791 iowatcher.go:88] Unable to decode an event from the watch stream: got invalid watch event type: ERROR | |
Oct 13 21:12:27 kube-cluster-kube-master-feulivz7l4jn.dmz-pod2.lab kube-scheduler[791]: E1013 21:12:27.537346 00791 iowatcher.go:88] Unable to decode an event from the watch stream: got invalid watch event type: ERROR | |
Oct 13 21:12:27 kube-cluster-kube-master-feulivz7l4jn.dmz-pod2.lab kube-scheduler[791]: E1013 21:12:27.537475 00791 reflector.go:166] unexpected watch close - watch lasted less than a second and no items received | |
Oct 13 21:12:27 kube-cluster-kube-master-feulivz7l4jn.dmz-pod2.lab kube-scheduler[791]: E1013 21:12:27.537545 00791 reflector.go:105] watch of *api.Pod ended with error: very short watch | |
APISERVER STAUS | |
[root@kube-cluster-kube-master-feulivz7l4jn kolla]# systemctl status kube-apiserver | |
kube-apiserver.service - Kubernetes API Server | |
Loaded: loaded (/usr/lib/systemd/sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kube master does not work after instance is reboot or suspended/resumed. | |
#interfaces and route are missing | |
[root@kube-cluster-kube-master-wbzqtqmtpaxd ~]# ifconfig -a | |
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 | |
inet 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255 | |
inet6 fe80::f816:3eff:fe83:439b prefixlen 64 scopeid 0x20<link> | |
ether fa:16:3e:83:43:9b txqueuelen 1000 (Ethernet) | |
RX packets 101805 bytes 120493424 (114.9 MiB) | |
RX errors 0 dropped 0 overruns 0 frame 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@ku-c4wbbabtt7vk-0-qlm6pkcvfqvn-kube-node-chdwvjmga5qg ~]# journalctl -l -f -x -u linkmanager --no-tail | |
-- Logs begin at Tue 2014-10-14 05:16:19 UTC. -- | |
Oct 14 05:21:33 ku-c4wbbabtt7vk-0-qlm6pkcvfqvn-kube-node-chdwvjmga5qg systemd[1]: Starting Linkmanager VXLAN link builder... | |
-- Subject: Unit linkmanager.service has begun with start-up | |
-- Defined-By: systemd | |
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel | |
-- | |
-- Unit linkmanager.service has begun starting up. | |
Oct 14 05:21:33 ku-c4wbbabtt7vk-0-qlm6pkcvfqvn-kube-node-chdwvjmga5qg systemd[1]: Started Linkmanager VXLAN link builder. | |
-- Subject: Unit linkmanager.service has finished start-up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heat_template_version: 2013-05-23 | |
parameters: | |
# Note: You may want to remove this param and assoc resource and have Heat gen a unique name. | |
# Note: You may also not want to set a default. | |
ext_net_name: | |
type: string | |
description: name of ext net | |
default: ext-net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nova console-log --length 25 c1 | |
[ 0.548648] registered taskstats version 1 | |
[ 0.552676] Magic number: 2:648:222 | |
[ 0.553956] rtc_cmos 00:01: setting system clock to 2014-10-20 09:14:33 UTC (1413796473) | |
[ 0.556218] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found | |
[ 0.557804] EDD information not available. | |
[ 0.654036] Freeing unused kernel memory: 924k freed | |
[ 0.655666] Write protecting the kernel read-only data: 12288k | |
[ 0.662412] Freeing unused kernel memory: 1632k freed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use case: Boot instances to a provider flat network. Upstream physcial router is gateway. | |
# Host net info is manually assigned (through cloud-init). | |
# Current neutron model associated an address from this network even if dhcp is set to false. | |
# This causes confusion to the cloud user/admin becase the cloud-init manual address differs | |
# from address in nova list output. | |
# neutron net-list | |
+--------------------------------------+-----------+-------------------------------------------------------+ | |
| id | name | subnets | | |
+--------------------------------------+-----------+-------------------------------------------------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use Case: | |
Have docker-spotter look at events from the docker daemon to issue a pipework command. The events of interest are create/stop/restart/destroy container xyz. The pipework command creates a veth on a linux bridge named kbr-ex and attaches the other side of the veth (i.e. eth1) to the container. Since the container's eth1 interface is being used to bridge traffic, it does not use an IP address and therefore 0/0 is provided in the pipework command: | |
# /usr/bin/docker-spotter -e nova-network:start,restart:pipework:kbr-ex:{{.ID}}:0/0 -e nova-network:stop:echo:gone | |
This solution works very well when using a known name for a container. | |
The Challenge: | |
Kubernetes is being used to manage Docker containers. Kubernetes appends a hash to the Docker container name. Therefore, trying to use docker-spotter to match a specific name is not possible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@oso ~]# wget https://github.com/openshift/origin/releases/download/20141021-pre/openshift-origin-0.1-a4f33b1-linux-amd64.tar.gz | |
--2014-10-28 04:20:54-- https://github.com/openshift/origin/releases/download/20141021-pre/openshift-origin-0.1-a4f33b1-linux-amd64.tar.gz | |
Resolving github.com (github.com)... 192.30.252.129 | |
Connecting to github.com (github.com)|192.30.252.129|:443... connected. | |
HTTP request sent, awaiting response... 302 Found | |
Location: https://s3.amazonaws.com/github-cloud/releases/22442668/94648814-58ea-11e4-9a09-589c6a6d0c42.gz?response-content-disposition=attachment%3B%20filename%3Dopenshift-origin-0.1-a4f33b1-linux-amd64.tar.gz&response-content-type=application/octet-stream&AWSAccessKeyId=AKIAISTNZFOVBIJMK3TQ&Expires=1414470115&Signature=%2BZglwLSTFIsCyE532G%2BGzo0NOlc%3D [following] | |
--2014-10-28 04:20:55-- https://s3.amazonaws.com/github-cloud/releases/22442668/94648814-58ea-11e4-9a09-589c6a6d0c42.gz?response-content-disposition=attachment%3B%20filename%3Dopenshift-origin-0.1-a4f33b1-l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# kubecfg list pods | |
ID Image(s) Host Labels Status | |
---------- ---------- ---------- ---------- ---------- | |
osv3-master openshift/origin 10.10.10.4/ name=osv3 Waiting | |
# docker images | |
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | |
ryanj/gist-reveal.it latest 52f4e8508143 2 days ago 1.292 GB | |
kollaglue/fedora-rdo-neutron-server latest 6b091d27aaef 13 days ago 1.339 GB |
OlderNewer