Ciprian Hacman
30404d64a2
Run hack/update-expected.sh
...
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-03-18 09:01:59 +02:00
John Gardiner Myers
cac727c357
Make cloudProvider a struct in v1alpha3 API
2022-03-02 21:59:49 -08:00
John Gardiner Myers
70f7d9bdb2
Use function to get cloud provider from cluster spec
2022-03-02 21:59:47 -08:00
Vivek Jain
503b73747d
Append policy config map arguments only if UsePolicyConfigmap is true ( #13308 )
...
* check if UsePolicyConfigMap flag is true
* use suggested changes
Co-authored-by: Ciprian Hacman <ciprian@hakman.dev>
Co-authored-by: Ciprian Hacman <ciprian@hakman.dev>
2022-03-02 20:44:48 -08:00
Kubernetes Prow Robot
49776c1924
Merge pull request #13264 from h3poteto/iss-13245
...
Disable some flags in kube-apiserver when logging-format is not text
2022-02-17 01:05:36 -08:00
AkiraFukushima
313cc69127
Disable some flags in kube-apiserver when logging-format is not text
...
Disable these flags because these are not accepted.
* --logtostderr
* --alsologtostderr
* --log-file
2022-02-17 00:41:06 +09:00
Ciprian Hacman
5746093297
Install contained from the release package
...
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-02-14 11:27:26 +02:00
Ole Markus With
19bce47653
Fix nilpointer when graceful shutdown is not configured
2022-02-13 21:11:07 +01:00
Ciprian Hacman
dfd0f49594
Install runc from opencontainers/runc
...
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-02-12 14:02:43 +02:00
Ole Markus With
2625264fe5
Add support for graceful node shutdown
...
Update docs/cluster_spec.md
Co-authored-by: Ciprian Hacman <ciprianhacman@gmail.com>
2022-02-11 20:51:02 +01:00
Ole Markus With
66e3202f34
Fix CSI migration feature gates
...
We had a bug for KCM feature gate, and the scheuler and apiserver gate was missing entirely.
2022-02-04 15:29:28 +01:00
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