I’m trying to deploy some resources on a Kubernete...
# java
b
I’m trying to deploy some resources on a Kubernetes cluster I created in the same stack/app. I’m not using the correct provider in one of the resources, but I can’t tell which, since the stack trace I get is not helpful:
Copy code
io.grpc.StatusRuntimeException: UNKNOWN: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: Get "<https://127.0.0.1:26443/openapi/v2?timeout=32s>": dial tcp 127.0.0.1:26443: connect: connection refused
    	at io.grpc.Status.asRuntimeException(Status.java:532)
    	at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:538)
    	at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:564)
    	at io.grpc.internal.ClientCallImpl.access$100(ClientCallImpl.java:72)
    	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:729)
    	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:710)
    	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
    	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
    	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
    	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
    	at java.base/java.lang.Thread.run(Thread.java:1575)
How to find which resources use the default or a custom provider, other than removing them one by one from the app?
a
That one is going to be a little tough because its a search for something that is missing. You need a way to search for resources that are missing the
.provider(customProvider)
part. You might be able to search thru the log to if you put it into troubleshooting mode, or export your stack, find the default provider urn, and search for every resource using it.
b
I can work with the export, thanks!