Ciprian Hacman
59b7653cc3
Update min versions for kOps v1.28
2023-06-20 08:11:21 +03:00
Jan Safranek
0d03095fda
Add SELinux support to containerd
...
Add cluster.Spec.Containerd.SELinuxEnabled field that enables SELinux in
containerd.
With SELinux enabled, all pods that use HostPath volumes must run with
SELinux label `spc_t`, otherwise SELinux denies the pods to touch the host
filesystem.
2023-06-19 15:20:08 +02:00
justinsb
ca67b1ca1e
Refactor: rename IsGossip -> UsesLegacyGossip
...
We want to be able to use "dns=none" (without peer-to-peer gossip)
even for clusters that have the k8s.local extension. These were
previously called "gossip clusters", but really that is an
implementation; what actually matters to users is that they don't rely
on writing records into a DNS zone (such as Route53).
2023-05-22 21:50:16 -04:00
justinsb
6bdbbc4fd4
nodeup: Use functional options pattern for HostPathMapping
...
This means that the object is not mutated after construction, making
it easier to do validity checks (such as whether we have mounted the
same path twice).
2023-05-11 10:16:30 -04:00
John Gardiner Myers
4179fcce58
Use NodeupConfig for KubernetesVersion
2023-01-03 22:16:20 -08:00
John Gardiner Myers
b5eef1c129
Use NodeupConfig for kube-proxy config
2023-01-03 12:29:07 -08:00
John Gardiner Myers
99d36bd9f2
Extract NodeupModelContext.APIInternalName()
2023-01-01 13:48:01 -08:00
John Gardiner Myers
8aeefe23ed
Use NodeupConfig for cluster name
2023-01-01 13:48:01 -08:00
John Gardiner Myers
7c3e32369a
Refactor Context into separate cloudup and nodeup types
2022-12-17 17:42:46 -08:00
John Gardiner Myers
235aa61594
v1alpha3: move networking fields under networking
2022-12-02 19:19:59 -08:00
Ciprian Hacman
d29812fc6e
Replace fi.Bool/Float*/Int*/StringValue() with fi.ValueOf
2022-11-19 03:45:23 +02:00
Ciprian Hacman
8f79c9bd68
Replace fi.Bool/Float*/Int*/String() with fi.PtrTo()
2022-11-19 03:45:22 +02:00
John Gardiner Myers
8473e8b2e7
Stop making MasterInternalName configurable
2022-11-16 22:06:02 -08:00
Ciprian Hacman
dc98c74428
Move Gossip check to cluster struct
2022-10-21 09:48:07 +03:00
Ciprian Hacman
85026145a1
Always infer gossip DNS from cluster name
2022-10-02 12:54:37 +03:00
Ciprian Hacman
57be0cbdfd
Remove unneeded kube-proxy service account
2022-06-10 14:03:16 +03:00
Peter Rifel
827326b860
Only rewrite to k8s.gcr.io until k8s 1.25
...
1.25 is when official images have been migrated to registry.k8s.io, so we only need to rewrite until 1.25
2022-06-06 20:20:42 -05:00
Ciprian Hacman
759172c3f0
Use k8s.gcr.io for k8s side-loaded images
...
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-03-23 12:15:57 +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
Ciprian Hacman
ea7df00719
Run hack/update-gofmt.sh
2021-12-01 22:39:50 +02:00
John Gardiner Myers
ef754ce71f
Make requests and limits be *resource.Quantity
2021-11-29 22:50:31 -08:00
Peter Rifel
90d9b4e54e
Migrade kube-proxy manifest to use go-runner for logging
2021-11-11 17:14:40 -06:00
Peter Rifel
3442f95d59
Revert "Migrade kube-proxy manifest to use go-runner for logging"
...
This reverts commit b0e585c751 .
2021-11-02 06:48:01 -05:00
Peter Rifel
b0e585c751
Migrade kube-proxy manifest to use go-runner for logging
2021-11-01 17:01:19 -05:00
Ciprian Hacman
904f21cd77
Remove previous implementation of pre-pulling container images
2021-06-20 23:01:52 +02:00
John Gardiner Myers
d3469d6ec2
Remove code for no-longer-supported k8s versions
2021-05-07 23:40:03 -07:00
Ole Markus With
df2f66e1e5
Make API servers provision themselves.
...
API servers also have access to secret store, so there is no need to go through kops-controller.
This lets API server only depend on etcd from the CP nodes, which should make it easier to scale out API servers under pressure
2021-04-23 06:59:15 +02:00
Ole Markus With
df4f429ceb
Apply suggestions from code review
...
Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
2021-04-19 07:25:42 +02:00
Ole Markus With
202e440920
Pre-pull cilium and kube-proxy in warming mode
2021-04-18 18:42:59 +02:00
Ciprian Hacman
07ffd665a7
Allow container runtime to run before BootstrapKubeconfig
2020-09-12 08:13:40 +03:00
John Gardiner Myers
8e43c1d637
Use kops-controller to issue kube-proxy cert
2020-08-16 23:36:42 -07:00
Peter Rifel
4d9f0128a3
Upgrade to klog2
...
This splits up the kubernetes 1.19 PR to make it easier to keep up to date until we get it sorted out.
2020-08-16 20:56:48 -05:00
Ciprian Hacman
70a3a2e978
ARM64 support - Update side-loading for multi-arch
2020-06-19 04:42:11 +03:00
John Gardiner Myers
6e9dc8fc0f
Remove code for unsupported k8s versions from nodeup
2020-01-12 19:30:34 -08:00
tanjunchen
7e25f9831d
nodeup/pkg/ pkg/ staticcheck
2019-12-31 15:03:39 +08:00
Peter Rifel
dbb74e76c4
Fix typo in KubeProxy model
...
very minor, but meant to ensure that KubeProxyBuilder satisfies the ModelBuilder interface
2019-12-27 19:38:32 -08:00
tanjunchen
a19fb935e4
fix-up static-check
2019-10-29 14:06:12 +08:00
Kubernetes Prow Robot
dd6b0314fc
Merge pull request #6897 from vainu-arto/set-priority-for-static-pods
...
Set priority for static pods
2019-07-12 00:41:07 -07:00
Justin SB
5f5f37a72c
Remove kube-proxy resource-container flag
...
Removed in https://github.com/kubernetes/kubernetes/pull/78294
(A k/k breaking change: `--resource-container=""` is now the default!)
2019-07-08 09:59:52 -04:00
Justin SB
fe487df586
Use klog logging from 1.15
...
klog can now support logging both to a file and to streams, so we get the output both in docker & logfiles.
A few gotchas:
* The output previously was all on stdout, now it on stderr. That is more correct
* If something writes to stdout or stderr outside of klog, it will no longer end up in the logfile.
* There's some oddities still to be ironed out about the flag syntax https://github.com/kubernetes/klog/issues/60
2019-05-10 00:17:30 -04:00
Arto Jantunen
48974521e1
Set priority classes for static pods
...
For the master pods (apiserver, controller manager, scheduler) this is
unlikely to ever matter (the masters aren't expected to run out of
resources and need to evict things) but evictions of kube-proxy from worker
nodes are easy to trigger in clusters with PodPriority enabled. Since these
are static pods the configuration is also somewhat difficult to change.
2019-05-09 16:03:08 +03:00
Justin SB
3e33ac7682
Change code from glog to klog
...
We don't call klog.InitFlags yet, because that will cause a flag
redefinition error until we get everyone to stop using glog. That
will happen when we update to k8s 1.13.
2019-05-06 12:54:51 -04:00
Derek Lemon -T (delemon - AEROTEK INC at Cisco)
4f0169bb79
codegen
2019-01-16 09:30:40 -07:00
Justin SB
26bd75aecb
Bulk spelling fixes
...
Experimenting with my own spelling checker, these are the typos it caught.
2018-12-20 17:43:56 -05:00
mooncake
55425e16ae
Fix some typos
...
Signed-off-by: mooncake <xcoder@tenxcloud.com>
2018-11-10 18:37:57 +08:00
Mike Splain
188824cba0
Add configurable conntrack settings
2018-07-18 12:11:30 -04:00
Rohith
c9db958696
- cleanup up elements, imports and comments
2018-06-20 09:26:31 +01:00