Skip to content

[Bug]: Can't get the sock shop example running due to kubernetes version #188

@zahidulhaque

Description

@zahidulhaque

Contact Details

No response

Tell us the project / group you are associated with

Community (Default)

What happened?

I am trying to play with the sock shop example by following the getting started doc from: https://github.com/vmware-tanzu/graph-framework-for-microservices/blob/main/docs/getting_started/Playground.md.
I have been able to compile the data model, but running into issues while installing Nexus Runtime

It seems there is a very tight dependency on the k8s version (<=1.26).
Is there a way where we can download the correct kubernetes version as expected by graph framework?

Below is the output of the command
$ nexus runtime install --namespace default
Error: K8s Version should not be more that 1.26, current Version is 1.27.1
Usage:
nexus runtime install [flags]

Flags:
--admin Install the Nexus Admin runtime
--client-id string client id of the OIDC application. ignored if not --admin runtime
--client-secret string client secret of the OIDC application. ignored if not --admin runtime
--cpuResources stringArray for configuring cpu resources
-h, --help help for install
--jwt-claim string the JWT claim to be used as part of the admin match condition. ignored if not --admin runtime
--jwt-claim-value string the JWT claim to be used as part of the admin match condition. ignored if not --admin runtime
--memoryResources stringArray for configuring memory resources
-n, --namespace string name of the namespace to be created
--oauth-issuer-url string OAuth Issuer URL of the identity provider. ignored if not --admin runtime
--oauth-redirect-url string OAuth Redirect/Callback URL. ignored if not --admin runtime
--options stringArray for configuring additional helm values
-r, --registry string Registry where validation webhook and api-gw is located (default "gcr.io/nsx-sm/nexus")
-s, --secretname string Registry where validation webhook and api-gw is located
--skip-bootstrap skips the bootstrap step (only relevant for admin-runtime)

Global Flags:
--debug Enables extra logging
--list-prereq List prerequisites
--skip-prereq-check Skip prerequisites check

Describe the expected behavior

Nexus runtime should get successfully installed.

What version are you running?

$ nexus version
NexusCli: v0.0.163
NexusCompiler: 8f34b5f
NexusAppTemplates: v0.0.10
NexusDatamodelTemplates: v0.0.25
NexusRuntimeManifets: v0.2.66-cosmos-release-v2

How critical is this bug to you?

Major - important to fix

How can we recreate the bug?

No response

Any debug data that you are able to share?

$ nexus prereq verify
✅ docker docker daemon should be running on the host
✅ go 1.17
✅ kubernetes kubernetes cluster should be reachable via kubectl
❌ kubernetes version verify failed with err: K8s Version should not be more that 1.26, current Version is 1.27.1

$ go version
go version go1.20.4 linux/amd64

$ kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.3", GitCommit:"9e644106593f3f4aa98f8a84b23db5fa378900bd", GitTreeState:"clean", BuildDate:"2023-03-15T13:40:17Z", GoVersion:"go1.19.7", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.1", GitCommit:"4c9411232e10168d7b050c49a1b59f6df9d7ea4b", GitTreeState:"clean", BuildDate:"2023-05-12T19:03:40Z", GoVersion:"go1.20.3", Compiler:"gc", Platform:"linux/amd64"}

What is your operating system?

None

Any additional / relevant info

No response

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions