You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just tried to use version 2.1.0 in my fsharp project with orleans 3.7, but I got Could not load type 'k8s.Models.V1ObjectMeta' from assembly KubernetesClient exception when the application startup. Does anyone encountered similar issue? thanks
[02:05:40 ERR] Lifecycle start canceled due to errors at stage 8000: System.TypeLoadException: Could not load type 'k8s.Models.V1ObjectMeta' from assembly 'KubernetesClient, Version=11.0.0.0, Culture=neutral, PublicKeyToken=null'.
at Orleans.Clustering.Kubernetes.KubeMembershipTable.TryInitClusterVersion()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Orleans.Clustering.Kubernetes.KubeMembershipTable.TryInitClusterVersion()
at Orleans.Clustering.Kubernetes.KubeMembershipTable.InitializeMembershipTable(Boolean tryInitTableVersion)
at Orleans.Runtime.MembershipService.MembershipTableManager.Start() in /_/src/Orleans.Runtime/MembershipService/MembershipTableManager.cs:line 164
at Orleans.Runtime.MembershipService.MembershipTableManager.<>c__DisplayClass54_0.<<Orleans-ILifecycleParticipant<Orleans-Runtime-ISiloLifecycle>-Participate>g__OnRuntimeGrainServicesStart|0>d.MoveNext() in /_/src/Orleans.Runtime/MembershipService/MembershipTableManager.cs:line 859
The text was updated successfully, but these errors were encountered:
clement128
changed the title
Got "Could not load type 'k8s.Models.V1ObjectMeta' from assembly KubernetesClient" exception if using in FSharp
Got "Could not load type 'k8s.Models.V1ObjectMeta' from assembly KubernetesClient" exception if using in FSharp Orleans Project
May 3, 2023
Have the same issue, it feels like it has to do with using the correct versions on orleans and kubernetes client. But i can't find any docs regarding that
If your app uses Microsoft.Orleans.Hosting.Kubernetes, it can pull in a newer KubernetesClient. So, downgrade Microsoft.Orleans.Hosting.Kubernetes to <= 3.5.1.
Aah nice thanks, had to add kubernetesClient nuget also manually with that version. For some reason did it decide to use v7.2.0. Got another error so hopefully it will work soon 👍
EDIT
Never mind, it didn't work, well i got this error when upgrading kubernetes to 1.25, i get the feeling that the configuration error other packages has had regarding getting kubernetes container ID is the main issue for me.
I however don't use F-Sharp, i use .net 5.0 so this might be another thread for this question?
Hi there,
I was just tried to use version 2.1.0 in my fsharp project with orleans 3.7, but I got
Could not load type 'k8s.Models.V1ObjectMeta' from assembly KubernetesClient
exception when the application startup. Does anyone encountered similar issue? thanksThe text was updated successfully, but these errors were encountered: