Commit Graph

535 Commits

Author SHA1 Message Date
jinxu
0064010cdd Promote Local storage capacity isolation feature to GA
This change is to promote local storage capacity isolation feature to GA

At the same time, to allow rootless system disable this feature due to
unable to get root fs, this change introduced a new kubelet config
"localStorageCapacityIsolation". By default it is set to true. For
rootless systems, they can set this configuration to false to disable
the feature. Once it is set, user cannot set ephemeral-storage
request/limit because capacity and allocatable will not be set.

Change-Id: I48a52e737c6a09e9131454db6ad31247b56c000a
2022-08-02 23:45:48 -07:00
Jordan Liggitt
a44192b955 Remove PodSecurityPolicy cluster config 2022-05-04 16:00:56 -04:00
Jordan Liggitt
3e9cdf6193 Fix local-up-cluster for running only an API server 2022-04-03 22:28:30 -04:00
Davanum Srinivas
89b1accf4d
switch owner for CERT_DIR
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-29 20:04:33 -04:00
Davanum Srinivas
43bf01e080
bash verbose around admin-kube-aggregator.kubeconfig
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-28 18:08:16 -04:00
Davanum Srinivas
5b1086b897
Add some sudo in local-up-cluster.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-28 16:57:05 -04:00
Aditi Sharma
2e7b7832f8 Detect CNI installtion in local-up-cluster.sh
Signed-off-by: Aditi Sharma <adi.sky17@gmail.com>
2022-02-23 21:35:58 +05:30
Aditi Sharma
98b19dc2e8 Add support to install cni and enable cri
to run pull-kubernetes-local-e2e on containerd
we need to install cni and enable cri for docker
installed in kubekins image
2022-02-22 09:22:19 +05:30
Kubernetes Prow Robot
a07241e3e0
Merge pull request #107737 from gnufied/enable-node-restriction-default
Enable node restriction plugin by default for local clusters
2022-02-11 12:57:59 -08:00
Kubernetes Prow Robot
a3207872a3
Merge pull request #107481 from shu-mutou/deprecate-dashboard-addon
Remove dashboard cluster addon
2022-02-10 05:35:48 -08:00
Nick Turner
5adc316c13 Allow cloud controller manager flags to be set 2022-01-31 05:00:38 +00:00
Hemant Kumar
86fdba352d Always enable node restriction plugin by default 2022-01-24 16:08:36 -05:00
Shu Muto
e86ca57669 Remove dashboard from local-up-cluster.sh 2022-01-18 14:45:57 +09:00
Filip Křepinský
1bc56fc71e remove iptables cleanup from local-up-cluster.sh
- remove root warning
2022-01-11 14:15:31 +01:00
Aditi Sharma
e3b92ad551 Remove docker as container runtime for local-up
Signed-off-by: Aditi Sharma <adi.sky17@gmail.com>
2021-12-21 11:37:43 +05:30
kerthcet
75a255d2ed remove scheduler component config v1beta1
Signed-off-by: kerthcet <kerthcet@gmail.com>
2021-09-28 13:13:17 +08:00
Antonio Ojea
1846e42f7b alllocal-cluster-up: ow to specify the kubelet resolv.conf 2021-09-19 12:06:52 +02:00
Nick Turner
1887ddfc96 Make --configure-cloud-routes configurable in local-up-cluster
- Allow --configure-cloud-routes to be set in hack/local-up-cluster.sh
  using the env var $CONFIGURE_CLOUD_ROUTES.
2021-07-15 08:21:32 +00:00
Elana Hashman
642eff0c69
Rename NodeSwapEnabled flag to NodeSwap 2021-07-09 11:39:52 -07:00
Kubernetes Prow Robot
561959f682
Merge pull request #102823 from ehashman/kep-2400-swap
Alpha node swap support
2021-07-06 22:11:11 -07:00
Rishabh Jain
584eb5e947 Update local-cluster-up.sh to auto-detect darwin and skip kubelet and kube-proxy 2021-06-30 20:30:03 +05:30
Elana Hashman
9eeec68d67
Update local-up-cluster.sh swap warning 2021-06-29 11:57:35 -07:00
Jordan Liggitt
19db126d76 Exercise egress configuration in local-up-cluster 2021-06-15 09:53:07 -04:00
Jian Zeng
6c9ab10872
feat: set some auth flags for KCM and KS
Set `--authentication-kubeconfig` and `--authorization-kubeconfig` to enable
metrics to be grabbed from the secure port.

