John Gardiner Myers
f5fc710d6c
Remove references to ClusterSpec from nodeup sysctls.go
2023-07-09 21:11:54 -07:00
justinsb
c89f434f1b
Only use node challenge on hetzner
...
DigitalOcean (and others) will follow shortly.
Also create a method for CloudProvider, so that we are more ambivalent
towards bootstrapping methods.
2023-05-06 08:57:21 -04:00
Šimon Mišenčík
4f7f5dff4e
Increase max_map_count in sysctls.go
2023-04-13 09:14:17 +02:00
John Gardiner Myers
cc49461849
Move several CNI tests to nodeup.Config
2023-01-15 23:11:58 -08:00
John Gardiner Myers
da881fb320
Move NonMasqueradeCIDR to nodeup.Config
2023-01-15 17:19:18 -08:00
John Gardiner Myers
b5eef1c129
Use NodeupConfig for kube-proxy config
2023-01-03 12:29:07 -08:00
John Gardiner Myers
b38c55a2b9
Simplify nodeup references to CloudProvider
2022-12-20 19:44:32 -08:00
John Gardiner Myers
7c3e32369a
Refactor Context into separate cloudup and nodeup types
2022-12-17 17:42:46 -08:00
Ole Markus With
30f1ba7922
Disable rp_filter on cilium hosts
2022-10-02 19:41:30 +02:00
Ole Markus With
a34e75b0e0
Always disable rp_filter when using cilium
2022-08-17 08:48:45 +02:00
Peter Rifel
569180f54b
Re-add net.bridge settings for flannel
...
This was originally only set on Centos 7 / RHEL 7 but we're experiencing similar issues on Amazon Linux 2
2022-04-27 20:45:25 -05:00
justinsb
8d7f4485db
staticcheck cleanup: fixup nodeup/pkg/model
...
These pop up in VSCode and are pretty simple to fix:
```
nodeup/pkg/model/cloudconfig_test.go:86:17: possible nil pointer dereference (SA5011)
nodeup/pkg/model/cloudconfig_test.go:83:5: this check suggests that the pointer can be nil
nodeup/pkg/model/cloudconfig_test.go:155:17: possible nil pointer dereference (SA5011)
nodeup/pkg/model/cloudconfig_test.go:152:5: this check suggests that the pointer can be nil
nodeup/pkg/model/sysctls.go:172:12: error strings should not be capitalized (ST1005)
nodeup/pkg/model/sysctls.go:184:12: error strings should not be capitalized (ST1005)
nodeup/pkg/model/volumes.go:59:11: error strings should not be capitalized (ST1005)
```
2021-12-20 10:36:54 -05:00
Robbie Lankford
b5b87b19af
remove ineffectual assignment; this codeblock should likely have been removed with commit e19a1bbad9
2021-12-12 18:16:42 -06:00
justinsb
8220211655
nodeup: store the CloudProvider in the context
...
This is a bit simpler than fetching it from the cluster every time,
and also can allow things like mixed-cloud clusters (in future).
2021-12-11 09:16:03 -05:00
Ciprian Hacman
e19a1bbad9
Remove support for RHEL/CentOS 7
2021-12-03 21:40:10 +02:00
Ciprian Hacman
d1375353b0
Enable Router Advertisements for Debian 11 on ens* interfaces
2021-10-31 15:16:10 +02:00
Ciprian Hacman
91e215de96
Enable Router Advertisements for Debian 11
2021-10-30 10:22:43 +03:00
Ciprian Hacman
290d3d3e3d
Remove unnecessary sysctl "net.ipv6.conf.all.accept_ra=2"
2021-10-02 08:07:04 +03:00
Ole Markus With
fed0c16085
Revert "Remove unneeded network related sysctls"
...
This reverts commit ce08ec68df
.
2021-09-25 08:24:47 +02:00
Ciprian Hacman
ce08ec68df
Remove unneeded network related sysctls
2021-09-22 06:51:10 +03:00
Ciprian Hacman
58fb2676eb
Fix kernel parameter for IPv6 forwarding
2021-09-05 09:35:35 +03:00
Ole Markus With
4ef0172ee9
Enable protect-kernel-defaults by default and set the correct sysctls in nodeup
2021-08-23 11:48:20 +02:00
Ole Markus With
ab596a49bc
Enable ipv6 forwarding and router announcements
2021-08-11 11:09:29 +02:00
Ciprian Hacman
d7f405f65a
Decrease default values for net.ipv4.tcp_rmem and net.ipv4.tcp_wmem
2021-06-25 21:27:56 +03:00
Ciprian Hacman
e68ee80a93
Move and rename the "distros" package
2020-08-17 07:25:43 +03:00
John Gardiner Myers
a25f9198d1
Move SysctlParameters into the NodeupConfig
2020-06-17 09:09:24 -07:00
Justin Santa Barbara
bb071bfb3a
Turn on flannel sysctl fixes on rhel7 as well
...
It looks like the same problems are occuring on rhel7, so turn on the
fixes there also.
2020-04-22 20:20:50 -04:00
Xiaoyu Zhong
afc54224aa
Fix net.bridge setting for Flannel on CentOS 7
2020-01-20 16:55:42 +08:00
Kubernetes Prow Robot
afb4ecb883
Merge pull request #7730 from ripta/custom-sysctls
...
Custom sysctl Parameters
2020-01-03 07:35:41 -08:00
Patrik Lundin
ad9448ac40
sysctls.go: Fix some comments
...
Comment for net.ipv4.tcp_tw_reuse from tcp(7).
2019-11-13 13:01:06 +01:00
Ripta Pasay
56ea75cc91
Include custom sysctl parameters when running the sysctl builder
...
(cherry picked from commit 6766f47c670b68d2bf1a13ef94a710bd48f10678)
2019-10-30 10:55:01 -07:00
mikesplain
9e55b8230a
Update copyright notices
...
Also cleans some white spaces
2019-09-09 14:47:51 -04:00
José Luis Ledesma
5064a54602
set net.ipv4.ip_local_reserved_ports to the KubeAPIServer ServiceNodePortRange parameter on nodeup
2019-01-15 16:25:28 +01:00
Rohith
c9db958696
- cleanup up elements, imports and comments
2018-06-20 09:26:31 +01:00
Justin Santa Barbara
7fa4c28b1b
Ensure iptables forwarding is enabled
...
Docker 1.13 changed how it set up iptables in a way that broke
forwarding.
We previously got away with it because we set the ip_forward sysctl,
which meant that docker wouldn't change the rule. But if we're using an
image that preinstalled docker, docker might have already reconfigured
iptables before we run, and we didn't set it back.
We now set it back.
https://github.com/kubernetes/kubernetes/issues/40182
2017-11-30 20:29:32 -05:00
Steele Clifton-Berry
eb387ac4c6
Also increase fs.inotify.max_user_watches from default.
2017-07-13 15:50:53 +10:00
Steele Clifton-Berry
67e4e0f111
Increase fs.inotify.max_user_instances limit. Fixes #2912
2017-07-12 16:35:19 +10:00
Justin Santa Barbara
d2df318ecc
Move CloudProvider to kops API
...
This avoids a circular reference when breaking up the fi package
2017-06-17 16:27:07 -04:00
andrewsykim
c2e3717df2
remove setting nf_conntrack_max in nodeup
2017-03-28 21:40:19 -04:00
Justin Santa Barbara
b9204e9911
Initial Container-Optimized OS support
...
Add initial support for google's container-optimized OS (available on
GCE).
2017-03-20 23:47:37 -04:00
Manuel de Brito Fontes
572e2ab53e
Increase conntrack table size using sysctl
2017-02-08 12:14:41 -03:00
Justin Santa Barbara
17f54fefb7
Clean up sysctls
...
Remove duplicate key; add missing blank line
2017-01-09 00:30:47 -05:00
Justin Santa Barbara
5b3524cb80
Set default sysctls
2017-01-04 00:08:56 -05:00