cluster-api-provider-nested icon indicating copy to clipboard operation
cluster-api-provider-nested copied to clipboard

Virtual Cluster k8s version

Open mkcetinkaya opened this issue 3 years ago • 4 comments

Hello,

We succesfully deployed super cluster and virtual clusters. Firstly, thanks for your efforts.

Super cluster version 1.21.9 and Virtual cluster version is 1.16.2. And our expectation was Virtual cluster version also same as super cluster (1.21.9) or something else that we can define decleratively.

So our question is that can we define virtual cluster kubernetes version or every time it will be 1.16.2. If so, is there a way to build new container images for newer k8s versions, because only available api,server has version 1.16.2 in docker hub repository.

Thanks and regards

mkcetinkaya avatar Apr 29 '22 17:04 mkcetinkaya

Hi again,

Quick update. We have used upstream kubapi-server and controller-manager images (1.21.X). Successfully created vc. However could not deploy pod, it hangs at pending state and kubernetes default service related to virtual cluster is not being created in super cluster. When we check vc-syncer logs we got below message.

dws.go:65] failed reconcile service default/kubernetes CREATE of cluster default-915f56-vc-2 Service "kubernetes" is invalid: spec.clusterIPs: Invalid value: []string{"10.32.0.1"}: must be empty when clusterIP is empty

When we compare with 1.16 version, there is no "clusterIps" line in 1.16 and in 1.21 version there are below lines in kubernetes service in virtual cluster and I guess error is related to this.

clusterIPs: 10.32.0.1

Could you give us a advice for getting rid of this error?

Thanks and regards.

mkcetinkaya avatar May 04 '22 09:05 mkcetinkaya

I had same question before at https://github.com/kubernetes-sigs/cluster-api-provider-nested/issues/182 , yes, it will be great if we can support different version of tenant Kubernetes clusters.

gyliu513 avatar May 04 '22 13:05 gyliu513

@vincent-pli have you ever bump the version of tenant cluster and test? Any suggestions? Thanks!

gyliu513 avatar May 04 '22 13:05 gyliu513

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

This bot triages issues and PRs 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 or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

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

/lifecycle stale

k8s-triage-robot avatar Aug 02 '22 14:08 k8s-triage-robot

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

This bot triages issues and PRs 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 or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

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

/lifecycle rotten

k8s-triage-robot avatar Sep 01 '22 15:09 k8s-triage-robot

Hi! We updated samples in https://github.com/kubernetes-sigs/cluster-api-provider-nested/pull/301 1.22.13 is the last version tested, but you could try anything else, as you see, the tenant cluster version is configurable

m-messiah avatar Sep 15 '22 11:09 m-messiah

Hello @m-messiah first of all thanks for the update.

We tried same version with your suggested example yaml. Virtual cluster with version 1.22.13 was deployed succesfully. However when we deploy some pods, its state is in pending state and describe pod output is like that

" Warning FailedCreate 11s (x12 over 21s) vc-syncer Error creating: failed to list services from cluster default-35c1d7-vc-22 cache: service is not ready"

And also checked default kubernetes service, it was created in VC but not synced to supercluster as in version 1.19

Were you able to deploy pod to VC with version 1.22.X and any suggestion for us?

Thanks

mkcetinkaya avatar Sep 16 '22 05:09 mkcetinkaya

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

This bot triages 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:

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

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

/close not-planned

k8s-triage-robot avatar Oct 16 '22 07:10 k8s-triage-robot

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

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

This bot triages 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:

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

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

/close not-planned

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Oct 16 '22 07:10 k8s-ci-robot