This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git


The following commit(s) were added to refs/heads/master by this push:
     new 2dfc71d  update
2dfc71d is described below

commit 2dfc71d57abe301ce0e91da140b1a48be10548a5
Author: chickenlj <[email protected]>
AuthorDate: Mon Aug 21 14:52:46 2023 +0800

    update
---
 README.md                                          |  23 ---
 demo/README.md                                     |  23 ---
 demo/demo-api/pom.xml                              |  32 ----
 .../java/com/alibaba/dubbo/demo/DemoService.java   |  22 ---
 demo/demo-consumer/dependency-reduced-pom.xml      |  93 ------------
 demo/demo-consumer/dist/.dockerignore              |   3 -
 demo/demo-consumer/dist/Dockerfile                 |   7 -
 .../kubernetes-demo-consumer-1.0.0-SNAPSHOT.jar    | Bin 30613258 -> 0 bytes
 demo/demo-consumer/pom.xml                         |  95 ------------
 demo/demo-consumer/src/main/assembly/assembly.xml  |  39 -----
 .../src/main/assembly/conf/dubbo.properties        |  25 ---
 .../com/alibaba/dubbo/demo/consumer/Consumer.java  |  20 ---
 .../alibaba/dubbo/demo/consumer/DemoAction.java    |  43 ------
 .../com.alibaba.dubbo.registry.RegistryFactory     |   1 -
 .../META-INF/spring/dubbo-demo-action.xml          |  27 ----
 .../META-INF/spring/dubbo-demo-consumer.xml        |  32 ----
 .../alibaba/dubbo/demo/consumer/DemoConsumer.java  |  24 ---
 .../src/test/resources/dubbo.properties            |  25 ---
 demo/demo-consumer/src/test/resources/log4j.xml    |  28 ----
 demo/demo-provider/dependency-reduced-pom.xml      |  87 -----------
 demo/demo-provider/dist/.dockerignore              |   3 -
 demo/demo-provider/dist/Dockerfile                 |   8 -
 .../kubernetes-demo-provider-1.0.0-SNAPSHOT.jar    | Bin 25252087 -> 0 bytes
 demo/demo-provider/pom.xml                         |  88 -----------
 demo/demo-provider/src/main/assembly/assembly.xml  |  39 -----
 .../src/main/assembly/conf/dubbo.properties        |  28 ----
 .../dubbo/demo/provider/DemoServiceImpl.java       |  31 ----
 .../com/alibaba/dubbo/demo/provider/Provider.java  |  17 ---
 .../META-INF/spring/dubbo-demo-provider.xml        |  38 -----
 .../alibaba/dubbo/demo/provider/DemoProvider.java  |  24 ---
 .../src/test/resources/dubbo.properties            |  28 ----
 demo/demo-provider/src/test/resources/log4j.xml    |  28 ----
 demo/pom.xml                                       |  59 --------
 pom.xml                                            | 140 -----------------
 registry-api/pom.xml                               |  70 ---------
 .../registry/kubernetes/KubernetesRegistry.java    | 168 ---------------------
 .../kubernetes/KubernetesRegistryFactory.java      |  31 ----
 .../com.alibaba.dubbo.registry.RegistryFactory     |   1 -
 registry-dns/pom.xml                               |  60 --------
 .../alibaba/dubbo/registry/dns/DNSRegistry.java    |  55 -------
 .../dubbo/registry/dns/DNSRegistryFactory.java     |  31 ----
 .../com.alibaba.dubbo.registry.RegistryFactory     |   1 -
 42 files changed, 1597 deletions(-)

diff --git a/README.md b/README.md
index ada3030..abbb65e 100644
--- a/README.md
+++ b/README.md
@@ -1,25 +1,2 @@
 # dubbo-kubernetes
 Dubbo integration with k8s
-
-
-# 初步思考
-kubernetes是天然可作为微服务的地址注册中心,类似于zookeeper、Consul。 
具体来说,kubernetes中的Pod是对于应用的运行实例,Pod的被调度部署/启停都会调用API-Server的服务来保持其状态到ETCD;kubernetes中的service是对应微服务的概念,定义如下
-
-A Kubernetes Service is an abstraction layer which defines a logical set of 
Pods and enables external traffic exposure, load balancing and service 
discovery for those Pods.
-
-概括来说kubernetes service具有如下特点
-
-每个Service都有一个唯一的名字,及对应IP。IP是kubernetes自动分配的,名字是开发者自己定义的。
-Service的IP有几种表现形式,分别是ClusterIP,NodePort,LoadBalance,Ingress。 
ClusterIP主要用于集群内通信;NodePort,Ingress,LoadBalance用于暴露服务给集群外的访问入口。
-
-乍一看,kubernetes的service都是唯一的IP,在原有的Dubbo/HSF固定思维下:Dubbo/HSF的service是有整个服务集群的IP聚合而成,貌似是有本质区别的,细想下来差别不大,因为kubernetes下的唯一IP只是一个VIP,背后挂在了多个endpoint,那才是事实上的处理节点。
-
-此处只讨论集群内的Dubbo服务在同一个kubernetes集群内访问;至于kubernetes外的consumer访问kubernetes内的provider,涉及到网络地址空间的问题,一般需要GateWay/loadbalance来做映射转换,不展开讨论。针对kubernetes内有两种方案可选:
-
-- DNS: 默认kubernetes的service是靠DNS插件(最新版推荐是coreDNS), Dubbo上有个 
[proposal](https://github.com/apache/incubator-dubbo/issues/2043) 
是关于这个的。我的理解是static resolution的机制是最简单最需要支持的一种service 
discovery机制,具体也可以参考Envoy在此的观点,由于HSF/Dubbo一直突出其软负载的地址发现能力,反而忽略Static的策略。同时蚂蚁的SOFA一直是支持此种策略,那一个SOFA工程的工程片段做一个解释。这样做有两个好处,1)当软负载中心crash不可用造成无法获取地址列表时,有一定的机制Failover到此策略来处理一定的请求。
 
2)在LDC/单元化下,蚂蚁的负载中心集群是机房/区域内收敛部署的,首先保证软负载中心的LDC化了进而稳定可控,当单元需要请求中心时,此VIP的地址发现就排上用场了。
 
-
-- 
API:DNS是依靠DNS插件进行的,相当于额外的运维开销,所以考虑直接通过kubernetes的client来获取endpoint。事实上,通过访问kubernetes的API
 
