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

Script pods cannot run in environments that need annotations #1070

Open
1 task done
seanson opened this issue Feb 25, 2025 · 0 comments
Open
1 task done

Script pods cannot run in environments that need annotations #1070

seanson opened this issue Feb 25, 2025 · 0 comments

Comments

@seanson
Copy link

seanson commented Feb 25, 2025

Team

  • I've assigned a team label to this issue

What happened?

Running a health check in our Octopus Deploy cloud server with our deployment target configured with the Octopus Agent in-cluster. The health check pod is created on the target cluster successfully but will remain in Pending status forever as it is missing the Pod annotation that allows GCS Fuse to be used.

This would happen in any environment where a specific Pod annotation would be required.

Reproduction

Deploy an Octopus Tentacle to a Google Kubernetes Engine environment where you are using the GCS Fuse driver as your Persistent Volume option. Run a health check in your deployment target (this sounds like it should also affect any Script Pod).

Error and Stacktrace

[POD EVENT] FailedMount | MountVolume.SetUp failed for volume "octopus-agent-octopus-deploy-pvc" : rpc error: code = FailedPrecondition desc = failed to find the sidecar container in Pod spec (Count: 9)
The Kubernetes Pod 'octopus-script-slpfqrh5k2l2ju2gqfseg' is in the 'Pending' phase

More Information

Helm chart support for using custom Persistent Volumes is pending this Pull Request here: OctopusDeploy/helm-charts#381

Workaround

Potentially deploying our own MutatingWebhook could solve the issue by injecting the annotation but this feels like a useful thing for OD to solve in general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant