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

syncer in out-of-cluster mode forces me to configure in-cluster configuration #3052

Open
nip1904 opened this issue Sep 17, 2024 · 2 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@nip1904
Copy link

nip1904 commented Sep 17, 2024

Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug

What happened:

With version 3.3.1 the syncer forces me to configure in-cluster configuration, even if I have a valid kubeconfig.
kubeconfig is correct and syncer is using it (see log snippet)
we use out-of-cluster

Now we must configure:
KUBERNETES_SERVICE_HOST via environment
KUBERNETES_SERVICE_PORT via environment
and
/run/secrets/kubernetes.io/serviceaccount/token
/run/secrets/kubernetes.io/serviceaccount/ca.crt

all these stuff is already in kubeconfig

What you expected to happen:
syncer works without in-cluster config like all older versions

How to reproduce it (as minimally and precisely as possible):
Just run syncer out-of-cluster with kubeconfig

Anything else we need to know?:

vsphere-syncer[426263]: {"level":"info","time":"2024-09-17T07:09:03.829749944+02:00","caller":"kubernetes/kubernetes.go:105","msg":"Kubeconfig path obtained from kubeconfig flag: \"/var/lib/kubernetes/csi-provisioner.kubeconfig\"","TraceId":"3e93f222-53ff-420f-9a66-dd046e56974e"} vsphere-syncer[426263]: {"level":"info","time":"2024-09-17T07:09:03.829757245+02:00","caller":"kubernetes/kubernetes.go:122","msg":"Final Kubeconfig path used: \"/var/lib/kubernetes/csi-provisioner.kubeconfig\"","TraceId":"3e93f222-53ff-420f-9a66-dd046e56974e"} vsphere-syncer[426263]: {"level":"info","time":"2024-09-17T07:09:03.829766765+02:00","caller":"kubernetes/kubernetes.go:75","msg":"k8s client using kubeconfig from /var/lib/kubernetes/csi-provisioner.kubeconfig","TraceId":"3e93f222-53ff-420f-9a66-dd046e56974e"} vsphere-syncer[426263]: {"level":"info","time":"2024-09-17T07:09:03.830562734+02:00","caller":"kubernetes/kubernetes.go:434","msg":"Setting client QPS to 100.000000 and Burst to 100.","TraceId":"3e93f222-53ff-420f-9a66-dd046e56974e"} vsphere-syncer[426263]: {"level":"error","time":"2024-09-17T07:09:03.830893072+02:00","caller":"syncer/main.go:302","msg":"failed to get InClusterConfig: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined","TraceId":"3e93f222-53ff-420f-9a66-dd046e56974e","stacktrace":"main.main.initSyncerComponents.func8\n\t/root/vsphere-csi-driver/cmd/syncer/main.go:302\nmain.main.func5\n\t/root/vsphere-csi-driver/cmd/syncer/main.go:213"}

Environment:

  • csi-vsphere version: 3.3.1
  • vsphere-cloud-controller-manager version: 1.28.1
  • Kubernetes version: 1.28.14
  • vSphere version:
  • OS (e.g. from /etc/os-release): Oracle Linux 8.10
  • Kernel (e.g. uname -a): 5.15.0-209.161.7.2.el8uek.x86_64
  • Install tools:
  • Others:
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 16, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

3 participants