Skip to content

Instantly share code, notes, and snippets.

View zimmertr's full-sized avatar

TJ Zimmerman zimmertr

  • Issaquah, Washington
View GitHub Profile
root@Eris:/home/debian# cat /var/log/cloud-init.log
2019-08-17 20:26:58,178 - util.py[DEBUG]: Cloud-init v. 18.3 running 'init-local' at Sat, 17 Aug 2019 20:26:58 +0000. Up 4.36 seconds.
2019-08-17 20:26:58,180 - main.py[DEBUG]: No kernel command line url found.
2019-08-17 20:26:58,180 - main.py[DEBUG]: Closing stdin.
2019-08-17 20:26:58,197 - util.py[DEBUG]: Writing to /var/log/cloud-init.log - ab: [644] 0 bytes
2019-08-17 20:26:58,201 - util.py[DEBUG]: Changing the ownership of /var/log/cloud-init.log to 0:4
2019-08-17 20:26:58,202 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance/boot-finished
2019-08-17 20:26:58,202 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/data/no-net
2019-08-17 20:26:58,205 - handlers.py[DEBUG]: start: init-local/check-cache: attempting to read from cache [check]
2019-08-17 20:26:58,205 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False)
root@Eris:/home/debian# cat /var/log/cloud-init-output.log
Cloud-init v. 18.3 running 'init-local' at Sat, 17 Aug 2019 20:26:58 +0000. Up 4.36 seconds.
Cloud-init v. 18.3 running 'init' at Sat, 17 Aug 2019 20:27:02 +0000. Up 8.74 seconds.
ci-info: +++++++++++++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++++++++++++
ci-info: +--------+------+------------------------------+---------------+--------+-------------------+
ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
ci-info: +--------+------+------------------------------+---------------+--------+-------------------+
ci-info: | eth0 | True | 192.168.40.230 | 255.255.255.0 | global | ae:63:41:e3:3d:48 |
ci-info: | eth0 | True | 192.168.40.101 | 255.255.255.0 | global | ae:63:41:e3:3d:48 |
ci-info: | eth0 | True | fe80::ac63:41ff:fee3:3d48/64 | . | link | ae:63:41:e3:3d:48 |
root@Eris:/home/debian# cat /dev/sr0
CD001LINUX cidata ��
)� GENISOIMAGE ISO 9660/HFS FILESYSTEM CREATOR (C) 1993 E.YOUNGDALE (C) 1997-2006 J.PEARSON/J.SCHILLING (C) 2006-2007 CDRKIT TEAM 2019081713264100�2019081713264100�00000000000000002019081713264100�
# Apply the metallb manifests to Kubernetes
kubectl apply -f https://raw.githubusercontent.com/google/metallb/v0.8.1/manifests/metallb.yaml
# Apply a metallb configuration to Kubernetes
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: ConfigMap
metadata:
namespace: metallb-system
name: config
root@ubnt:/home/tj# show ip bgp neighbors
BGP neighbor is 192.168.40.100, remote AS 64512, local AS 64512, internal link
BGP version 4, remote router ID 0.0.0.0
BGP state = Active
Last read , hold time is 180, keepalive interval is 60 seconds
Received 0 messages, 0 notifications, 0 in queue
Sent 23 messages, 0 notifications, 0 in queue
Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds
For address family: IPv4 Unicast
1) Configure BGP on your router and configure each of your Kubernetes worker nodes as a neighbor. Remember the AS that you use. For example on my `Ubiquiti EdgeRouter Lite`
```
ssh tj@sol
configure
set protocols bgp 1 parameters router-id 192.168.1.1
set protocols bgp 1 neighbor 192.168.40.100 remote-as 1
set protocols bgp 1 neighbor 192.168.40.101 remote-as 1
set protocols bgp 1 neighbor 192.168.40.102 remote-as 1
set protocols bgp 1 redistribute static
root@sol:/home/tj# show ip bgp neighbors
BGP neighbor is 192.168.40.10, remote AS 1, local AS 1, internal link
BGP version 4, remote router ID 0.0.0.0
BGP state = Active
Last read , hold time is 180, keepalive interval is 60 seconds
Received 0 messages, 0 notifications, 0 in queue
Sent 22 messages, 0 notifications, 0 in queue
Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds
For address family: IPv4 Unicast
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] 01-resolver-resolv: applying...
[fix-attrs.d] 01-resolver-resolv: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 20-start.sh: executing...
stty: 'standard input': Inappropriate ioctl for device
::: Starting docker specific checks & setup for docker pihole/pihole
[centos@Pluto ~]$ nslookup
> pluto
Server: 192.168.1.10
Address: 192.168.1.10#53
Non-authoritative answer:
Name: pluto.sol.milkyway
Address: 192.168.1.170
> ceres
Server: 192.168.1.10
$TTL 604800
@ IN SOA io.sol.milkyway. admin.sol.milkyway. (
12 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
; NS Records
IN NS io.sol.milkyway.
; A Records