kms9 commented on issue #6:
URL: https://github.com/apache/dubbo-go-samples/issues/6#issuecomment-864804455


   截止到目前 自己使用最新版本的dubbo-go进行编译运行在k8s环境下直接报错
   
   ``` 
   2021-06-21T14:46:11.273+0800 WARN    kubernetes/client.go:178        new 
kubernetes client: new dubbo-registry controller: init pod informer: read value 
from env by key (DUBBO_NAMESPACE)) 
   github.com/apache/dubbo-go/remoting/kubernetes.ValidateClient 
        
/root/vendor/github.com/apache/dubbo-go/remoting/kubernetes/client.go:178 
   github.com/apache/dubbo-go/registry/kubernetes.newKubernetesRegistry 
        
/root/vendor/github.com/apache/dubbo-go/registry/kubernetes/registry.go:166 
   github.com/apache/dubbo-go/common/extension.GetRegistry 
        /root/vendor/github.com/apache/dubbo-go/common/extension/registry.go:39 
   github.com/apache/dubbo-go/registry/protocol.getRegistry 
        
/root/vendor/github.com/apache/dubbo-go/registry/protocol/protocol.go:86 
   github.com/apache/dubbo-go/registry/protocol.(*registryProtocol).Refer 
        
/root/vendor/github.com/apache/dubbo-go/registry/protocol/protocol.go:142 
   github.com/apache/dubbo-go/config.(*ReferenceConfig).Refer 
        /root/vendor/github.com/apache/dubbo-go/config/reference_config.go:135 
   github.com/apache/dubbo-go/config.loadConsumerConfig 
        /root/vendor/github.com/apache/dubbo-go/config/config_loader.go:145 
   github.com/apache/dubbo-go/config.Load 
        /root/vendor/github.com/apache/dubbo-go/config/config_loader.go:354 
   main.main 
        /root/go-client-pure/cmd/client.go:62 
   runtime.main 
        /usr/local/go/src/runtime/proc.go:204 
   2021-06-21T14:46:11.273+0800 ERROR   protocol/protocol.go:88 Registry can 
not connect success, program is going to panic.Error message is new kubernetes 
client: new dubbo-registry controller: init pod informer: read value from env 
by key (DUBBO_NAMESPACE) 
   github.com/apache/dubbo-go/registry/protocol.getRegistry 
        
/root/vendor/github.com/apache/dubbo-go/registry/protocol/protocol.go:88 
   github.com/apache/dubbo-go/registry/protocol.(*registryProtocol).Refer 
        
/root/vendor/github.com/apache/dubbo-go/registry/protocol/protocol.go:142 
   github.com/apache/dubbo-go/config.(*ReferenceConfig).Refer 
        /root/vendor/github.com/apache/dubbo-go/config/reference_config.go:135 
   github.com/apache/dubbo-go/config.loadConsumerConfig 
        /root/vendor/github.com/apache/dubbo-go/config/config_loader.go:145 
   github.com/apache/dubbo-go/config.Load 
        /root/vendor/github.com/apache/dubbo-go/config/config_loader.go:354 
   main.main 
        /root/go-client-pure/cmd/client.go:62 
   runtime.main 
        /usr/local/go/src/runtime/proc.go:204 
   panic: new kubernetes client: new dubbo-registry controller: init pod 
informer: read value from env by key (DUBBO_NAMESPACE) 
    
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to