-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Bug]: Can't get the sock shop example running due to kubernetes version #188
Comments
New JIRA Created with ID: https://jira.eng.vmware.com/browse/NPT-912 |
Hello @zahidulhaque thanks for the detailed info. |
Thanks @ramramu3433 for the feedback. Any idea from where I can install the desired dependency of kubernetes which is expected by nexus? |
@zahidulhaque If you are using "kind" based k8s cluster, you can install a kind K8s cluster version 1.23 with the following command: kind create cluster --image=kindest/node:v1.23.3 This will be the easiest way to test it locally. Does that work for you ? |
Ignore my previous comment. I was able to downgrade kubernetes version and install Nexus Runtime. $ kubectl get svc Now getting error while Installing data model. The logs don't give much information, $ nexus datamodel install image sockshop.com:latest --namespace default --debug time="2023-05-31T11:14:53+05:30" level=debug msg="Latest available Nexus CLI version: v0.0.163\n" Flags: Global Flags: |
Datamodel is installed by a K8s Job. In your case the name of the k8s job is: sockshop.com-dmi |
@ramramu3433 can you followup on this thread during your day if there are any updates. @zahidulhaque is attempting the sockshop based playground workflow and seems to be running into failure during datamodel install. |
$ kubectl logs sockshop.com-dmi-mqwjp Here is a list of all pods: $ kubectl get pods |
The above errors indicate that the datamodel image that you built in the sandbox is not reachable to your k8s cluster. Upload this image to a container registry that is accessible to your cluster and re-run the command: nexus datamodel install image sockshop.com:latest --namespace default This is an image that was built from the datamodel in your machine. So no one else has access to it. Note: If you are using a Kind based K8s cluster: |
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
The text was updated successfully, but these errors were encountered: