VOL-613 : PON simulator kubernetes integration
- Added onos/freeradius deployment templates
- Added olt, onu and rg deployment templates
- Added cni annotation to all templates to work with CNI Genie
- Added more instructions in the README
Amendments:
- Removed cni annotation from the service block
Change-Id: I63c28488f9cfcbfc2701391e67874cb8d998528b
diff --git a/k8s/olt.yml b/k8s/olt.yml
new file mode 100644
index 0000000..9093c3b
--- /dev/null
+++ b/k8s/olt.yml
@@ -0,0 +1,61 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: olt
+ labels:
+ name: olt
+spec:
+ ports:
+ - name: grpc
+ port: 50060
+ targetPort: 50060
+ selector:
+ app: olt
+---
+apiVersion: apps/v1beta1
+kind: Deployment
+metadata:
+ name: olt
+spec:
+ replicas: 1
+ template:
+ metadata:
+ labels:
+ app: olt
+ annotations:
+ cni: "weave"
+ spec:
+ containers:
+ - name: olt
+ image: "voltha-ponsim:latest"
+ env:
+ - name: POD_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.podIP
+ - name: NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+
+ args:
+ - "/app/ponsim"
+ - "-device_type"
+ - "OLT"
+ - "-onus"
+ - "3"
+ - "-internal_if"
+ - "eth0"
+ - "-external_if"
+ - "eth0"
+ - "-vcore_endpoint"
+ - "vcore"
+ - "-promiscuous"
+ - "-fluentd"
+ - "fluentd.$(NAMESPACE).svc.cluster.local:24224"
+
+ ports:
+ - containerPort: 50060
+ name: grpc-port
+
+ imagePullPolicy: Never