Talos --> k3s
This commit is contained in:
parent
5248d01bce
commit
417bdccf18
5 changed files with 3 additions and 79 deletions
|
@ -45,7 +45,7 @@ set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-ma
|
||||||
|
|
||||||
# k8s prod workers
|
# k8s prod workers
|
||||||
set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-mapping nenya ip-address '10.1.1.41'
|
set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-mapping nenya ip-address '10.1.1.41'
|
||||||
set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-mapping nenya mac-address 'c8:1f:66:10:4d:b9'
|
set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-mapping nenya mac-address '00:a0:98:1a:5e:ed'
|
||||||
set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-mapping vilya ip-address '10.1.1.42'
|
set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-mapping vilya ip-address '10.1.1.42'
|
||||||
set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-mapping vilya mac-address 'c8:1f:66:10:51:d9'
|
set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-mapping vilya mac-address 'c8:1f:66:10:51:d9'
|
||||||
set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-mapping gollum ip-address '10.1.1.43'
|
set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-mapping gollum ip-address '10.1.1.43'
|
||||||
|
@ -65,8 +65,6 @@ set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-ma
|
||||||
# VMs
|
# VMs
|
||||||
set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-mapping tulkas ip-address '10.1.1.53'
|
set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-mapping tulkas ip-address '10.1.1.53'
|
||||||
set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-mapping tulkas mac-address '26:82:2F:16:7A:36'
|
set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-mapping tulkas mac-address '26:82:2F:16:7A:36'
|
||||||
set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-mapping qbee ip-address '10.1.1.55'
|
|
||||||
set service dhcp-server shared-network-name SERVERS subnet 10.1.1.0/24 static-mapping qbee mac-address '00:a0:98:00:a6:72'
|
|
||||||
|
|
||||||
|
|
||||||
# k8s prod masters
|
# k8s prod masters
|
||||||
|
|
1
containers/.gitignore
vendored
1
containers/.gitignore
vendored
|
@ -7,6 +7,5 @@
|
||||||
!/bind/
|
!/bind/
|
||||||
!/dnsdist/
|
!/dnsdist/
|
||||||
!/haproxy/
|
!/haproxy/
|
||||||
!/haproxy-k3s/
|
|
||||||
!/unifi/
|
!/unifi/
|
||||||
!/vector-agent/
|
!/vector-agent/
|
||||||
|
|
9
containers/haproxy-k3s/.gitignore
vendored
9
containers/haproxy-k3s/.gitignore
vendored
|
@ -1,9 +0,0 @@
|
||||||
# Ignore everything
|
|
||||||
/*
|
|
||||||
|
|
||||||
# Track certain files and directories
|
|
||||||
!.gitignore
|
|
||||||
|
|
||||||
!/config/
|
|
||||||
/config/*
|
|
||||||
!/config/haproxy.cfg
|
|
|
@ -1,48 +0,0 @@
|
||||||
#---------------------------------------------------------------------
|
|
||||||
# Global settings
|
|
||||||
#---------------------------------------------------------------------
|
|
||||||
global
|
|
||||||
log /dev/log local0
|
|
||||||
log /dev/log local1 notice
|
|
||||||
daemon
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------
|
|
||||||
# common defaults that all the 'listen' and 'backend' sections will
|
|
||||||
# use if not designated in their block
|
|
||||||
#---------------------------------------------------------------------
|
|
||||||
defaults
|
|
||||||
mode http
|
|
||||||
log global
|
|
||||||
option httplog
|
|
||||||
option dontlognull
|
|
||||||
option http-server-close
|
|
||||||
option forwardfor except 127.0.0.0/8
|
|
||||||
option redispatch
|
|
||||||
retries 3
|
|
||||||
timeout http-request 10s
|
|
||||||
timeout queue 20s
|
|
||||||
timeout connect 10s
|
|
||||||
timeout client 1h
|
|
||||||
timeout server 1h
|
|
||||||
timeout http-keep-alive 10s
|
|
||||||
timeout check 10s
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------
|
|
||||||
# apiserver frontend which proxys to the control plane nodes
|
|
||||||
#---------------------------------------------------------------------
|
|
||||||
frontend k8s_apiserver
|
|
||||||
bind *:6443
|
|
||||||
mode tcp
|
|
||||||
option tcplog
|
|
||||||
default_backend k8s_controlplane
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------
|
|
||||||
# round robin balancing for apiserver
|
|
||||||
#---------------------------------------------------------------------
|
|
||||||
backend k8s_controlplane
|
|
||||||
option httpchk GET /healthz
|
|
||||||
http-check expect status 200
|
|
||||||
mode tcp
|
|
||||||
option ssl-hello-chk
|
|
||||||
balance roundrobin
|
|
||||||
server worker2 10.1.1.55:6443 check
|
|
|
@ -36,12 +36,6 @@ frontend k8s_apiserver
|
||||||
option tcplog
|
option tcplog
|
||||||
default_backend k8s_controlplane
|
default_backend k8s_controlplane
|
||||||
|
|
||||||
frontend talos_apiserver
|
|
||||||
bind *:50000
|
|
||||||
mode tcp
|
|
||||||
option tcplog
|
|
||||||
default_backend talos_controlplane
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
# round robin balancing for apiserver
|
# round robin balancing for apiserver
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
|
@ -54,13 +48,3 @@ backend k8s_controlplane
|
||||||
server worker1 10.1.1.61:6443 check
|
server worker1 10.1.1.61:6443 check
|
||||||
server worker2 10.1.1.62:6443 check
|
server worker2 10.1.1.62:6443 check
|
||||||
server worker3 10.1.1.63:6443 check
|
server worker3 10.1.1.63:6443 check
|
||||||
|
|
||||||
backend talos_controlplane
|
|
||||||
option httpchk GET /healthz
|
|
||||||
http-check expect status 200
|
|
||||||
mode tcp
|
|
||||||
option ssl-hello-chk
|
|
||||||
balance roundrobin
|
|
||||||
server worker1 10.1.1.61:50000 check
|
|
||||||
server worker2 10.1.1.62:50000 check
|
|
||||||
server worker3 10.1.1.63:50000 check
|
|
||||||
|
|
Reference in a new issue