-
Notifications
You must be signed in to change notification settings - Fork 33
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
Can I debug and load configMap locally? #124
Comments
Can you check the section of the readme about how to turn on logging for the client? It should be able to log the requests it’s making which might give us a clue as to what’s going wrong... |
@tintoy |
@tintoy |
Yep - from memory you can even send the logs to Serilog as well. |
As long as it logs to the console or the VS debugger console it should show you the requests it’s making (there is a property on the client options to log requests. |
(As you guessed, it’s the logger factory property). Sorry am viewing this on my phone as I’m not near a computer right now. Take a look at the ConfigMap sample in the repository, it logs requests and does most of what you’d need to hook up configuration from a ConfigMap. |
I looked at the ConfigMap sample and it seems that it still can't solve my problem. |
Do you use ConfigMap as the configuration center code?Can you send it to me for reference? |
Are you able to run that sample successfully? |
Can the. @tintoy |
What happens when you press enter? |
Delete seems to delete unsuccessful, after the creation of an error. |
In your own program, do you see any keys in the IConfiguration once it has been built? What is the name of the namespace that your config map is in? |
@tintoy |
It looks like in your original example code you are not specifying the namespace where the configmap lives - can you try passing the namespace in your original program and see if that works? |
@tintoy |
What keys does the configuration have? |
@tintoy |
Sorry I mean what keys are in the |
@tintoy |
@tintoy |
Hi - there are some examples here: https://github.com/tintoy/dotnet-kube-client#make-the-client-available-for-dependency-injection 😄 |
@tintoy I can't find the service. When I access the gateway, an error will be reported: |
The extension method from this library is called |
I’m not sure how Ocelot’s Kubernetes support works but I’m not aware of an integration between it and this library... |
I decided to use consult as the service discovery and configuration center. No more trouble. |
I have loaded configMap but configuration["Redis:Configuration"] is null.I heard that configMap should be mounted to POD or Deployment. Can't you debug it locally?
The text was updated successfully, but these errors were encountered: