@Override
    public void unRegister(ProviderConfig config) {
        String appName = config.getAppName();
        if (!registryConfig.isRegister()) {
            if (LOGGER.isInfoEnabled(appName)) {
                LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_REGISTRY_IGNORE));
            }
            return;
        }

        if (config.isRegister()) {
            PodResource podResource = kubernetesClient.pods()
                    .inNamespace(namespace)
                    .withName(currentHostname);

            List<ServerConfig> serverConfigs = config.getServer();
            if (CommonUtils.isNotEmpty(serverConfigs)) {
                for (ServerConfig serverConfig : serverConfigs) {
                    String dataId = KubernetesRegistryHelper.buildDataId(config, serverConfig.getProtocol());

                    podResource.edit(pod -> new PodBuilder(pod).editOrNewMetadata()
                            .removeFromAnnotations(dataId)
                            .removeFromLabels(dataId)
                            .endMetadata()
                            .build());
                }
            }
        }
    }
Instantiates a new kubernetes registry.

@param registryConfig
registry/registry-kubernetes/src/main/java/com/alipay/sofa/rpc/registry/kubernetes/KubernetesRegistry.java