Giter VIP home page Giter VIP logo

Comments (8)

krep-dr avatar krep-dr commented on September 16, 2024 11

A firewall in gcp was blocking the request. It worked when I allowed traffic to port 8080 from the kubernetes master nodes (172.16.0.0/28).
Thanks again for your time:)

from vault-k8s.

dcatalano-figure avatar dcatalano-figure commented on September 16, 2024 8

A firewall in gcp was blocking the request. It worked when I allowed traffic to port 8080 from the kubernetes master nodes (172.16.0.0/28).
Thanks again for your time:)

this one comment saved me tons of time ... using GKE private clusters ... had to create a firewall rule so control plane can communicate with pods directly ... essentially opening up 8080 from source "master address range" otherwise the mutatingwebhookconfiguration prevents all new pods from starting (configerror) because the control plane timeouts on trying to communicate with agent injector pod.

thanks and cheers

from vault-k8s.

jasonodonnell avatar jasonodonnell commented on September 16, 2024

Hi @krep-dr, are you using istio?

from vault-k8s.

krep-dr avatar krep-dr commented on September 16, 2024

@jasonodonnell Thanks for looking into this. No I don’t use istio. Will the injector log when receiving a request from the webhook?

from vault-k8s.

jasonodonnell avatar jasonodonnell commented on September 16, 2024

It will, yes. Is the injector running in the vault namespace? The deploy scripts sets it to that namespace by default.

from vault-k8s.

krep-dr avatar krep-dr commented on September 16, 2024

Yes it is

from vault-k8s.

sourcec0de avatar sourcec0de commented on September 16, 2024

As the other comments suggested the helm chart doesn't know if you have a private GKE cluster.
Enable communication between the control plane to the nodes.

Here's an example in terraform.

resource "google_compute_firewall" "gke-master-to-node" {
  name    = "gke-master-to-node"
  project = "{YOUR_PROJECT_ID}"
  network = "{YOUR_COMPUTE_NETWORK_ID}"
  allow {
    protocol = "all"
   # all ports exposed or ["443"]  
  }
  source_ranges = ["{MASTER_IPV4_CIDR_BLOCK}"] # e.g "10.1.0.0/28"
  target_tags = ["gke-node"] # nodes must be tagged
}

from vault-k8s.

ricardoamedeiros avatar ricardoamedeiros commented on September 16, 2024

I had the same problem. I configured group security in aws and now it's working..

from vault-k8s.

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.