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

[spin-operator] Quickstart Guide: error when creating "config/samples/shim-executor.yaml" #6

Open
bacongobbler opened this issue Feb 20, 2024 · 3 comments

Comments

@bacongobbler
Copy link
Contributor

When following the spin-operator quickstart guide, I hit this error on the last step:

><> kubectl apply -f config/samples/shim-executor.yaml
Error from server (InternalError): error when creating "config/samples/shim-executor.yaml": Internal error occurred: failed calling webhook "mspinappexecutor.kb.io": failed to call webhook: Post "[https://spin-operator-webhook-service.spin-operator-system.svc:443/mutate-core-spinoperator-dev-v1-spinappexecutor?timeout=10s](https://spin-operator-webhook-service.spin-operator-system.svc/mutate-core-spinoperator-dev-v1-spinappexecutor?timeout=10s)": no endpoints available for service "spin-operator-webhook-service"

After a short period of time, I re-ran the command and it worked. However I did want to point it out that it was something I saw while copying and pasting the commands in the guide.

@calebschoepp
Copy link

We might want to add something like kubectl wait --for=condition=Available --timeout=300s deployment/spin-operator-controller-manager -n spin-operator-system

@macolso
Copy link
Contributor

macolso commented Mar 12, 2024

@bacongobbler - can you confirm if you're still experiencing this issue?

@bacongobbler
Copy link
Contributor Author

bacongobbler commented Mar 12, 2024

I'm not hitting that specific error, but when I copied and pasted the commands as fast as the terminal would allow, the installation failed during the helm install step:

><> # Install Spin Operator with Helm
helm install spin-operator \
  --namespace spin-operator \
  --create-namespace \
  --version 0.0.2 \
  --wait \
  oci://ghcr.io/spinkube/charts/spin-operator
Pulled: ghcr.io/spinkube/charts/spin-operator:0.0.2
Digest: sha256:1b26618e7a2ca08cf9a2db6061fdf6e6d61f6846c4eb0d4534261ee822a7894d
Error: INSTALLATION FAILED: 2 errors occurred:
        * Internal error occurred: failed calling webhook "webhook.cert-manager.io": failed to call webhook: Post "https://cert-manager-webhook.cert-manager.svc:443/validate?timeout=30s": no endpoints available for service "cert-manager-webhook"
        * Internal error occurred: failed calling webhook "webhook.cert-manager.io": failed to call webhook: Post "https://cert-manager-webhook.cert-manager.svc:443/validate?timeout=30s": no endpoints available for service "cert-manager-webhook"

After uninstalling and reinstalling the chart (and the shim executor), the process succeeded.

I assume I hit a similar race condition issue where I attempted to install the spin-operator before cert-manager was up and running.

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

No branches or pull requests

3 participants