VOL-1406: Deploy voltha 2.0 in a k8s cluster
- Also added sleep to watching rw-core to ensure that the
watching core does not respond to a request before the
core that seized it.
Change-Id: I9998975b6dda42b3bd58112115c5122bf2b49d42
diff --git a/k8s/affinity-router.yml b/k8s/affinity-router.yml
index a92e442..3fcdaa2 100644
--- a/k8s/affinity-router.yml
+++ b/k8s/affinity-router.yml
@@ -12,6 +12,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+apiVersion: v1
+kind: Service
+metadata:
+ name: afrouter
+ namespace: voltha
+spec:
+ clusterIP: None
+ ports:
+ - name: grpc
+ port: 55555
+ targetPort: 55555
+ selector:
+ app: afrouter
+---
apiVersion: apps/v1beta1
kind: Deployment
metadata: