Ciprian Hacman
68b4611066
Clean up kubelet networking flags for dockershim
...
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-01-19 17:36:18 +02:00
Ciprian Hacman
bf82a8f260
Update pause image to v3.6
...
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-01-19 13:00:36 +02:00
justinsb
45ad8b50ae
Enhance AddHostPathMapping to support a fluent style
...
This allows for the helper to be used in more places.
2021-12-31 13:26:12 -05:00
Kubernetes Prow Robot
47e6acd09f
Merge pull request #13039 from olemarkus/kube-proxy-label
...
Add managed-by label to static kube-proxy pods
2021-12-27 16:26:18 -08:00
Ole Markus With
8794b84368
Add managed-by label to static kube-proxy pods
2021-12-27 17:23:28 +01:00
Ole Markus With
4a1e43526f
Kube components log to stdout
2021-12-27 14:59:06 +01:00
Kubernetes Prow Robot
2f31054e19
Merge pull request #13007 from hakman/skip_non-masquerade-cidr
...
Use kubelet --non-masquerade-cidr only for Docker with kubenet
2021-12-21 18:49:36 -08:00
Kubernetes Prow Robot
28dc7d2815
Merge pull request #12917 from olemarkus/cgroups
...
Create cgroups for kube and runtime if configured
2021-12-20 12:53:33 -08: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
Ole Markus With
166860b668
Create cgroups for kube and runtime if configured
2021-12-20 13:36:45 +01:00
Ciprian Hacman
cb6d424675
Use kubelet --non-masquerade-cidr only for Docker with kubenet
2021-12-20 08:47:02 +02: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
John Gardiner Myers
c5e1dea184
Remove code for no-longer-supported k8s version
2021-12-11 16:30:51 -08:00
John Gardiner Myers
ed5eb8c034
hack/update-expected.sh
2021-12-11 15:50:46 -08:00
John Gardiner Myers
63955f84d9
Bump unsupported k8s version for tests
2021-12-11 15:50:46 -08:00
Kubernetes Prow Robot
c073ff595b
Merge pull request #12923 from justinsb/nodeup_store_cloudprovider
...
nodeup: store the CloudProvider in the context
2021-12-11 08:37:57 -08:00
justinsb
03cbb0381b
tests: Improve logging on test failure
...
I encountered a test failure that was hard to track down; this
additional logging on failure helped me figure it out.
2021-12-11 09:17:08 -05: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
Ole Markus With
2088849768
Do not set insecure port on k8s 1.20+
2021-12-11 12:44:56 +01:00
Kai Lueke
d93033ae75
Simplify Flatcar containerd exec command
...
The containerd command used in
https://github.com/kubernetes/kops/pull/12177 is a modification from
the torcx containerd unit. However, how torcx starts containerd is a
implementation detail and it's better to not hardcode torcx in case it
isn't used anymore.
Change the ExecStard command to use /usr/bin/containerd directly,
making it simpler and more future-proof.
2021-12-06 14:07:39 +01:00
Kubernetes Prow Robot
f7e66049d6
Merge pull request #12862 from johngmyers/instanceid-nodename
...
Use instance ID as node name when AWS CCM supports it
2021-12-05 14:58:32 -08:00
justinsb
4cf52d0e51
GCE: Support kops-controller, including in gossip mode
...
We discover the kops-controller in gossip mode using seeding code that
calls into the GCE API, just like gossip itself does.
We refactor the gossip code into a shared gcediscovery library with
minimal dependencies.
2021-12-04 11:51:41 -05:00
Kubernetes Prow Robot
576dc1946a
Merge pull request #12883 from hakman/k8s-1.23.0-rc.0
...
Update k8s dependencies to v1.23.0-rc.0
2021-12-03 20:48:33 -08:00
Ciprian Hacman
1f5a814d3a
Replace Handler with ProbeHandler for container probes
2021-12-03 22:57:43 +02:00
Ciprian Hacman
e19a1bbad9
Remove support for RHEL/CentOS 7
2021-12-03 21:40:10 +02:00
Ciprian Hacman
45094241f6
Remove support for Ubuntu 16.04
2021-12-03 21:28:12 +02:00
Ciprian Hacman
ea7df00719
Run hack/update-gofmt.sh
2021-12-01 22:39:50 +02:00
John Gardiner Myers
73f164e229
Use instance ID as node name when AWS CCM supports it
2021-11-30 17:54:54 -08:00
Ole Markus With
f2f9b9dcbb
Determine hostnameOverride entirely in nodeup instead of passing in cloud placeholders from cloudup
2021-11-30 13:29:54 +01:00
Ole Markus With
91b40385e6
Remove redundant evaluation of hostnameOverride
...
The override is already resolved in upup/pkg/fi/nodeup/command.go
2021-11-30 11:22:02 +01:00
John Gardiner Myers
ef754ce71f
Make requests and limits be *resource.Quantity
2021-11-29 22:50:31 -08:00
Kubernetes Prow Robot
2b059a06d3
Merge pull request #12844 from bwagner5/metadata-hostname
...
Use AWS metadata to retrieve local-hostname in nodeup
2021-11-27 07:10:41 -08:00
Brandon
652eea951c
update bazel
2021-11-26 23:33:51 -06:00
Brandon
4bc48fc7b6
use metadata to retrieve instance hostname in nodeup
2021-11-26 19:24:04 -06:00
John Gardiner Myers
e4bad43098
Reverse the sense of hook enablement in v1alpha3
2021-11-25 18:45:13 -08:00
Kubernetes Prow Robot
0e56286aa3
Merge pull request #12816 from johngmyers/rename-fields-2
...
Rename fields to fit acronym conventions
2021-11-24 23:14:33 -08:00
John Gardiner Myers
03157c5894
hack/update-expected.sh
2021-11-24 17:46:00 -08:00
Kubernetes Prow Robot
a8289da46e
Merge pull request #12789 from WeTransfer/dnsopt
...
Add support for --dns flag in Docker config
2021-11-24 08:18:20 -08:00
John Gardiner Myers
b9ac79ec6e
Rename fields in v1alpha3 networking API to fit acronym convention
2021-11-22 08:07:55 -08:00
John Gardiner Myers
f4d2cb0437
Rename fields in v1alpha3 keyset API to fit acronym convention
2021-11-22 08:07:55 -08:00
John Gardiner Myers
f65ba3d9cd
Rename fields in v1alpha3 componentconfig API to fit acronym convention
2021-11-21 16:16:32 -08:00
John Gardiner Myers
5a42c10fd3
Rename fields in v1alpha3 cluster API to fit acronym convention
2021-11-21 16:16:32 -08:00
Jeff Wolski
a9ecfa47b5
Add support for --dns flag in Docker config
...
This commit adds support for the --dns flag which is provided as a
Docker daemon startup flag. The flag is used to set the IP address of
the DNS server that the daemon injects into containers. Multiple --dns
flags are supported.
2021-11-19 10:02:12 +01:00
Kubernetes Prow Robot
6c6ea761b0
Merge pull request #12712 from rifelpet/kube-proxy-go-runner
...
Migrate kube-proxy manifest to use go-runner for logging
2021-11-18 06:15:02 -08:00
Kubernetes Prow Robot
2c9183509d
Merge pull request #12699 from zetaab/hostnamesuffix
...
Add ingress hostname suffix configurable to kOps
2021-11-16 07:13:27 -08:00
Ole Markus With
bb490decb5
Do not return error when there is no error checking for cgroupfs
2021-11-15 11:15:55 +01:00
Kubernetes Prow Robot
0176f079e7
Merge pull request #12726 from johngmyers/revert-leader-migration
...
Revert leader migration
2021-11-12 22:50:48 -08:00
John Gardiner Myers
561b562a65
Revert "Update automatically generated files"
...
This reverts commit 3d5d5b38d6 .
2021-11-12 22:07:18 -08:00
Eng Zer Jun
425173ae9f
refactor: move from io/ioutil to io and os packages
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-11-12 15:37:18 +08:00
Peter Rifel
90d9b4e54e
Migrade kube-proxy manifest to use go-runner for logging
2021-11-11 17:14:40 -06:00