mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-01 22:29:46 +00:00
* Integration Test: Startup (#5630) * New startup integration test * Add testing section to PR template * Move helper functions to direct k8s client calls Signed-off-by: Derek Nola <derek.nola@suse.com> * E2E Improvements and groundwork for test-pad tool (#5593) * Add rancher install sript, taints to cp/etcd roles * Revert back to generic/ubuntu2004, libvirt networking is unreliable on opensuse * Added support for alpine * Rancher deployment script * Refactor installType into function * Cleanup splitserver test Signed-off-by: Derek Nola <derek.nola@suse.com> * E2E: Dualstack test (#5617) * E2E dualstack test * Improve testing documentation Signed-off-by: Derek Nola <derek.nola@suse.com>
16 lines
365 B
Bash
16 lines
365 B
Bash
#!/bin/bash
|
|
ip4_addr=$1
|
|
ip6_addr=$2
|
|
os=$3
|
|
|
|
sysctl -w net.ipv6.conf.all.disable_ipv6=0
|
|
sysctl -w net.ipv6.conf.eth1.accept_dad=0
|
|
|
|
if [ -z "${os##*ubuntu*}" ]; then
|
|
netplan set ethernets.eth1.accept-ra=false
|
|
netplan set ethernets.eth1.addresses=["$ip4_addr"/24,"$ip6_addr"/64]
|
|
netplan apply
|
|
else
|
|
ip -6 addr add "$ip6_addr"/64 dev eth1
|
|
fi
|
|
ip addr show dev eth1 |