Compare commits
3 commits
testing-20
...
main
Author | SHA1 | Date | |
---|---|---|---|
b3c013e48f | |||
8a652ed78d | |||
b1aa8a8fb8 |
1 changed files with 13 additions and 1 deletions
|
@ -1,4 +1,16 @@
|
|||
class matrix::lb (
|
||||
) {
|
||||
$ips = lookup('sourceips', undef, undef, undef)
|
||||
$ips.each | String $ip | {
|
||||
if $::facts['sunet_nftables_enabled'] == 'yes' {
|
||||
sunet::nftables::allow { "nft_testip${ip}_ingress":
|
||||
port => 8443,
|
||||
from => $ip,
|
||||
}
|
||||
sunet::nftables::allow { "nft_testip${ip}_kubeapi":
|
||||
port => 16443,
|
||||
from => $ip,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue