Project

General

Profile

Task #8447

Updated by Nico Schottelius about 4 years ago

h2. Setup 

 * -Create 3 Alpine nodes upgraded to edge, set hostnames- 
 ** -Resize to at least 2 cores per node- 
 * -Reserve networks- 
 ** 2a0a:e5c0:2:12::/64 = pods 
 ** 2a0a:e5c0:2:13::/64 = service 
 * -Configure routers to accept BGP session (done: in cdist)- 
 * Deploy kubernetes on first node 
 * Verify BGP peering 


 h2. OS commands 

 <pre> 

 alpine:~# echo node2 > /etc/hostname  
 echo "search k8s.ungleich.ch" >> /etc/resolv.conf 

 alpine:~# cat > /etc/apk/repositories << EOF 
  
 https://mirror.ungleich.ch/mirror/packages/alpine/edge/main 
 https://mirror.ungleich.ch/mirror/packages/alpine/edge/community 
 https://mirror.ungleich.ch/mirror/packages/alpine/edge/testing 
 EOF 

 alpine:~# apk upgrade 
 node1:~# apk add kubeadm kubelet docker 
 rc-update add kubelet default 
 rc-update add docker default 

 echo 'net.ipv6.conf.default.forwarding=1' > /etc/sysctl.d/k8s.conf 
 </pre> 

 h2. Take aways cluster config 

 * docker sets ipv4 forwarding, but not ipv6 (needs manual sysctl entry) 
 * Reachability by name (node1) w/o fqdn seems to be important <pre> 

 </pre> 

Back