senthilrch / kube-fledged

A kubernetes operator for creating and managing a cache of container images directly on the cluster worker nodes, so application pods start almost instantly
Apache License 2.0
1.26k stars 119 forks source link

Bug: Issue with installing via Helm #114

Closed AnchorArray closed 2 years ago

AnchorArray commented 3 years ago

I am attempting to install via Helm I get the following error:

release kube-fledged failed, and has been uninstalled due to atomic being set: Internal error occurred: failed calling webhook "validate-image-cache.kubefledged.io": Post "https://kube-fledged-kubefledged-webhook-server.management.svc:3443/validate-image-cache?timeout=1s": no endpoints available for service "kube-fledged-kubefledged-webhook-server"

I am using a Terraform resource that looks as follows:

resource "helm_release" "kube_fledged" {
  name        = "kube-fledged"
  chart       = "./charts/kube-fledged-${local.kube_fledged_chart_version}/kube-fledged"
  namespace   = "management"
  atomic      = true
  max_history = 5
  timeout     = 1800

  values = [
    templatefile(
      "${path.module}/templates/kube-fledged.yaml.tpl",
      {
        validating_webhook_ca_bundle = file("${path.module}/data/validating-webhook-ca-bundle.txt"),
        images                       = local.images_to_cache
      }
    )
  ]
}

If I turn off atomic both of the pods (controller and webhook-server) report as running but the helm release still fails and is marked as such with helm list -n management.

I've also tried installing this manually via the Helm commands in the README.md.

senthilrch commented 3 years ago

@andersdberg : Which version of kube-fledged are you using? I request you to retry using v0.8.2