Skip to content

Commit

Permalink
Merge pull request #1102 from wzshiming/bump/k8s-1.30
Browse files Browse the repository at this point in the history
Bump k8s to 1.30
  • Loading branch information
wzshiming authored May 23, 2024
2 parents dfa5971 + 3c59c43 commit b2c7b3a
Show file tree
Hide file tree
Showing 37 changed files with 182 additions and 207 deletions.
47 changes: 24 additions & 23 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module sigs.k8s.io/kwok

go 1.22
go 1.22.3

require (
github.com/Masterminds/sprig/v3 v3.2.3
Expand All @@ -11,7 +11,7 @@ require (
github.com/emicklei/go-restful/v3 v3.11.2
github.com/evanphx/json-patch/v5 v5.9.0
github.com/fsnotify/fsnotify v1.7.0
github.com/google/cel-go v0.17.7
github.com/google/cel-go v0.17.8
github.com/google/go-cmp v0.6.0
github.com/google/go-containerregistry v0.19.1
github.com/itchyny/gojq v0.12.14
Expand All @@ -26,21 +26,21 @@ require (
github.com/wzshiming/getch v0.0.0-20201023133301-8e758c21cf27
github.com/wzshiming/httpseek v0.0.0-20240122110938-0533c4b2d7c5
go.etcd.io/etcd/client/v3 v3.5.11
golang.org/x/sync v0.6.0
golang.org/x/sync v0.7.0
golang.org/x/sys v0.19.0
golang.org/x/term v0.18.0
k8s.io/api v0.29.1
k8s.io/apimachinery v0.29.1
k8s.io/apiserver v0.29.1
k8s.io/client-go v0.29.1
k8s.io/code-generator v0.29.1
k8s.io/cri-api v0.29.1
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00
k8s.io/kubelet v0.29.1
golang.org/x/term v0.19.0
k8s.io/api v0.30.1
k8s.io/apimachinery v0.30.1
k8s.io/apiserver v0.30.1
k8s.io/client-go v0.30.1
k8s.io/code-generator v0.30.1
k8s.io/cri-api v0.30.1
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340
k8s.io/kubelet v0.30.1
k8s.io/utils v0.0.0-20230726121419-3b25d923346b
sigs.k8s.io/controller-runtime v0.17.0
sigs.k8s.io/controller-tools v0.14.0
sigs.k8s.io/e2e-framework v0.3.0
sigs.k8s.io/controller-runtime v0.18.2
sigs.k8s.io/controller-tools v0.15.0
sigs.k8s.io/e2e-framework v0.4.0
sigs.k8s.io/kustomize/api v0.16.0
sigs.k8s.io/kustomize/kustomize/v5 v5.3.0
sigs.k8s.io/kustomize/kyaml v0.16.0
Expand Down Expand Up @@ -73,7 +73,7 @@ require (
github.com/gobuffalo/flect v1.0.2 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
Expand Down Expand Up @@ -120,14 +120,14 @@ require (
go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.26.0 // indirect
golang.org/x/crypto v0.21.0 // indirect
golang.org/x/crypto v0.22.0 // indirect
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.23.0 // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/net v0.24.0 // indirect
golang.org/x/oauth2 v0.12.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/tools v0.16.1 // indirect
golang.org/x/tools v0.20.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d // indirect
Expand All @@ -139,9 +139,10 @@ require (
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/apiextensions-apiserver v0.29.0 // indirect
k8s.io/gengo v0.0.0-20230829151522-9cce18d56c01 // indirect
k8s.io/klog/v2 v2.110.1 // indirect
k8s.io/apiextensions-apiserver v0.30.1 // indirect
k8s.io/component-base v0.30.1 // indirect
k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70 // indirect
k8s.io/klog/v2 v2.120.1 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/kustomize/cmd/config v0.13.0 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
Expand Down
106 changes: 50 additions & 56 deletions go.sum

Large diffs are not rendered by default.

28 changes: 13 additions & 15 deletions hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,23 @@ function gen() {
"${ROOT_DIR}/pkg/apis/action/v1alpha1"/zz_generated.*.go
echo "Generating deepcopy"
deepcopy-gen \
--input-dirs ./pkg/apis/internalversion/ \
--input-dirs ./pkg/apis/v1alpha1/ \
--input-dirs ./pkg/apis/config/v1alpha1/ \
--input-dirs ./pkg/apis/action/v1alpha1/ \
--trim-path-prefix sigs.k8s.io/kwok/pkg/apis \
--output-file-base zz_generated.deepcopy \
./pkg/apis/internalversion/ \
./pkg/apis/v1alpha1/ \
./pkg/apis/config/v1alpha1/ \
./pkg/apis/action/v1alpha1/ \
--output-file zz_generated.deepcopy.go \
--go-header-file ./hack/boilerplate/boilerplate.generatego.txt
echo "Generating defaulter"
defaulter-gen \
--input-dirs ./pkg/apis/v1alpha1/ \
--input-dirs ./pkg/apis/config/v1alpha1/ \
--input-dirs ./pkg/apis/action/v1alpha1/ \
--trim-path-prefix sigs.k8s.io/kwok/pkg/apis \
--output-file-base zz_generated.defaults \
./pkg/apis/v1alpha1/ \
./pkg/apis/config/v1alpha1/ \
./pkg/apis/action/v1alpha1/ \
--output-file zz_generated.defaults.go \
--go-header-file ./hack/boilerplate/boilerplate.generatego.txt
echo "Generating conversion"
conversion-gen \
--input-dirs ./pkg/apis/internalversion/ \
--trim-path-prefix sigs.k8s.io/kwok/pkg/apis \
--output-file-base zz_generated.conversion \
./pkg/apis/internalversion/ \
--output-file zz_generated.conversion.go \
--go-header-file ./hack/boilerplate/boilerplate.generatego.txt

rm -rf "${ROOT_DIR}/pkg/client"
Expand All @@ -73,7 +70,8 @@ function gen() {
--clientset-name versioned \
--input-base "" \
--input sigs.k8s.io/kwok/pkg/apis/v1alpha1 \
--output-package sigs.k8s.io/kwok/pkg/client/clientset \
--output-pkg sigs.k8s.io/kwok/pkg/client/clientset \
--output-dir ./pkg/client/clientset \
--go-header-file ./hack/boilerplate/boilerplate.generatego.txt \
--plural-exceptions="Logs:Logs,ClusterLogs:ClusterLogs"
}
Expand Down
2 changes: 1 addition & 1 deletion kustomize/crd/bases/kwok.x-k8s.io_attaches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: attaches.kwok.x-k8s.io
spec:
group: kwok.x-k8s.io
Expand Down
2 changes: 1 addition & 1 deletion kustomize/crd/bases/kwok.x-k8s.io_clusterattaches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: clusterattaches.kwok.x-k8s.io
spec:
group: kwok.x-k8s.io
Expand Down
2 changes: 1 addition & 1 deletion kustomize/crd/bases/kwok.x-k8s.io_clusterexecs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: clusterexecs.kwok.x-k8s.io
spec:
group: kwok.x-k8s.io
Expand Down
2 changes: 1 addition & 1 deletion kustomize/crd/bases/kwok.x-k8s.io_clusterlogs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: clusterlogs.kwok.x-k8s.io
spec:
group: kwok.x-k8s.io
Expand Down
2 changes: 1 addition & 1 deletion kustomize/crd/bases/kwok.x-k8s.io_clusterportforwards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: clusterportforwards.kwok.x-k8s.io
spec:
group: kwok.x-k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: clusterresourceusages.kwok.x-k8s.io
spec:
group: kwok.x-k8s.io
Expand Down
2 changes: 1 addition & 1 deletion kustomize/crd/bases/kwok.x-k8s.io_execs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: execs.kwok.x-k8s.io
spec:
group: kwok.x-k8s.io
Expand Down
2 changes: 1 addition & 1 deletion kustomize/crd/bases/kwok.x-k8s.io_logs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: logs.kwok.x-k8s.io
spec:
group: kwok.x-k8s.io
Expand Down
2 changes: 1 addition & 1 deletion kustomize/crd/bases/kwok.x-k8s.io_metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: metrics.kwok.x-k8s.io
spec:
group: kwok.x-k8s.io
Expand Down
2 changes: 1 addition & 1 deletion kustomize/crd/bases/kwok.x-k8s.io_portforwards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: portforwards.kwok.x-k8s.io
spec:
group: kwok.x-k8s.io
Expand Down
2 changes: 1 addition & 1 deletion kustomize/crd/bases/kwok.x-k8s.io_resourceusages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: resourceusages.kwok.x-k8s.io
spec:
group: kwok.x-k8s.io
Expand Down
2 changes: 1 addition & 1 deletion kustomize/crd/bases/kwok.x-k8s.io_stages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.15.0
name: stages.kwok.x-k8s.io
spec:
group: kwok.x-k8s.io
Expand Down
15 changes: 0 additions & 15 deletions pkg/apis/config/v1alpha1/zz_generated.defaults.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions pkg/apis/v1alpha1/zz_generated.defaults.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var (

// KubeVersion is the version of Kubernetes.
// It will be overwritten during the `make build` process.
KubeVersion = "1.29.0"
KubeVersion = "1.30.0"
KubeBinaryPrefix = "https://dl.k8s.io/release"
KubeBinaryUnofficialPrefix = "https://github.com/kwok-ci/k8s/releases/download"
KubeImagePrefix = "registry.k8s.io"
Expand Down
14 changes: 7 additions & 7 deletions site/content/en/docs/generated/kwokctl_create_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,31 @@ kwokctl create cluster [flags]
(default "https://github.com/kubernetes-sigs/kind/releases/download/v0.23.0/kind-linux-amd64")
--kind-node-image string Image of kind node, only for kind/kind-podman runtime
'${KWOK_KIND_NODE_IMAGE_PREFIX}/node:${KWOK_KUBE_VERSION}'
(default "docker.io/kindest/node:v1.29.0")
(default "docker.io/kindest/node:v1.30.0")
--kube-admission Enable admission for kube-apiserver, only for non kind/kind-podman runtime (default true)
--kube-apiserver-binary string Binary of kube-apiserver, only for binary runtime
(default "https://dl.k8s.io/release/v1.29.0/bin/linux/amd64/kube-apiserver")
(default "https://dl.k8s.io/release/v1.30.0/bin/linux/amd64/kube-apiserver")
--kube-apiserver-image string Image of kube-apiserver, only for docker/podman/nerdctl runtime
'${KWOK_KUBE_IMAGE_PREFIX}/kube-apiserver:${KWOK_KUBE_VERSION}'
(default "registry.k8s.io/kube-apiserver:v1.29.0")
(default "registry.k8s.io/kube-apiserver:v1.30.0")
--kube-apiserver-insecure-port uint32 Insecure port of the apiserver
--kube-apiserver-port uint32 Port of the apiserver (default random)
--kube-audit-policy string Path to the file that defines the audit policy configuration
--kube-authorization Enable authorization for kube-apiserver, only for non kind/kind-podman runtime (default true)
--kube-controller-manager-binary string Binary of kube-controller-manager, only for binary runtime
(default "https://dl.k8s.io/release/v1.29.0/bin/linux/amd64/kube-controller-manager")
(default "https://dl.k8s.io/release/v1.30.0/bin/linux/amd64/kube-controller-manager")
--kube-controller-manager-image string Image of kube-controller-manager, only for docker/podman/nerdctl runtime
'${KWOK_KUBE_IMAGE_PREFIX}/kube-controller-manager:${KWOK_KUBE_VERSION}'
(default "registry.k8s.io/kube-controller-manager:v1.29.0")
(default "registry.k8s.io/kube-controller-manager:v1.30.0")
--kube-controller-manager-port uint32 Port of kube-controller-manager given to the host, only for binary and docker/podman/nerdctl runtime
--kube-feature-gates string A set of key=value pairs that describe feature gates for alpha/experimental features of Kubernetes
--kube-runtime-config string A set of key=value pairs that enable or disable built-in APIs
--kube-scheduler-binary string Binary of kube-scheduler, only for binary runtime
(default "https://dl.k8s.io/release/v1.29.0/bin/linux/amd64/kube-scheduler")
(default "https://dl.k8s.io/release/v1.30.0/bin/linux/amd64/kube-scheduler")
--kube-scheduler-config string Path to a kube-scheduler configuration file
--kube-scheduler-image string Image of kube-scheduler, only for docker/podman/nerdctl runtime
'${KWOK_KUBE_IMAGE_PREFIX}/kube-scheduler:${KWOK_KUBE_VERSION}'
(default "registry.k8s.io/kube-scheduler:v1.29.0")
(default "registry.k8s.io/kube-scheduler:v1.30.0")
--kube-scheduler-port uint32 Port of kube-scheduler given to the host, only for binary and docker/podman/nerdctl runtime
--kubeconfig string The path to the kubeconfig file will be added to the newly created cluster and set to current-context (default "~/.kube/config")
--kwok-controller-binary string Binary of kwok-controller, only for binary runtime
Expand Down
6 changes: 3 additions & 3 deletions test/kwokctl/testdata/binary/create_cluster.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ mkdir -p <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pki
# Generate PKI to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pki
mkdir -p <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/etcd
# Download https://github.com/etcd-io/etcd/releases/download/v3.5.11/etcd-v3.5.11-<OS>-<ARCH>.<TAR> and extract etcd to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/etcd
# Download https://dl.k8s.io/release/v1.29.0/bin/<OS>/<ARCH>/kube-apiserver to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-apiserver
# Download https://dl.k8s.io/release/v1.29.0/bin/<OS>/<ARCH>/kube-controller-manager to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-controller-manager
# Download https://dl.k8s.io/release/v1.29.0/bin/<OS>/<ARCH>/kube-scheduler to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-scheduler
# Download https://dl.k8s.io/release/v1.30.0/bin/<OS>/<ARCH>/kube-apiserver to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-apiserver
# Download https://dl.k8s.io/release/v1.30.0/bin/<OS>/<ARCH>/kube-controller-manager to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-controller-manager
# Download https://dl.k8s.io/release/v1.30.0/bin/<OS>/<ARCH>/kube-scheduler to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-scheduler
# Download <ROOT_DIR>/bin/<OS>/<ARCH>/kwok to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kwok-controller
cat <<EOF ><ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/kubeconfig.yaml
apiVersion: v1
Expand Down
6 changes: 3 additions & 3 deletions test/kwokctl/testdata/binary/create_cluster_with_extra.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ mkdir -p <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pki
# Generate PKI to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pki
mkdir -p <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/etcd
# Download https://github.com/etcd-io/etcd/releases/download/v3.5.11/etcd-v3.5.11-<OS>-<ARCH>.<TAR> and extract etcd to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/etcd
# Download https://dl.k8s.io/release/v1.29.0/bin/<OS>/<ARCH>/kube-apiserver to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-apiserver
# Download https://dl.k8s.io/release/v1.29.0/bin/<OS>/<ARCH>/kube-controller-manager to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-controller-manager
# Download https://dl.k8s.io/release/v1.29.0/bin/<OS>/<ARCH>/kube-scheduler to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-scheduler
# Download https://dl.k8s.io/release/v1.30.0/bin/<OS>/<ARCH>/kube-apiserver to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-apiserver
# Download https://dl.k8s.io/release/v1.30.0/bin/<OS>/<ARCH>/kube-controller-manager to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-controller-manager
# Download https://dl.k8s.io/release/v1.30.0/bin/<OS>/<ARCH>/kube-scheduler to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-scheduler
# Download <ROOT_DIR>/bin/<OS>/<ARCH>/kwok to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kwok-controller
# Download https://github.com/prometheus/prometheus/releases/download/v2.49.1/prometheus-2.49.1.<OS>-<ARCH>.<TAR> and extract prometheus to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/prometheus
cat <<EOF ><ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/prometheus.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ touch <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/logs/audit.log
cp <ROOT_DIR>/test/kwokctl/audit-policy.yaml <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/audit.yaml
mkdir -p <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/etcd
# Download https://github.com/etcd-io/etcd/releases/download/v3.5.11/etcd-v3.5.11-<OS>-<ARCH>.<TAR> and extract etcd to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/etcd
# Download https://dl.k8s.io/release/v1.29.0/bin/<OS>/<ARCH>/kube-apiserver to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-apiserver
# Download https://dl.k8s.io/release/v1.30.0/bin/<OS>/<ARCH>/kube-apiserver to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-apiserver
cat <<EOF ><ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/apiserver-tracing-config.yaml
apiVersion: apiserver.config.k8s.io/v1alpha1
kind: TracingConfiguration
endpoint: 127.0.0.1:32762
samplingRatePerMillion: 1000000
EOF
# Download https://dl.k8s.io/release/v1.29.0/bin/<OS>/<ARCH>/kube-controller-manager to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-controller-manager
# Download https://dl.k8s.io/release/v1.29.0/bin/<OS>/<ARCH>/kube-scheduler to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-scheduler
# Download https://dl.k8s.io/release/v1.30.0/bin/<OS>/<ARCH>/kube-controller-manager to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-controller-manager
# Download https://dl.k8s.io/release/v1.30.0/bin/<OS>/<ARCH>/kube-scheduler to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/kube-scheduler
cp <ROOT_DIR>/test/kwokctl/scheduler-config.yaml <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/scheduler.yaml
cat <<EOF >><ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/scheduler.yaml
clientConnection:
Expand Down
Loading

0 comments on commit b2c7b3a

Please sign in to comment.