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

kube_proxy_mode value #46

Closed
maabik opened this issue Aug 16, 2023 · 2 comments
Closed

kube_proxy_mode value #46

maabik opened this issue Aug 16, 2023 · 2 comments

Comments

@maabik
Copy link

maabik commented Aug 16, 2023

Hi All !
I would like the cluster not to install kube-proxy. But when kube_proxy_mode has "none" or "false", the cluster install kube-proxy.
What to be done. Thanks in advanced.

kube-system kube-proxy-2br7s 1/1 Running 0 22m
kube-system kube-proxy-85z7r 1/1 Running 0 22m
kube-system kube-proxy-bdmbq 1/1 Running 0 22m
kube-system kube-proxy-l9kwb 1/1 Running 0 22m
kube-system kube-proxy-wmk62 1/1 Running 0 22m

@tehcyx
Copy link
Owner

tehcyx commented Aug 25, 2023

Hi @maabik ,
I'll have to check. It could be that the configuration is not exposed (yet). I'll update the issue here once I had a chance to look at the code.

@tehcyx
Copy link
Owner

tehcyx commented Aug 25, 2023

https://github.com/tehcyx/terraform-provider-kind/releases/tag/v0.2.1 we have a new release that solves this issue.

Try this configuration:

terraform {
  required_providers {
    kind = {
      source  = "tehcyx/kind"
      version = "~> 0.2.1"
    }
  }
}

provider "kind" {
}

resource "kind_cluster" "default" {
  name = "new-cluster"
  wait_for_ready = true
  kind_config {
    kind = "Cluster"
    api_version = "kind.x-k8s.io/v1alpha4"

    networking {
      kube_proxy_mode = "none"
    }

    node {
      role = "control-plane"
    }
  }
}

Should give this output

$ kubectl get pods -A
NAMESPACE            NAME                                                READY   STATUS    RESTARTS   AGE
kube-system          coredns-5d78c9869d-cprck                            0/1     Running   0          14s
kube-system          coredns-5d78c9869d-zt988                            0/1     Running   0          13s
kube-system          etcd-new-cluster-control-plane                      1/1     Running   0          25s
kube-system          kindnet-74nqv                                       1/1     Running   0          14s
kube-system          kube-apiserver-new-cluster-control-plane            1/1     Running   0          25s
kube-system          kube-controller-manager-new-cluster-control-plane   1/1     Running   0          25s
kube-system          kube-scheduler-new-cluster-control-plane            1/1     Running   0          25s
local-path-storage   local-path-provisioner-6bc4bddd6b-tcqtf             1/1     Running   0          13s

if you encounter any issue with this, please feel free to open another issue.

@tehcyx tehcyx closed this as completed Aug 25, 2023
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

2 participants