Skip to content
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

Octopus Kubernetes agent fails to upgrade via Octopus Server #8763

Closed
scme0 opened this issue May 3, 2024 · 2 comments
Closed

Octopus Kubernetes agent fails to upgrade via Octopus Server #8763

scme0 opened this issue May 3, 2024 · 2 comments
Assignees
Labels
kind/bug This issue represents a verified problem we are committed to solving

Comments

@scme0
Copy link

scme0 commented May 3, 2024

Severity

No response

Version

Introduced in 2024.2.6908

Latest Version

I could reproduce the problem in the latest build

What happened?

When attempting to upgrade the Kubernetes agent via Octopus, it shows a message saying that it can't be upgraded because it's running in a container.

This change introduced the issue: https://github.com/OctopusDeploy/OctopusDeploy/pull/24318

Reproduction

  1. Installed a version of the Kubernetes agent that is not the latest version
  2. Perform a health check
  3. Navigate to the Connectivity tab on the agent target
  4. Click "Upgrade to latest"
  5. The task will show the following message:
Screenshot 2024-05-03 at 10 48 19

Error and Stacktrace

No response

More Information

No response

Workaround

You can upgrade your Kubernetes agent manually by running the following helm command in a terminal with the appropriate Kubernetes context set:
helm upgrade --atomic --version '1.*.*' --namespace <namespace> <helm-release-name> oci://registry-1.docker.io/octopusdeploy/kubernetes-agent

@scme0 scme0 added the kind/bug This issue represents a verified problem we are committed to solving label May 3, 2024
@APErebus APErebus closed this as completed May 3, 2024
@octoreleasebot
Copy link

Release Note: Fix Kubernetes agents being unable to be updated

@Octobob
Copy link
Member

Octobob commented May 16, 2024

🎉 The fix for this issue has been released in:

Release stream Release
2024.2 2024.2.7550
2024.3+ all releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This issue represents a verified problem we are committed to solving
Projects
None yet
Development

No branches or pull requests

4 participants