-
Notifications
You must be signed in to change notification settings - Fork 126
Upgrade k8s to v1.32.0 and kind to v0.27.0 #2502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The builds are failing with: kind v0.27.0 go1.23.6 linux/amd64
/opt/buildkite-agent/builds/bk-agent-prod-gcp-1743440530189926369/elastic/elastic-package/bin/kind
/opt/buildkite-agent/builds/bk-agent-prod-gcp-1743440530189926369/elastic/elastic-package/bin/kubectl: line 1: syntax error near unexpected token `<'
/opt/buildkite-agent/builds/bk-agent-prod-gcp-1743440530189926369/elastic/elastic-package/bin/kubectl: line 1: `<?xml version='1.0' encoding='UTF-8'?><Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Details>No such object: kubernetes-release/release/v1.32.0/bin/linux/amd64/kubectl</Details></Error>' Looks like we are relying on a public GCS bucket to download releases, that is an implementation detail of the k8s binary releases and with v1.32 this no longer works. See kubernetes/kubernetes#127796. We have to change this to use |
/test |
@mrodm I'm having a bit of trouble with the CI, seems like kube state metrics is not starting properly: 2025/04/01 20:23:41 DEBUG Error received when checking status of resource kube-state-metrics. Error: 'client rate limiter Wait returned an error: context deadline exceeded', Resource details: 'Resource: "/v1, Resource=Services", GroupVersionKind: "/v1, Kind=service" Any tips on how to go about debugging this? |
Setting the "--image" parameter is the same done in the integrations repository.
This is unexpected, since the tests run in the PR (elastic/integrations#13365) in the integrations repository finished successfully. @mauri870 Are the definitions in the I've tried to run it locally with these commands (installing the specified versions of kind and kubectl of this PR): kind create cluster --config scripts/kind-config.yaml
cd test/packages/with-kind/kubernetes
elastic-package build -v
elastic-package stack up -v -d
elastic-package test system -v --data-streams state_pod This will try to create the corresponding resources in the kind cluster. Looking at the pods created there is one in ImagePullBackOff:
Running
I've found that this image was updated in this PR elastic/integrations#6310 to be Trying updating the docker image here 054acec |
@@ -90,7 +90,7 @@ fi | |||
|
|||
if [ "${PACKAGE_TEST_TYPE:-other}" == "with-kind" ]; then | |||
# Boot up the kind cluster | |||
kind create cluster --config "$PWD/scripts/kind-config.yaml" | |||
kind create cluster --config "$PWD/scripts/kind-config.yaml" --image "kindest/node:${K8S_VERSION}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the command to be the same as in the integrations repository. This will ensure that the k8s node versions are the same as the one set in the environment variable.
@@ -16,7 +16,7 @@ spec: | |||
terminationGracePeriodSeconds: 10 | |||
containers: | |||
- name: nginx | |||
image: k8s.gcr.io/nginx-slim:0.8 | |||
image: docker.io/nginx:1.24.0-alpine-slim |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mauri870 Do you know if there could be other changes (from the package in the integrations repository) that should be applied in this package ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not aware of any additional changes.
@@ -21,7 +21,7 @@ spec: | |||
spec: | |||
automountServiceAccountToken: true | |||
containers: | |||
- image: registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.7.0 | |||
- image: registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.15.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't find this definition in the integrations repo for the kubernetes
package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is applied with Kustomize here https://github.com/elastic/integrations/blob/619d4001668a27da69dd661e2f1300faef3bcccf/packages/kubernetes/_dev/deploy/k8s/kustomization.yaml#L10
💚 Build Succeeded
History
cc @mauri870 |
@mrodm Thanks for helping out with the CI issues! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
For https://github.com/elastic/ingest-dev/issues/4743