GithubHelp home page GithubHelp logo

Comments (12)

RegisHubelia avatar RegisHubelia commented on May 19, 2024 1

That would make sense. I'll try this again and report back. Sorry the delay. The link you provided is for pod security policies. It's now depricated in favor of pod security standards in 1.25+ https://docs.rke2.io/security/pod_security_standards. Tough I'm not sure that it has something to do with that - it's probably more network-policies related. I'll try a few settings and get back to you.

from mariadb-operator.

mmontes11 avatar mmontes11 commented on May 19, 2024 1

Hey @ox1depl ! Is the mariadb-webhook Pods ready by the time you apply the manifests in the CI? I've seen the webhook server taking a bit longer to respond, even after the Pods are reported to be ready.

from mariadb-operator.

ox1depl avatar ox1depl commented on May 19, 2024 1

In fact, you can't see it on the cluster, but right after the operator deployment, the manifest is deployed and probably the webhook pod is not ready yet,
I added a simple sleep to check it and it is indeed as you say.
thank you ;) And forgive me for being off topic, the error was very similar.

from mariadb-operator.

mmontes11 avatar mmontes11 commented on May 19, 2024

Thanks for reporting @tirelibirefe !

it seems like it's a webhook misconfiguration, could you provide the following:

  • Kubernetes version:
  • mariadb-operator version:
  • Install method: helm, OLM or static manifests
  • Install flavour: minimal, recommended or custom

Thanks, will look into it when I have the details.

from mariadb-operator.

RegisHubelia avatar RegisHubelia commented on May 19, 2024

I'm having a similar issue... Basically, what I think happens here is that the webhook url doesn't contain the cluster domain (example: "cluster.local") - so the address isn't resolved. Checking if I can work around it.

from mariadb-operator.

RegisHubelia avatar RegisHubelia commented on May 19, 2024

Okay - so installing the controller in kube-system seems like it fixes it. I guess it has something to do with network policies on rke2 when project isolation is enabled in Rancher... Just a guess..

from mariadb-operator.

mmontes11 avatar mmontes11 commented on May 19, 2024

Thanks for your feedback @RegisHubelia !

I'm not familiar with RKE2, but it seems like they do configure NetworkPolicies by default:

Could you confirm that you have NetworkPolicies in the namespace where you initially have issues? It would be ideal if you could share them here.

If that was the case, we could do like cert-manager and create a NetworkPolicy inside of the helm chart to allow traffic to the webhook, something like this:

from mariadb-operator.

mmontes11 avatar mmontes11 commented on May 19, 2024

it's probably more network-policies related

I'm betting the same, drop a comment here when you find the time to debug 👍🏻

from mariadb-operator.

ox1depl avatar ox1depl commented on May 19, 2024

Hi. i have similar issue, when try deploy with gitlab-ci but i`ve got context deadline exceeded at the end, its related ?

k8s version: 1.26.6
k8s provisioner: kOps
Operator version: v0.18.0

Error from server (InternalError): error when creating "extras/mariadb.yaml": Internal error occurred: failed calling webhook "mmariadb.kb.io": failed to call webhook: Post "[https://mariadb-operator-webhook.platform.svc:443/mutate-mariadb-mmontes-io-v1alpha1-mariadb?timeout=10s](https://mariadb-operator-webhook.platform.svc/mutate-mariadb-mmontes-io-v1alpha1-mariadb?timeout=10s)": context deadline exceeded

But, when I manualy apply the same manifest with kubectl apply -f file it works... strange.

from mariadb-operator.

mmontes11 avatar mmontes11 commented on May 19, 2024

@ox1depl no worries, here to help

@RegisHubelia @tirelibirefe is this still an issue for you? if not, we can close

from mariadb-operator.

github-actions avatar github-actions commented on May 19, 2024

This issue is stale because it has been open 30 days with no activity.

from mariadb-operator.

github-actions avatar github-actions commented on May 19, 2024

This issue was closed because it has been stalled for 5 days with no activity.

from mariadb-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.