server接口是可以直接获取某个service背后的endpoint列表,同时可以监听其地址列表的变化。从而实现Dubbo/HSF所推荐的软负载发现策略。具体可以参考代码:
-
-以上两种思路都需要考虑以下两点
-- 
kubernetes和Dubbo对于service的名字是映射一致的。Dubbo的服务是由servicename,group,version三个来确定其唯一性,而且servicename一般其服务接口的包名称,比较长。需要映射kubernetes的service名与dubbo的服务名。要么是像SOFA那样增加一个属性来进行定义,这个是改造大点,但最合理;要么是通过固定规则来引用部署的环境变量,可用于快速验证。
-- 端口问题。默认Pod与Pod的网络互通算是解决了。需要验证。
diff --git a/demo/README.md b/demo/README.md
deleted file mode 100644
index dc48743..0000000
--- a/demo/README.md
+++ /dev/null
@@ -1,23 +0,0 @@
-### 基本点
-- provider只要把端口打开就行,不用自己注册。是通过pod注册到k8s的。
-- consumer是需要通过k8s的fabric client来获取对应的服务地址。
-
-### 问答
-
-------------
- - A:我理解的是一个Pod一个Provider或者Consumer进程,剩下的那个k8s init-container 
不会帮业务进程做任何事情的。那Provider怎么把自己注册到k8s中?
- - B:好问题。是k8s的 service.yaml 中发布的。用k8s的 
方式定义出来的。为了复用k8s的service能力,就需要用k8s的方式发布服务。
- - A: provider问题解了, consumer订阅的时候就需要知道 k8s的API 
server地址。之前的话,不管是zk还是其他k/v介质,都是dubbo进程启动之后自己主动写进去注册中心的,所以我一直以为provider和consumer都是自个儿把自己的meta数据写到kubernetes。原来不是。。
-
-
-------------
-- 问:需要手工写yaml然后kubectl apply -f 么?
-- 答:目前是的, 当然你可以写个maven插件什么的,通过扫描dubbo的配置来自动生成。我感觉是需要开发一个额外的Operator。
-
-------------
-- 问:还有个问题是 k8s发布的服务名与dubbo的服务名的转换问题。
-- 答:这个转换映射目前是通过 -D参数配置的方式, 也是比较初级。假设dubbo服务名是 com.abc.service.XYZ, 那需要启动时配置 
-Dcom.abc.service.XYZ_target=XYZ.service.com 之类的。k8s的服务命名方式一般是正序, 而dubbo是包名。
-
-------------
-- 问:目前有一个规范么?不然dubbo-go这边和dubbo如果不使用同一种方式,出来的 Provider/Consumer 无法正常工作。
-- 答:规范需要大家一起来完善。
\ No newline at end of file
diff --git a/demo/demo-api/pom.xml b/demo/demo-api/pom.xml
deleted file mode 100644
index 7bfd17f..0000000
--- a/demo/demo-api/pom.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<!--
- - Copyright 1999-2011 Alibaba Group.
- -  
- - Licensed under the Apache License, Version 2.0 (the "License");
- - you may not use this file except in compliance with the License.
- - You may obtain a copy of the License at
- -  
- -      http://www.apache.org/licenses/LICENSE-2.0
- -  
- - Unless required by applicable law or agreed to in writing, software
- - distributed under the License is distributed on an "AS IS" BASIS,
- - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- - See the License for the specific language governing permissions and
- - limitations under the License.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
-       <modelVersion>4.0.0</modelVersion>
-       <parent>
-               <groupId>com.alibaba.dubbo</groupId>
-               <artifactId>kubernetes-demo</artifactId>
-               <version>1.0.0-SNAPSHOT</version>
-               <relativePath>../pom.xml</relativePath>
-       </parent>
-       <artifactId>kubernetes-demo-api</artifactId>
-       <packaging>jar</packaging>
-       <name>${project.artifactId}</name>
-       <description>The demo module of dubbo project</description>
-       <properties>
-               <skip_maven_deploy>true</skip_maven_deploy>
-       </properties>
-</project>
\ No newline at end of file
diff --git 
a/demo/demo-api/src/main/java/com/alibaba/dubbo/demo/DemoService.java 
b/demo/demo-api/src/main/java/com/alibaba/dubbo/demo/DemoService.java
deleted file mode 100644
index 83d6c77..0000000
--- a/demo/demo-api/src/main/java/com/alibaba/dubbo/demo/DemoService.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright 1999-2011 Alibaba Group.
- *  
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *  
- *      http://www.apache.org/licenses/LICENSE-2.0
- *  
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.alibaba.dubbo.demo;
-
-public interface DemoService {
-
-       String sayHello(String name);
-
-}
\ No newline at end of file
diff --git a/demo/demo-consumer/dependency-reduced-pom.xml 
b/demo/demo-consumer/dependency-reduced-pom.xml
deleted file mode 100644
index 09a1cc5..0000000
--- a/demo/demo-consumer/dependency-reduced-pom.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
-  <parent>
-    <artifactId>kubernetes-demo</artifactId>
-    <groupId>com.alibaba.dubbo</groupId>
-    <version>1.0.0-SNAPSHOT</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <artifactId>kubernetes-demo-consumer</artifactId>
-  <name>${project.artifactId}</name>
-  <description>The demo consumer module of dubbo kubernetes 
project</description>
-  <build>
-    <extensions>
-      <extension>
-        <groupId>kr.motd.maven</groupId>
-        <artifactId>os-maven-plugin</artifactId>
-      </extension>
-    </extensions>
-    <plugins>
-      <plugin>
-        <artifactId>maven-shade-plugin</artifactId>
-        <version>2.3</version>
-        <executions>
-          <execution>
-            <phase>package</phase>
-            <goals>
-              <goal>shade</goal>
-            </goals>
-            <configuration>
-              <transformers>
-                <transformer>
-                  
<mainClass>com.alibaba.dubbo.demo.consumer.Consumer</mainClass>
-                </transformer>
-              </transformers>
-              <filters>
-                <filter>
-                  <artifact>*:*</artifact>
-                  <excludes>
-                    <exclude>META-INF/*.SF</exclude>
-                    <exclude>META-INF/*.DSA</exclude>
-                    <exclude>META-INF/*.RSA</exclude>
-                  </excludes>
-                </filter>
-              </filters>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-  <dependencies>
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>4.10</version>
-      <scope>test</scope>
-      <exclusions>
-        <exclusion>
-          <artifactId>hamcrest-core</artifactId>
-          <groupId>org.hamcrest</groupId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-    <dependency>
-      <groupId>org.easymock</groupId>
-      <artifactId>easymock</artifactId>
-      <version>3.0</version>
-      <scope>test</scope>
-      <exclusions>
-        <exclusion>
-          <artifactId>cglib-nodep</artifactId>
-          <groupId>cglib</groupId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-    <dependency>
-      <groupId>org.easymock</groupId>
-      <artifactId>easymockclassextension</artifactId>
-      <version>3.0</version>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>com.googlecode.jmockit</groupId>
-      <artifactId>jmockit</artifactId>
-      <version>0.999.8</version>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-  <properties>
-    <skip_maven_deploy>false</skip_maven_deploy>
-  </properties>
-</project>
-
diff --git a/demo/demo-consumer/dist/.dockerignore 
b/demo/demo-consumer/dist/.dockerignore
deleted file mode 100644
index 6b4cb15..0000000
--- a/demo/demo-consumer/dist/.dockerignore
+++ /dev/null
@@ -1,3 +0,0 @@
-target
-!target/lib
-!target/*.jar
diff --git a/demo/demo-consumer/dist/Dockerfile 
b/demo/demo-consumer/dist/Dockerfile
deleted file mode 100644
index 89dec0f..0000000
--- a/demo/demo-consumer/dist/Dockerfile
+++ /dev/null
@@ -1,7 +0,0 @@
-FROM openjdk:8
- 
-COPY kubernetes-demo-consumer-1.0.0-SNAPSHOT.jar 
/app/kubernetes-demo-consumer-1.0.0-SNAPSHOT.jar
-
-ENTRYPOINT ["java", "-jar", "/app/kubernetes-demo-consumer-1.0.0-SNAPSHOT.jar"]
- 
-
diff --git 
a/demo/demo-consumer/dist/kubernetes-demo-consumer-1.0.0-SNAPSHOT.jar 
b/demo/demo-consumer/dist/kubernetes-demo-consumer-1.0.0-SNAPSHOT.jar
deleted file mode 100644
index 52a6af3..0000000
Binary files 
a/demo/demo-consumer/dist/kubernetes-demo-consumer-1.0.0-SNAPSHOT.jar and 
/dev/null differ
diff --git a/demo/demo-consumer/pom.xml b/demo/demo-consumer/pom.xml
deleted file mode 100644
index be85cfc..0000000
--- a/demo/demo-consumer/pom.xml
+++ /dev/null
@@ -1,95 +0,0 @@
-<!--
- - Copyright 1999-2011 Alibaba Group.
- -  
- - Licensed under the Apache License, Version 2.0 (the "License");
- - you may not use this file except in compliance with the License.
- - You may obtain a copy of the License at
- -  
- -      http://www.apache.org/licenses/LICENSE-2.0
- -  
- - Unless required by applicable law or agreed to in writing, software
- - distributed under the License is distributed on an "AS IS" BASIS,
- - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- - See the License for the specific language governing permissions and
- - limitations under the License.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
-    <modelVersion>4.0.0</modelVersion>
-    <parent>
-        <groupId>com.alibaba.dubbo</groupId>
-        <artifactId>kubernetes-demo</artifactId>
-        <version>1.0.0-SNAPSHOT</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <artifactId>kubernetes-demo-consumer</artifactId>
-    <packaging>jar</packaging>
-    <name>${project.artifactId}</name>
-    <description>The demo consumer module of dubbo kubernetes 
project</description>
-    <properties>
-        <skip_maven_deploy>false</skip_maven_deploy>
-    </properties>
-    <dependencies>
-        <dependency>
-            <groupId>com.alibaba.dubbo</groupId>
-            <artifactId>kubernetes-demo-api</artifactId>
-            <version>${project.parent.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>com.alibaba</groupId>
-            <artifactId>dubbo</artifactId>
-            <version>2.6.4</version>
-        </dependency>
-        <dependency>
-            <groupId>com.alibaba.dubbo</groupId>
-            <artifactId>kubernetes-registry-api</artifactId>
-            <version>${project.parent.version}</version>
-        </dependency>
-    </dependencies>
-    <build>
-        <extensions>
-            <extension>
-                <groupId>kr.motd.maven</groupId>
-                <artifactId>os-maven-plugin</artifactId>
-            </extension>
-        </extensions>
-
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-shade-plugin</artifactId>
-                <version>2.3</version>
-                <executions>
-                    <!-- Run shade goal on package phase -->
-                    <execution>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>shade</goal>
-                        </goals>
-                        <configuration>
-                            <transformers>
-                                <!-- add Main-Class to manifest file -->
-                                <transformer
-                                        
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
-                                    
<mainClass>com.alibaba.dubbo.demo.consumer.Consumer</mainClass>
-                                </transformer>
-                            </transformers>
-                            <filters>
-                                <filter>
-                                    <artifact>*:*</artifact>
-                                    <excludes>
-                                        <exclude>META-INF/*.SF</exclude>
-                                        <exclude>META-INF/*.DSA</exclude>
-                                        <exclude>META-INF/*.RSA</exclude>
-                                    </excludes>
-                                </filter>
-                            </filters>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-
-        </plugins>
-    </build>
-</project>
\ No newline at end of file
diff --git a/demo/demo-consumer/src/main/assembly/assembly.xml 
b/demo/demo-consumer/src/main/assembly/assembly.xml
deleted file mode 100644
index 4d4a7e3..0000000
--- a/demo/demo-consumer/src/main/assembly/assembly.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<!--
- - Copyright 1999-2011 Alibaba Group.
- -  
- - Licensed under the Apache License, Version 2.0 (the "License");
- - you may not use this file except in compliance with the License.
- - You may obtain a copy of the License at
- -  
- -      http://www.apache.org/licenses/LICENSE-2.0
- -  
- - Unless required by applicable law or agreed to in writing, software
- - distributed under the License is distributed on an "AS IS" BASIS,
- - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- - See the License for the specific language governing permissions and
- - limitations under the License.
--->
-<assembly>
-       <id>assembly</id>
-       <formats>
-               <format>tar.gz</format>
-       </formats>
-       <includeBaseDirectory>true</includeBaseDirectory>
-       <fileSets>
-               <fileSet>
-                       
<directory>${project.build.directory}/dubbo/META-INF/assembly/bin</directory>
-                       <outputDirectory>bin</outputDirectory>
-                       <fileMode>0755</fileMode>
-               </fileSet>
-               <fileSet>
-                       <directory>src/main/assembly/conf</directory>
-                       <outputDirectory>conf</outputDirectory>
-                       <fileMode>0644</fileMode>
-               </fileSet>
-       </fileSets>
-       <dependencySets>
-               <dependencySet>
-                       <outputDirectory>lib</outputDirectory>
-               </dependencySet>
-       </dependencySets>
-</assembly>
\ No newline at end of file
diff --git a/demo/demo-consumer/src/main/assembly/conf/dubbo.properties 
b/demo/demo-consumer/src/main/assembly/conf/dubbo.properties
deleted file mode 100644
index beaa516..0000000
--- a/demo/demo-consumer/src/main/assembly/conf/dubbo.properties
+++ /dev/null
@@ -1,25 +0,0 @@
-##
-# Copyright 1999-2011 Alibaba Group.
-#  
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#  
-#      http://www.apache.org/licenses/LICENSE-2.0
-#  
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-dubbo.container=log4j,spring
-dubbo.application.name=demo-consumer
-dubbo.application.owner=
-dubbo.registry.address=multicast://224.5.6.7:1234
-#dubbo.registry.address=zookeeper://127.0.0.1:2181
-#dubbo.registry.address=redis://127.0.0.1:6379
-#dubbo.registry.address=dubbo://127.0.0.1:9090
-dubbo.monitor.protocol=registry
-dubbo.log4j.file=logs/dubbo-demo-consumer.log
-dubbo.log4j.level=WARN
\ No newline at end of file
diff --git 
a/demo/demo-consumer/src/main/java/com/alibaba/dubbo/demo/consumer/Consumer.java
 
b/demo/demo-consumer/src/main/java/com/alibaba/dubbo/demo/consumer/Consumer.java
deleted file mode 100644
index 00cf748..0000000
--- 
a/demo/demo-consumer/src/main/java/com/alibaba/dubbo/demo/consumer/Consumer.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.alibaba.dubbo.demo.consumer;
-
-import com.alibaba.dubbo.demo.DemoService;
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-/**
- * Created by ken.lj on 2017/7/31.
- */
-public class Consumer {
-
-    public static void main(String[] args) {
-        ClassPathXmlApplicationContext context = new 
ClassPathXmlApplicationContext(new 
String[]{"META-INF/spring/dubbo-demo-consumer.xml"});
-        context.start();
-
-        DemoService demoService = (DemoService) 
context.getBean("demoService"); // 获取远程服务代理
-        String hello = demoService.sayHello("world"); // 执行远程方法
-
-        System.out.println(hello); // 显示调用结果
-    }
-}
diff --git 
a/demo/demo-consumer/src/main/java/com/alibaba/dubbo/demo/consumer/DemoAction.java
 
b/demo/demo-consumer/src/main/java/com/alibaba/dubbo/demo/consumer/DemoAction.java
deleted file mode 100644
index f92da04..0000000
--- 
a/demo/demo-consumer/src/main/java/com/alibaba/dubbo/demo/consumer/DemoAction.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 1999-2011 Alibaba Group.
- *  
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *  
- *      http://www.apache.org/licenses/LICENSE-2.0
- *  
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.alibaba.dubbo.demo.consumer;
-
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-import com.alibaba.dubbo.demo.DemoService;
-
-public class DemoAction {
-    
-    private DemoService demoService;
-
-    public void setDemoService(DemoService demoService) {
-        this.demoService = demoService;
-    }
-
-       public void start() throws Exception {
-        for (int i = 0; i < Integer.MAX_VALUE; i ++) {
-            try {
-               String hello = demoService.sayHello("world" + i);
-                System.out.println("[" + new 
SimpleDateFormat("HH:mm:ss").format(new Date()) + "] " + hello);
-            } catch (Exception e) {
-                e.printStackTrace();
-            }
-            Thread.sleep(2000);
-        }
-       }
-
-}
\ No newline at end of file
diff --git 
a/demo/demo-consumer/src/main/resources/META-INF/dubbo/internal/com.alibaba.dubbo.registry.RegistryFactory
 
b/demo/demo-consumer/src/main/resources/META-INF/dubbo/internal/com.alibaba.dubbo.registry.RegistryFactory
deleted file mode 100644
index 78911fd..0000000
--- 
a/demo/demo-consumer/src/main/resources/META-INF/dubbo/internal/com.alibaba.dubbo.registry.RegistryFactory
+++ /dev/null
@@ -1 +0,0 @@
-kubernetes=com.alibaba.dubbo.registry.kubernetes.KubernetesRegistryFactory
\ No newline at end of file
diff --git 
a/demo/demo-consumer/src/main/resources/META-INF/spring/dubbo-demo-action.xml 
b/demo/demo-consumer/src/main/resources/META-INF/spring/dubbo-demo-action.xml
deleted file mode 100644
index 0c18fc4..0000000
--- 
a/demo/demo-consumer/src/main/resources/META-INF/spring/dubbo-demo-action.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- - Copyright 1999-2011 Alibaba Group.
- -  
- - Licensed under the Apache License, Version 2.0 (the "License");
- - you may not use this file except in compliance with the License.
- - You may obtain a copy of the License at
- -  
- -      http://www.apache.org/licenses/LICENSE-2.0
- -  
- - Unless required by applicable law or agreed to in writing, software
- - distributed under the License is distributed on an "AS IS" BASIS,
- - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- - See the License for the specific language governing permissions and
- - limitations under the License.
--->
-<beans xmlns="http://www.springframework.org/schema/beans";
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-       xmlns:dubbo="http://code.alibabatech.com/schema/dubbo";
-       xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
-       http://code.alibabatech.com/schema/dubbo 
http://code.alibabatech.com/schema/dubbo/dubbo.xsd";>
-
-       <bean class="com.alibaba.dubbo.demo.consumer.DemoAction" 
init-method="start">
-               <property name="demoService" ref="demoService" />
-       </bean>
-
-</beans>
\ No newline at end of file
diff --git 
a/demo/demo-consumer/src/main/resources/META-INF/spring/dubbo-demo-consumer.xml 
b/demo/demo-consumer/src/main/resources/META-INF/spring/dubbo-demo-consumer.xml
deleted file mode 100644
index 4c4f527..0000000
--- 
a/demo/demo-consumer/src/main/resources/META-INF/spring/dubbo-demo-consumer.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- - Copyright 1999-2011 Alibaba Group.
- -  
- - Licensed under the Apache License, Version 2.0 (the "License");
- - you may not use this file except in compliance with the License.
- - You may obtain a copy of the License at
- -  
- -      http://www.apache.org/licenses/LICENSE-2.0
- -  
- - Unless required by applicable law or agreed to in writing, software
- - distributed under the License is distributed on an "AS IS" BASIS,
- - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- - See the License for the specific language governing permissions and
- - limitations under the License.
--->
-<beans xmlns="http://www.springframework.org/schema/beans";
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-       xmlns:dubbo="http://code.alibabatech.com/schema/dubbo";
-       xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
-       http://code.alibabatech.com/schema/dubbo 
http://code.alibabatech.com/schema/dubbo/dubbo.xsd";>
-
-       <!-- 消费方应用名,用于计算依赖关系,不是匹配条件,不要与提供方一样 -->
-       <dubbo:application name="demo-consumer"  />
-
-       <!-- 使用multicast广播注册中心暴露发现服务地址 -->
-       <dubbo:registry address="kubernetes://224.5.6.7:1234" />
-
-       <!-- 生成远程服务代理,可以和本地bean一样使用demoService -->
-       <dubbo:reference id="demoService" check="false" 
interface="com.alibaba.dubbo.demo.DemoService" />
-
-</beans>
\ No newline at end of file
diff --git 
a/demo/demo-consumer/src/test/java/com/alibaba/dubbo/demo/consumer/DemoConsumer.java
 
b/demo/demo-consumer/src/test/java/com/alibaba/dubbo/demo/consumer/DemoConsumer.java
deleted file mode 100644
index 8a3ac91..0000000
--- 
a/demo/demo-consumer/src/test/java/com/alibaba/dubbo/demo/consumer/DemoConsumer.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright 1999-2011 Alibaba Group.
- *  
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *  
- *      http://www.apache.org/licenses/LICENSE-2.0
- *  
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.alibaba.dubbo.demo.consumer;
-
-public class DemoConsumer {
-       
-       public static void main(String[] args) {
-           com.alibaba.dubbo.container.Main.main(args);
-       }
-
-}
\ No newline at end of file
diff --git a/demo/demo-consumer/src/test/resources/dubbo.properties 
b/demo/demo-consumer/src/test/resources/dubbo.properties
deleted file mode 100644
index db0ddd7..0000000
--- a/demo/demo-consumer/src/test/resources/dubbo.properties
+++ /dev/null
@@ -1,25 +0,0 @@
-##
-# Copyright 1999-2011 Alibaba Group.
-#  
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#  
-#      http://www.apache.org/licenses/LICENSE-2.0
-#  
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-dubbo.container=log4j,spring
-dubbo.application.name=demo-consumer
-dubbo.application.owner=
-dubbo.registry.address=multicast://224.5.6.7:1234
-#dubbo.registry.address=zookeeper://127.0.0.1:2181
-#dubbo.registry.address=redis://127.0.0.1:6379
-#dubbo.registry.address=dubbo://127.0.0.1:9090
-#dubbo.monitor.protocol=registry
-#dubbo.log4j.file=logs/dubbo-demo-consumer.log
-#dubbo.log4j.level=WARN
\ No newline at end of file
diff --git a/demo/demo-consumer/src/test/resources/log4j.xml 
b/demo/demo-consumer/src/test/resources/log4j.xml
deleted file mode 100644
index ae988c3..0000000
--- a/demo/demo-consumer/src/test/resources/log4j.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- - Copyright 1999-2011 Alibaba Group.
- -  
- - Licensed under the Apache License, Version 2.0 (the "License");
- - you may not use this file except in compliance with the License.
- - You may obtain a copy of the License at
- -  
- -      http://www.apache.org/licenses/LICENSE-2.0
- -  
- - Unless required by applicable law or agreed to in writing, software
- - distributed under the License is distributed on an "AS IS" BASIS,
- - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- - See the License for the specific language governing permissions and
- - limitations under the License.
--->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"; 
debug="false">
-       <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
-               <layout class="org.apache.log4j.PatternLayout">
-                       <param name="ConversionPattern" value="[%d{dd/MM/yy 
hh:mm:ss:sss z}] %t %5p %c{2}: %m%n" />
-               </layout>
-       </appender>
-       <root>
-               <level value="INFO" />
-               <appender-ref ref="CONSOLE" />
-       </root>
-</log4j:configuration>
\ No newline at end of file
diff --git a/demo/demo-provider/dependency-reduced-pom.xml 
b/demo/demo-provider/dependency-reduced-pom.xml
deleted file mode 100644
index dccae96..0000000
--- a/demo/demo-provider/dependency-reduced-pom.xml
+++ /dev/null
@@ -1,87 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
-  <parent>
-    <artifactId>kubernetes-demo</artifactId>
-    <groupId>com.alibaba.dubbo</groupId>
-    <version>1.0.0-SNAPSHOT</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <artifactId>kubernetes-demo-provider</artifactId>
-  <name>${project.artifactId}</name>
-  <description>The demo provider module of dubbo project</description>
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-shade-plugin</artifactId>
-        <version>2.3</version>
-        <executions>
-          <execution>
-            <phase>package</phase>
-            <goals>
-              <goal>shade</goal>
-            </goals>
-            <configuration>
-              <transformers>
-                <transformer>
-                  
<mainClass>com.alibaba.dubbo.demo.consumer.Provider</mainClass>
-                </transformer>
-              </transformers>
-              <filters>
-                <filter>
-                  <artifact>*:*</artifact>
-                  <excludes>
-                    <exclude>META-INF/*.SF</exclude>
-                    <exclude>META-INF/*.DSA</exclude>
-                    <exclude>META-INF/*.RSA</exclude>
-                  </excludes>
-                </filter>
-              </filters>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-  <dependencies>
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>4.10</version>
-      <scope>test</scope>
-      <exclusions>
-        <exclusion>
-          <artifactId>hamcrest-core</artifactId>
-          <groupId>org.hamcrest</groupId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-    <dependency>
-      <groupId>org.easymock</groupId>
-      <artifactId>easymock</artifactId>
-      <version>3.0</version>
-      <scope>test</scope>
-      <exclusions>
-        <exclusion>
-          <artifactId>cglib-nodep</artifactId>
-          <groupId>cglib</groupId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-    <dependency>
-      <groupId>org.easymock</groupId>
-      <artifactId>easymockclassextension</artifactId>
-      <version>3.0</version>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>com.googlecode.jmockit</groupId>
-      <artifactId>jmockit</artifactId>
-      <version>0.999.8</version>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-  <properties>
-    <skip_maven_deploy>false</skip_maven_deploy>
-  </properties>
-</project>
-
diff --git a/demo/demo-provider/dist/.dockerignore 
b/demo/demo-provider/dist/.dockerignore
deleted file mode 100644
index 6b4cb15..0000000
--- a/demo/demo-provider/dist/.dockerignore
+++ /dev/null
@@ -1,3 +0,0 @@
-target
-!target/lib
-!target/*.jar
diff --git a/demo/demo-provider/dist/Dockerfile 
b/demo/demo-provider/dist/Dockerfile
deleted file mode 100644
index 0bd12c3..0000000
--- a/demo/demo-provider/dist/Dockerfile
+++ /dev/null
@@ -1,8 +0,0 @@
-FROM openjdk:8
- 
-COPY kubernetes-demo-provider-1.0.0-SNAPSHOT.jar 
/app/kubernetes-demo-provider-1.0.0-SNAPSHOT.jar
-
-EXPOSE 20880
-ENTRYPOINT ["java", "-jar", "/app/kubernetes-demo-provider-1.0.0-SNAPSHOT.jar"]
- 
-
diff --git 
a/demo/demo-provider/dist/kubernetes-demo-provider-1.0.0-SNAPSHOT.jar 
b/demo/demo-provider/dist/kubernetes-demo-provider-1.0.0-SNAPSHOT.jar
deleted file mode 100644
index 934e0d8..0000000
Binary files 
a/demo/demo-provider/dist/kubernetes-demo-provider-1.0.0-SNAPSHOT.jar and 
/dev/null differ
diff --git a/demo/demo-provider/pom.xml b/demo/demo-provider/pom.xml
deleted file mode 100644
index 60f7472..0000000
--- a/demo/demo-provider/pom.xml
+++ /dev/null
@@ -1,88 +0,0 @@
-<!--
- - Copyright 1999-2011 Alibaba Group.
- -  
- - Licensed under the Apache License, Version 2.0 (the "License");
- - you may not use this file except in compliance with the License.
- - You may obtain a copy of the License at
- -  
- -      http://www.apache.org/licenses/LICENSE-2.0
- -  
- - Unless required by applicable law or agreed to in writing, software
- - distributed under the License is distributed on an "AS IS" BASIS,
- - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- - See the License for the specific language governing permissions and
- - limitations under the License.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
-    <modelVersion>4.0.0</modelVersion>
-    <parent>
-        <groupId>com.alibaba.dubbo</groupId>
-        <artifactId>kubernetes-demo</artifactId>
-        <version>1.0.0-SNAPSHOT</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <artifactId>kubernetes-demo-provider</artifactId>
-    <packaging>jar</packaging>
-    <name>${project.artifactId}</name>
-    <description>The demo provider module of dubbo project</description>
-    <properties>
-        <skip_maven_deploy>false</skip_maven_deploy>
-    </properties>
-    <dependencies>
-        <dependency>
-            <groupId>com.alibaba.dubbo</groupId>
-            <artifactId>kubernetes-demo-api</artifactId>
-            <version>${project.parent.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>com.alibaba.dubbo</groupId>
-            <artifactId>kubernetes-registry-api</artifactId>
-            <version>${project.parent.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>com.alibaba</groupId>
-            <artifactId>dubbo</artifactId>
-            <version>2.6.7</version>
-        </dependency>
-    </dependencies>
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-shade-plugin</artifactId>
-                <version>2.3</version>
-                <executions>
-                    <!-- Run shade goal on package phase -->
-                    <execution>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>shade</goal>
-                        </goals>
-                        <configuration>
-                            <transformers>
-                                <!-- add Main-Class to manifest file -->
-                                <transformer
-                                        
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
-                                    
<mainClass>com.alibaba.dubbo.demo.provider.Provider</mainClass>
-                                </transformer>
-                            </transformers>
-                            <filters>
-                                <filter>
-                                    <artifact>*:*</artifact>
-                                    <excludes>
-                                        <exclude>META-INF/*.SF</exclude>
-                                        <exclude>META-INF/*.DSA</exclude>
-                                        <exclude>META-INF/*.RSA</exclude>
-                                    </excludes>
-                                </filter>
-                            </filters>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-
-        </plugins>
-    </build>
-</project>
diff --git a/demo/demo-provider/src/main/assembly/assembly.xml 
b/demo/demo-provider/src/main/assembly/assembly.xml
deleted file mode 100644
index 4d4a7e3..0000000
--- a/demo/demo-provider/src/main/assembly/assembly.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<!--
- - Copyright 1999-2011 Alibaba Group.
- -  
- - Licensed under the Apache License, Version 2.0 (the "License");
- - you may not use this file except in compliance with the License.
- - You may obtain a copy of the License at
- -  
- -      http://www.apache.org/licenses/LICENSE-2.0
- -  
- - Unless required by applicable law or agreed to in writing, software
- - distributed under the License is distributed on an "AS IS" BASIS,
- - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- - See the License for the specific language governing permissions and
- - limitations under the License.
--->
-<assembly>
-       <id>assembly</id>
-       <formats>
-               <format>tar.gz</format>
-       </formats>
-       <includeBaseDirectory>true</includeBaseDirectory>
-       <fileSets>
-               <fileSet>
-                       
<directory>${project.build.directory}/dubbo/META-INF/assembly/bin</directory>
-                       <outputDirectory>bin</outputDirectory>
-                       <fileMode>0755</fileMode>
-               </fileSet>
-               <fileSet>
-                       <directory>src/main/assembly/conf</directory>
-                       <outputDirectory>conf</outputDirectory>
-                       <fileMode>0644</fileMode>
-               </fileSet>
-       </fileSets>
-       <dependencySets>
-               <dependencySet>
-                       <outputDirectory>lib</outputDirectory>
-               </dependencySet>
-       </dependencySets>
-</assembly>
\ No newline at end of file
diff --git a/demo/demo-provider/src/main/assembly/conf/dubbo.properties 
b/demo/demo-provider/src/main/assembly/conf/dubbo.properties
deleted file mode 100644
index 3a6041a..0000000
--- a/demo/demo-provider/src/main/assembly/conf/dubbo.properties
+++ /dev/null
@@ -1,28 +0,0 @@
-##
-# Copyright 1999-2011 Alibaba Group.
-#  
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#  
-#      http://www.apache.org/licenses/LICENSE-2.0
-#  
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-dubbo.container=log4j,spring
-dubbo.application.name=demo-provider
-dubbo.application.owner=
-dubbo.registry.address=multicast://224.5.6.7:1234
-#dubbo.registry.address=zookeeper://127.0.0.1:2181
-#dubbo.registry.address=redis://127.0.0.1:6379
-#dubbo.registry.address=dubbo://127.0.0.1:9090
-dubbo.monitor.protocol=registry
-dubbo.protocol.name=dubbo
-dubbo.protocol.port=20880
-dubbo.service.loadbalance=roundrobin
-dubbo.log4j.file=logs/dubbo-demo-provider.log
-dubbo.log4j.level=WARN
\ No newline at end of file
diff --git 
a/demo/demo-provider/src/main/java/com/alibaba/dubbo/demo/provider/DemoServiceImpl.java
 
b/demo/demo-provider/src/main/java/com/alibaba/dubbo/demo/provider/DemoServiceImpl.java
deleted file mode 100644
index af289cb..0000000
--- 
a/demo/demo-provider/src/main/java/com/alibaba/dubbo/demo/provider/DemoServiceImpl.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright 1999-2011 Alibaba Group.
- *  
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *  
- *      http://www.apache.org/licenses/LICENSE-2.0
- *  
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.alibaba.dubbo.demo.provider;
-
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-import com.alibaba.dubbo.demo.DemoService;
-import com.alibaba.dubbo.rpc.RpcContext;
-
-public class DemoServiceImpl implements DemoService {
-
-    public String sayHello(String name) {
-        System.out.println("[" + new SimpleDateFormat("HH:mm:ss").format(new 
Date()) + "] Hello " + name + ", request from consumer: " + 
RpcContext.getContext().getRemoteAddress());
-        return "Hello " + name + ", response form provider: " + 
RpcContext.getContext().getLocalAddress();
-    }
-    
-}
\ No newline at end of file
diff --git 
a/demo/demo-provider/src/main/java/com/alibaba/dubbo/demo/provider/Provider.java
 
b/demo/demo-provider/src/main/java/com/alibaba/dubbo/demo/provider/Provider.java
deleted file mode 100644
index e11370c..0000000
--- 
a/demo/demo-provider/src/main/java/com/alibaba/dubbo/demo/provider/Provider.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.alibaba.dubbo.demo.provider;
-
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-/**
- * Created by ken.lj on 2017/7/31.
- */
-public class Provider {
-
-    public static void main(String[] args) throws Exception{
-        ClassPathXmlApplicationContext context = new 
ClassPathXmlApplicationContext(new 
String[]{"META-INF/spring/dubbo-demo-provider.xml"});
-        context.start();
-
-        System.in.read(); // 按任意键退出
-    }
-
-}
diff --git 
a/demo/demo-provider/src/main/resources/META-INF/spring/dubbo-demo-provider.xml 
b/demo/demo-provider/src/main/resources/META-INF/spring/dubbo-demo-provider.xml
deleted file mode 100644
index 3da73bc..0000000
--- 
a/demo/demo-provider/src/main/resources/META-INF/spring/dubbo-demo-provider.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- - Copyright 1999-2011 Alibaba Group.
- -  
- - Licensed under the Apache License, Version 2.0 (the "License");
- - you may not use this file except in compliance with the License.
- - You may obtain a copy of the License at
- -  
- -      http://www.apache.org/licenses/LICENSE-2.0
- -  
- - Unless required by applicable law or agreed to in writing, software
- - distributed under the License is distributed on an "AS IS" BASIS,
- - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- - See the License for the specific language governing permissions and
- - limitations under the License.
--->
-<beans xmlns="http://www.springframework.org/schema/beans";
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-       xmlns:dubbo="http://code.alibabatech.com/schema/dubbo";
-       xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
-       http://code.alibabatech.com/schema/dubbo 
http://code.alibabatech.com/schema/dubbo/dubbo.xsd";>
-
-       <!-- 提供方应用信息,用于计算依赖关系 -->
-       <dubbo:application name="demo-provider"  />
-
-       <!-- 使用multicast广播注册中心暴露服务地址 -->
-       <dubbo:registry address="kubernetes://224.5.6.7:1234" />
-
-       <!-- 用dubbo协议在20880端口暴露服务 -->
-       <dubbo:protocol name="dubbo" port="20880" />
-
-       <!-- 声明需要暴露的服务接口 -->
-       <bean id="demoService" 
class="com.alibaba.dubbo.demo.provider.DemoServiceImpl" />
-
-       <!-- 和本地bean一样实现服务 -->
-       <dubbo:service interface="com.alibaba.dubbo.demo.DemoService" 
ref="demoService" />
-       
-</beans>
\ No newline at end of file
diff --git 
a/demo/demo-provider/src/test/java/com/alibaba/dubbo/demo/provider/DemoProvider.java
 
b/demo/demo-provider/src/test/java/com/alibaba/dubbo/demo/provider/DemoProvider.java
deleted file mode 100644
index 7575b8f..0000000
--- 
a/demo/demo-provider/src/test/java/com/alibaba/dubbo/demo/provider/DemoProvider.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright 1999-2011 Alibaba Group.
- *  
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *  
- *      http://www.apache.org/licenses/LICENSE-2.0
- *  
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.alibaba.dubbo.demo.provider;
-
-public class DemoProvider {
-
-       public static void main(String[] args) {
-        com.alibaba.dubbo.container.Main.main(args);
-       }
-
-}
\ No newline at end of file
diff --git a/demo/demo-provider/src/test/resources/dubbo.properties 
b/demo/demo-provider/src/test/resources/dubbo.properties
deleted file mode 100644
index 96c2f04..0000000
--- a/demo/demo-provider/src/test/resources/dubbo.properties
+++ /dev/null
@@ -1,28 +0,0 @@
-##
-# Copyright 1999-2011 Alibaba Group.
-#  
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#  
-#      http://www.apache.org/licenses/LICENSE-2.0
-#  
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-##
-dubbo.container=log4j,spring
-dubbo.application.name=demo-provider
-dubbo.application.owner=william
-dubbo.registry.address=multicast://224.5.6.7:1234
-#dubbo.registry.address=zookeeper://127.0.0.1:2181
-#dubbo.registry.address=redis://127.0.0.1:6379
-#dubbo.registry.address=dubbo://127.0.0.1:9090
-#dubbo.monitor.protocol=registry
-dubbo.protocol.name=dubbo
-dubbo.protocol.port=20880
-dubbo.service.loadbalance=roundrobin
-#dubbo.log4j.file=logs/dubbo-demo-consumer.log
-#dubbo.log4j.level=WARN
\ No newline at end of file
diff --git a/demo/demo-provider/src/test/resources/log4j.xml 
b/demo/demo-provider/src/test/resources/log4j.xml
deleted file mode 100644
index ae988c3..0000000
--- a/demo/demo-provider/src/test/resources/log4j.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- - Copyright 1999-2011 Alibaba Group.
- -  
- - Licensed under the Apache License, Version 2.0 (the "License");
- - you may not use this file except in compliance with the License.
- - You may obtain a copy of the License at
- -  
- -      http://www.apache.org/licenses/LICENSE-2.0
- -  
- - Unless required by applicable law or agreed to in writing, software
- - distributed under the License is distributed on an "AS IS" BASIS,
- - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- - See the License for the specific language governing permissions and
- - limitations under the License.
--->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"; 
debug="false">
-       <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
-               <layout class="org.apache.log4j.PatternLayout">
-                       <param name="ConversionPattern" value="[%d{dd/MM/yy 
hh:mm:ss:sss z}] %t %5p %c{2}: %m%n" />
-               </layout>
-       </appender>
-       <root>
-               <level value="INFO" />
-               <appender-ref ref="CONSOLE" />
-       </root>
-</log4j:configuration>
\ No newline at end of file
diff --git a/demo/pom.xml b/demo/pom.xml
deleted file mode 100644
index a3dab28..0000000
--- a/demo/pom.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-<!-- 
- - Copyright 1999-2011 Alibaba Group.
- -  
- - Licensed under the Apache License, Version 2.0 (the "License");
- - you may not use this file except in compliance with the License.
- - You may obtain a copy of the License at
- -  
- -      http://www.apache.org/licenses/LICENSE-2.0
- -  
- - Unless required by applicable law or agreed to in writing, software
- - distributed under the License is distributed on an "AS IS" BASIS,
- - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- - See the License for the specific language governing permissions and
- - limitations under the License.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
-       <modelVersion>4.0.0</modelVersion>
-       <parent>
-               <groupId>com.alibaba</groupId>
-               <artifactId>dubbo-parent</artifactId>
-               <version>2.6.7</version>
-       </parent>
-       
-       <groupId>com.alibaba.dubbo</groupId>
-       <artifactId>kubernetes-demo</artifactId>
-       <version>1.0.0-SNAPSHOT</version>
-       <packaging>pom</packaging>
-       <name>${project.artifactId}</name>
-       <description>The demo module of dubbo kubernetes project</description>
-       <properties>
-               <skip_maven_deploy>true</skip_maven_deploy>
-       </properties>
-       <modules>
-               <module>demo-api</module>
-               <module>demo-provider</module>
-               <module>demo-consumer</module>
-       </modules>
-
-
-       <build>
-               <plugins>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-compiler-plugin</artifactId>
-                               <!-- since 2.0 -->
-                               <version>3.7.0</version>
-                               <configuration>
-                                       <!-- use the Java 8 language features 
-->
-                                       <source>8</source>
-                                       <!-- want the compiled classes to be 
compatible with JVM 1.8 -->
-                                       <target>8</target>
-                                       <!-- The -encoding argument for the 
Java compiler. -->
-                                       <encoding>UTF8</encoding>
-                               </configuration>
-                       </plugin>
-               </plugins>
-       </build>
-</project>
diff --git a/pom.xml b/pom.xml
deleted file mode 100644
index ee82944..0000000
--- a/pom.xml
+++ /dev/null
@@ -1,140 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0";
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
-    <modelVersion>4.0.0</modelVersion>
-
-    <groupId>com.alibaba.dubbo</groupId>
-    <artifactId>dubbo-kubernetes</artifactId>
-    <version>1.0.0-SNAPSHOT</version>
-    <packaging>pom</packaging>
-
-    <name>dubbo-kubernetes</name>
-
-    <modules>
-        <module>registry-dns</module>
-        <module>registry-api</module>
-               <module>demo</module>
-    </modules>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <skip_maven_deploy>false</skip_maven_deploy>
-    </properties>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <version>3.7.0</version>
-                <configuration>
-                    <compilerArgument>-proc:none</compilerArgument>
-                    <source>1.8</source>
-                    <target>1.8</target>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
-    <profiles>
-        <profile>
-            <id>release</id>
-            <build>
-                <plugins>
-                    <plugin>
-                        <artifactId>maven-javadoc-plugin</artifactId>
-                        <version>3.0.0</version>
-                        <executions>
-                            <execution>
-                                <id>attach-javadoc</id>
-                                <goals>
-                                    <goal>jar</goal>
-                                </goals>
-                                <configuration>
-                                    <doclint>none</doclint>
-                                </configuration>
-                            </execution>
-                        </executions>
-                        <configuration>
-                            <show>public</show>
-                            <charset>UTF-8</charset>
-                            <encoding>UTF-8</encoding>
-                            <docencoding>UTF-8</docencoding>
-                            <links>
-                                
<link>http://docs.oracle.com/javase/7/docs/api</link>
-                            </links>
-                        </configuration>
-                    </plugin>
-                    <plugin>
-                        <artifactId>maven-source-plugin</artifactId>
-                        <version>3.0.1</version>
-                        <executions>
-                            <execution>
-                                <id>attach-sources</id>
-                                <goals>
-                                    <goal>jar</goal>
-                                </goals>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-    </profiles>
-
-    <url>https://github.com/dubbo/dubbo-kubernates</url>
-    <inceptionYear>2011</inceptionYear>
-    <licenses>
-        <license>
-            <name>Apache License, Version 2.0</name>
-            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
-            <distribution>repo</distribution>
-        </license>
-    </licenses>
-
-    <scm>
-        <url>https://github.com/dubbo/dubbo-kubernates</url>
-        
<connection>scm:git:https://github.com/dubbo/dubbo-kubernates.git</connection>
-        
<developerConnection>scm:git:https://github.com/dubbo/dubbo-kubernates.git</developerConnection>
-    </scm>
-    <mailingLists>
-        <mailingList>
-            <name>Development List</name>
-            <subscribe>[email protected]</subscribe>
-            <unsubscribe>[email protected]</unsubscribe>
-            <post>[email protected]</post>
-        </mailingList>
-        <mailingList>
-            <name>Commits List</name>
-            <subscribe>[email protected]</subscribe>
-            <unsubscribe>[email protected]</unsubscribe>
-            <post>[email protected]</post>
-        </mailingList>
-        <mailingList>
-            <name>Issues List</name>
-            <subscribe>[email protected]</subscribe>
-            <unsubscribe>[email protected]</unsubscribe>
-            <post>[email protected]</post>
-        </mailingList>
-    </mailingLists>
-    <developers>
-        <developer>
-            <id>dubbo.io</id>
-            <name>The Dubbo Project Contributors</name>
-            <email>[email protected]</email>
-            <url>http://dubbo.apache.org/</url>
-        </developer>
-    </developers>
-
-    <organization>
-        <name>The Apache Software Foundation</name>
-        <url>http://www.apache.org/</url>
-    </organization>
-
-    <issueManagement>
-        <system>Github Issues</system>
-        <url>https://github.com/dubbo/dubbo-kubernates/issues</url>
-    </issueManagement>
-
-</project>
\ No newline at end of file
diff --git a/registry-api/pom.xml b/registry-api/pom.xml
deleted file mode 100644
index 379ef2a..0000000
--- a/registry-api/pom.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Copyright 2016 Google, Inc.
-  ~
-  ~ Licensed under the Apache License, Version 2.0 (the "License");
-  ~ you may not use this file except in compliance with the License.
-  ~ You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing, software
-  ~ distributed under the License is distributed on an "AS IS" BASIS,
-  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  ~ See the License for the specific language governing permissions and
-  ~ limitations under the License.
-  -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0";
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>kubernetes-registry-api</artifactId>
-    <packaging>jar</packaging>
-    <parent>
-        <groupId>com.alibaba.dubbo</groupId>
-        <artifactId>dubbo-kubernetes</artifactId>
-        <version>1.0.0-SNAPSHOT</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <dependencies>
-        <dependency>
-            <groupId>io.fabric8</groupId>
-            <artifactId>kubernetes-client</artifactId>
-            <version>4.2.0</version>
-        </dependency>
-        <dependency>
-            <groupId>com.alibaba</groupId>
-            <artifactId>dubbo-registry-api</artifactId>
-            <version>2.6.7</version>
-        </dependency>
-        <dependency>
-            <groupId>com.google.guava</groupId>
-            <artifactId>guava</artifactId>
-            <version>23.0</version>
-        </dependency>
-    </dependencies>
-
-    <build>
-        <extensions>
-            <extension>
-                <groupId>kr.motd.maven</groupId>
-                <artifactId>os-maven-plugin</artifactId>
-            </extension>
-        </extensions>
-        <plugins>
-            <plugin>
-                <artifactId>maven-jar-plugin</artifactId>
-            </plugin>
-            <plugin>
-                <artifactId>maven-dependency-plugin</artifactId>
-            </plugin>
-            <plugin>
-                <groupId>org.xolstice.maven.plugins</groupId>
-                <artifactId>protobuf-maven-plugin</artifactId>
-            </plugin>
-        </plugins>
-    </build>
-
-</project>
diff --git 
a/registry-api/src/main/java/com/alibaba/dubbo/registry/kubernetes/KubernetesRegistry.java
 