Signed-off-by: Jian Zeng <zengjian.zj@bytedance.com>
2021-05-12 22:47:53 +08:00
wangyysde
4467082ddb removed kubelet's flag chaos-chance 2021-04-13 14:09:55 +08:00
Davanum Srinivas
be631ec410
Move from kube-dns to core-dns for local-up-cluster.sh
Still leave room for folks to run the older kube-dns if they choose to,
but it's about time we move local-up to what we tell everyone to use!

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-04-01 09:50:18 -04:00
Kubernetes Prow Robot
6572fe4d90
Merge pull request #100550 from dims/add-new-iptables-rule-for-local-up-cluster.sh
Add new iptables rule for local-up-cluster.sh
2021-03-29 13:24:09 -07:00
Kubernetes Prow Robot
e33a80bf2a
Merge pull request #100544 from dims/set-some-kube-proxy-params-for-local-up-cluster
Set some kube-proxy parameters for local-up-cluster.sh
2021-03-29 13:23:57 -07:00
Davanum Srinivas
44d143f6e1
Add new iptables rule for local-up-cluster.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-28 11:19:02 -04:00
Davanum Srinivas
91ca1b12bb
Set jwks uri in local-up-cluster.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-25 17:09:58 -04:00
Davanum Srinivas
5238a8675d
Set some kube-proxy parameters for local-up-cluster.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-24 15:42:39 -04:00
jornshen
da808767b7 local-up-cluster kubelet option opening readonly port 2020-12-02 09:46:24 +08:00
Kubernetes Prow Robot
26f09b77a8
Merge pull request #96028 from masap/local_up_cluster2
local-up-cluster.sh: Pass CLUSTER_CIDR to kube-proxy
2020-11-10 07:17:00 -08:00
Kubernetes Prow Robot
ff225efc10
Merge pull request #96095 from masap/local_up_cluster4
local-up-cluster.sh: Use config file instead of flags for kubelet
2020-11-04 13:25:30 -08:00
Masashi Honma
29c9fb6102 local-up-cluster.sh: Use config file instead of flags for kubelet
Because /tmp/kubelet.log shows trailing log twice.

Flag --address has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --rotate-certificates has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --feature-gates has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --cpu-cfs-quota has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --enable-controller-attach-detach has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --cgroups-per-qos has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --cgroup-driver has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --cgroup-root has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --eviction-hard has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --eviction-soft has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --eviction-pressure-transition-period has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --pod-manifest-path has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --fail-swap-on has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --authorization-mode has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --authentication-token-webhook has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --client-ca-file has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --cluster-dns has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --cluster-domain has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --runtime-request-timeout has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Flag --port has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
2020-11-04 07:42:31 +09:00
Masashi Honma
0cfb6a16e7 local-up-cluster.sh: Remove ineffective parameters
Because kube-apiserver shows these warnings, this patch removes parameters
which has no effect.

Flag --insecure-bind-address has been deprecated, This flag has no effect now and will be removed in v1.24.
Flag --insecure-port has been deprecated, This flag has no effect now and will be removed in v1.24.
2020-10-31 16:04:32 +09:00
Kubernetes Prow Robot
3662e1e344
Merge pull request #96025 from haircommander/fix-API_PORT
hack/local-up-cluster.sh: fix API_PORT
2020-10-29 21:04:15 -07:00
Masashi Honma
181a724dc3 local-up-cluster.sh: Pass CLUSTER_CIDR to kube-proxy
This patch fixes the local-up-cluster.sh to pass CLUSTER_CIDR to kube-proxy.
Previously, CLUSTER_CIDR was passed only to controller manager and cloud
controller manager.
2020-10-30 09:50:02 +09:00
Peter Hunt
174548659f hack/local-up-cluster.sh: fix API_PORT
commit kubernetes/kubernetes@cfc2b33 causes a local cluster to not come up because it sets the default insecure port to 8080, which is no longer valid

Signed-off-by: Peter Hunt <pehunt@redhat.com>
2020-10-29 17:17:58 -04:00
Masashi Honma
8e84f3d78d local-up-cluster.sh: Pass SERVICE_CLUSTER_IP_RANGE to controller manager
Previously, SERVICE_CLUSTER_IP_RANGE was passed only to kube-apiserver.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
2020-10-29 17:47:19 +09:00
jayunit100
aefe930562 support multiple bind records (fie nodelocaldns test regression), by
first replacing PILLAR_ and then replacing other vars.
2020-10-16 14:28:55 -04:00
Kubernetes Prow Robot
c1e5e6a556
Merge pull request #93836 from jayunit100/salt_cleanup_92835
remove __pillar__ refs
2020-10-11 17:58:47 -07:00
Kubernetes Prow Robot
100fe77b38
Merge pull request #86582 from mlmhl/local-up-cluster
do not wait for node ready when starting kube-proxy in 'nokubelet' mode
2020-09-22 12:21:09 -07:00
Hui Kang
8f2c29635c Fix minor comment in a script
The variable API_HOST is defined below the comment

Signed-off-by: Hui Kang <kangh@us.ibm.com>
2020-09-10 20:53:46 +00:00
jay vyas
1693c111be Getting rid of the Salt DNS replacements, addded / back. 2020-08-30 09:11:27 +00:00
Kubernetes Prow Robot
908847c01e
Merge pull request #91526 from maciaszczykm/dashboard-v2.0.1
Bump Dashboard to v2.0.1
2020-06-30 05:28:06 -07:00
Kubernetes Prow Robot
6dbb92de3d
Merge pull request #91504 from pohly/local-up-cluster-snapshotter
local-up-cluster.sh: install CSI snapshotter
2020-06-03 07:30:18 -07:00
Patrick Ohly
2a31764ba7 local-up-cluster.sh: install CSI snapshotter
This cluster add-on is required for snapshotting of CSI volumes and
must be installed when bringing up a cluster because CSI driver
installations depend on that.

It is unclear how many users of the script need CSI snapshotting,
therefore it is disabled by default (= the previous behavior).
2020-06-02 16:15:53 +02:00
Marcin Maciaszczyk
e5af792ad2 Bump Dashboard to v2.0.1 2020-05-28 13:08:53 +02:00
Rafal Wicha
852442c0ff Promote kubescheduler.config.k8s.io to v1betav1 2020-05-25 22:25:57 +01:00