question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't create a service

See original GitHub issue

The TargetPort of a service is set as a string https://github.com/tintoy/dotnet-kube-client/blob/master/src/KubeClient/Models/generated/ServicePortV1.cs#L46, which fails when trying to create a service.

Exception message : “Unable to create v1/Service resource in namespace ‘…’.\nInvalid: Service "my-service" is invalid: spec.ports[0].targetPort: Invalid value: "9376": must contain at least one letter or number (a-z, 0-9)”

I think it needs different serialisation depending if it’s an integer or string value: e.g. https://github.com/kubernetes-client/csharp/blob/master/src/KubernetesClient/generated/Models/V1ServicePort.cs#L113 and https://github.com/kubernetes-client/csharp/blob/master/src/KubernetesClient/IntstrIntOrString.cs#L6-L19

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
MichaelJComptoncommented, Mar 21, 2019

Working - thanks!

1reaction
tintoycommented, Mar 8, 2019

I’m going to create a custom union type and converter - should hopefully have it all done and published by the end of this weekend 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to create service - android
I'm new to android and creating a service in one of my reminder application. but I my service is triggering when i call...
Read more >
Can not create a service request in the Office365 portal
Hello I can not create a service request through the Office365 portal. I am the administrator of the portal. When I click Support...
Read more >
Cannot create a Service Instance with the error "Service ...
This issue happens when you try to create multiple service instances for specific service in the same space but the service does not...
Read more >
Cannot create a service request
In the Security Groups application, open the security group for the service request. · On the Object Structures tab, select the MXAPISR object...
Read more >
How to Fix Fortnite Cannot create service (StartService failed
In this video, I will show you how to fix Fortnite Cannot create service (StartService failed: 1058) error or Couldn't start the game...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found