b/registry-api/src/main/java/com/alibaba/dubbo/registry/kubernetes/KubernetesRegistry.java
deleted file mode 100644
index 49693f8..0000000
--- 
a/registry-api/src/main/java/com/alibaba/dubbo/registry/kubernetes/KubernetesRegistry.java
+++ /dev/null
@@ -1,168 +0,0 @@
-/*
- * Copyright 2016 Google, Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.alibaba.dubbo.registry.kubernetes;
-
-import com.alibaba.dubbo.common.URL;
-import com.alibaba.dubbo.common.utils.NamedThreadFactory;
-import com.alibaba.dubbo.common.utils.StringUtils;
-import com.alibaba.dubbo.registry.NotifyListener;
-import com.alibaba.dubbo.registry.support.FailbackRegistry;
-import com.google.common.base.Preconditions;
-import io.fabric8.kubernetes.api.model.Endpoints;
-import io.fabric8.kubernetes.client.DefaultKubernetesClient;
-import io.fabric8.kubernetes.client.KubernetesClient;
-import io.fabric8.kubernetes.client.KubernetesClientException;
-import io.fabric8.kubernetes.client.Watcher;
-
-import java.net.URI;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.concurrent.Executors;
-import java.util.concurrent.ScheduledExecutorService;
-import java.util.concurrent.TimeUnit;
-
-/**
- * kuberntes registry : treat kubernetes as the registry
- * <p>
- * 1) for register, it is done automatically by the processing of orchestration
- * 2)  for service address discovery, watch the resource and update accordingly
- * </p>
- */
-public class KubernetesRegistry extends FailbackRegistry {
-    //default master url https://kubernetes.default.svc
-    private final static ScheduledExecutorService TIMER_SERVICE = 
Executors.newSingleThreadScheduledExecutor(new 
NamedThreadFactory("KubernetesRegistry"));
-
-    private final KubernetesClient kubernetesClient;
-
-    public KubernetesRegistry(URL url) {
-        super(url);
-        kubernetesClient = new DefaultKubernetesClient(url.getAddress());
-    }
-
-    @Override
-    protected void doRegister(URL url) {
-
-    }
-
-    @Override
-    protected void doUnregister(URL url) {
-
-    }
-
-    @Override
-    protected void doSubscribe(final URL url, final NotifyListener 
notifyListener) {
-        String[] serviceDesc = url.getServiceKey().split("\\.");
-        String kubernateTarget = System.getenv(serviceDesc[serviceDesc.length 
- 1] + "_target");
-        if (StringUtils.isEmpty(kubernateTarget)) {
-            return;
-        }
-        URI targetUri = URI.create(kubernateTarget);
-        String targetPath = Preconditions.checkNotNull(targetUri.getPath(), 
"targetPath");
-        Preconditions.checkArgument(targetPath.startsWith("/"),
-                "the path component (%s) of the target (%s) must start with 
'/'", targetPath, targetUri);
-
-        String[] parts = targetPath.split("/");
-        if (parts.length != 4) {
-            throw new IllegalArgumentException("Must be formatted like 
kubernetes:///{namespace}/{service}/{port}");
-        }
-
-        try {
-            int targetPort = Integer.valueOf(parts[3]);
-            String targetName = parts[1];
-            String targetNameSpace = parts[2];
-
-
-            Endpoints endpoints = 
kubernetesClient.endpoints().inNamespace(targetNameSpace)
-                    .withName(targetName)
-                    .get();
-
-            if (endpoints == null) {
-                // Didn't find anything, retrying
-                TIMER_SERVICE.schedule(() -> {
-                    doSubscribe(url, notifyListener);
-                }, 30, TimeUnit.SECONDS);
-                return;
-            }
-
-            update(endpoints, notifyListener, targetPort);
-            watch(notifyListener, targetNameSpace, targetName, targetPort);
-
-        } catch (NumberFormatException e) {
-            throw new IllegalArgumentException("Unable to parse port number", 
e);
-        }
-    }
-
-    private void update(Endpoints endpoints, final NotifyListener 
notifyListener, int targetPort) {
-        List<URL> servers = new ArrayList<>();
-        endpoints.getSubsets().stream().forEach(subset -> {
-            long matchingPorts = subset.getPorts().stream().filter(p -> {
-                return p.getPort() == targetPort;
-            }).count();
-            if (matchingPorts > 0) {
-                subset.getAddresses().stream().map(address -> {
-                    return new URL("", address.getIp(), targetPort);
-                }).forEach(address -> {
-                    servers.add(address);
-                });
-            }
-        });
-
-        notifyListener.notify(servers);
-    }
-
-    private void watch(final NotifyListener notifyListener, String 
targetNameSpace, String targetName, int targetPort) {
-        kubernetesClient.endpoints().inNamespace(targetNameSpace)
-                .withName(targetName)
-                .watch(new Watcher<Endpoints>() {
-                    @Override
-                    public void eventReceived(Action action, Endpoints 
endpoints) {
-                        switch (action) {
-                            case MODIFIED:
-                            case ADDED:
-                                update(endpoints, notifyListener, targetPort);
-                                return;
-                            case DELETED:
-                                //TODO
-                                
//notifyListener.notify(Collections.emptyList());
-                                return;
-                        }
-                    }
-
-                    @Override
-                    public void onClose(KubernetesClientException e) {
-
-                    }
-                });
-    }
-
-    @Override
-    protected void doUnsubscribe(URL url, NotifyListener notifyListener) {
-        //TODO
-        //Need cancel the watcher
-    }
-
-    @Override
-    public boolean isAvailable() {
-        return true;
-    }
-
-    @Override
-    public void destroy() {
-        super.destroy();
-        kubernetesClient.close();
-    }
-}
diff --git 
a/registry-api/src/main/java/com/alibaba/dubbo/registry/kubernetes/KubernetesRegistryFactory.java
 
b/registry-api/src/main/java/com/alibaba/dubbo/registry/kubernetes/KubernetesRegistryFactory.java
deleted file mode 100644
index f6494ce..0000000
--- 
a/registry-api/src/main/java/com/alibaba/dubbo/registry/kubernetes/KubernetesRegistryFactory.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright 1999-2011 Alibaba Group.
- *  
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *  
- *      http://www.apache.org/licenses/LICENSE-2.0
- *  
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.alibaba.dubbo.registry.kubernetes;
-
-import com.alibaba.dubbo.common.URL;
-import com.alibaba.dubbo.registry.Registry;
-import com.alibaba.dubbo.registry.support.AbstractRegistryFactory;
-
-/**
- * KubernetesRegistryFactory.
- */
-public class KubernetesRegistryFactory extends AbstractRegistryFactory {
-
-       public Registry createRegistry(URL url) {
-        return new KubernetesRegistry(url);
-    }
-
-}
\ No newline at end of file
diff --git 
a/registry-api/src/main/resources/META-INF/dubbo/internal/com.alibaba.dubbo.registry.RegistryFactory
 
b/registry-api/src/main/resources/META-INF/dubbo/internal/com.alibaba.dubbo.registry.RegistryFactory
deleted file mode 100644
index 78911fd..0000000
--- 
a/registry-api/src/main/resources/META-INF/dubbo/internal/com.alibaba.dubbo.registry.RegistryFactory
+++ /dev/null
@@ -1 +0,0 @@
-kubernetes=com.alibaba.dubbo.registry.kubernetes.KubernetesRegistryFactory
\ No newline at end of file
diff --git a/registry-dns/pom.xml b/registry-dns/pom.xml
deleted file mode 100644
index e546e76..0000000
--- a/registry-dns/pom.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Copyright 2016 Google, Inc.
-  ~
-  ~ Licensed under the Apache License, Version 2.0 (the "License");
-  ~ you may not use this file except in compliance with the License.
-  ~ You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing, software
-  ~ distributed under the License is distributed on an "AS IS" BASIS,
-  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  ~ See the License for the specific language governing permissions and
-  ~ limitations under the License.
-  -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0";
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>kubernetes-registry-dns</artifactId>
-    <packaging>jar</packaging>
-    <parent>
-        <groupId>com.alibaba.dubbo</groupId>
-        <artifactId>dubbo-kubernetes</artifactId>
-        <version>1.0.0-SNAPSHOT</version>
-        <relativePath>../pom.xml</relativePath>
-    </parent>
-
-    <dependencies>
-        <dependency>
-            <groupId>com.alibaba</groupId>
-            <artifactId>dubbo-registry-api</artifactId>
-            <version>2.6.1</version>
-        </dependency>
-    </dependencies>
-
-    <build>
-        <extensions>
-            <extension>
-                <groupId>kr.motd.maven</groupId>
-                <artifactId>os-maven-plugin</artifactId>
-            </extension>
-        </extensions>
-        <plugins>
-            <plugin>
-                <artifactId>maven-jar-plugin</artifactId>
-            </plugin>
-            <plugin>
-                <artifactId>maven-dependency-plugin</artifactId>
-            </plugin>
-            <plugin>
-                <groupId>org.xolstice.maven.plugins</groupId>
-                <artifactId>protobuf-maven-plugin</artifactId>
-            </plugin>
-        </plugins>
-    </build>
-
-</project>
diff --git 
a/registry-dns/src/main/java/com/alibaba/dubbo/registry/dns/DNSRegistry.java 
b/registry-dns/src/main/java/com/alibaba/dubbo/registry/dns/DNSRegistry.java
deleted file mode 100644
index 5714c11..0000000
--- a/registry-dns/src/main/java/com/alibaba/dubbo/registry/dns/DNSRegistry.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright 2016 Google, Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.alibaba.dubbo.registry.dns;
-
-import com.alibaba.dubbo.common.URL;
-import com.alibaba.dubbo.registry.NotifyListener;
-import com.alibaba.dubbo.registry.support.FailbackRegistry;
-
-/**
- * static registry : nothing to do whenever register or subscribe
- */
-public class DNSRegistry extends FailbackRegistry {
-    public DNSRegistry(URL url) {
-        super(url);
-    }
-
-    @Override
-    protected void doRegister(URL url) {
-
-    }
-
-    @Override
-    protected void doUnregister(URL url) {
-
-    }
-
-    @Override
-    protected void doSubscribe(URL url, NotifyListener notifyListener) {
-
-    }
-
-    @Override
-    protected void doUnsubscribe(URL url, NotifyListener notifyListener) {
-
-    }
-
-    @Override
-    public boolean isAvailable() {
-        return true;
-    }
-}
diff --git 
a/registry-dns/src/main/java/com/alibaba/dubbo/registry/dns/DNSRegistryFactory.java
 
b/registry-dns/src/main/java/com/alibaba/dubbo/registry/dns/DNSRegistryFactory.java
deleted file mode 100644
index d8ca55f..0000000
--- 
a/registry-dns/src/main/java/com/alibaba/dubbo/registry/dns/DNSRegistryFactory.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright 1999-2011 Alibaba Group.
- *  
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *  
- *      http://www.apache.org/licenses/LICENSE-2.0
- *  
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.alibaba.dubbo.registry.dns;
-
-import com.alibaba.dubbo.common.URL;
-import com.alibaba.dubbo.registry.Registry;
-import com.alibaba.dubbo.registry.support.AbstractRegistryFactory;
-
-/**
- * DNSRegistryFactory.
- */
-public class DNSRegistryFactory extends AbstractRegistryFactory {
-
-       public Registry createRegistry(URL url) {
-        return new DNSRegistry(url);
-    }
-
-}
\ No newline at end of file
diff --git 
a/registry-dns/src/main/resources/META-INF/dubbo/internal/com.alibaba.dubbo.registry.RegistryFactory
 
b/registry-dns/src/main/resources/META-INF/dubbo/internal/com.alibaba.dubbo.registry.RegistryFactory
deleted file mode 100644
index 2450baa..0000000
--- 
a/registry-dns/src/main/resources/META-INF/dubbo/internal/com.alibaba.dubbo.registry.RegistryFactory
+++ /dev/null
@@ -1 +0,0 @@
-dns=com.alibaba.dubbo.registry.dns.DNSRegistryFactory
\ No newline at end of file

Reply via email to