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/rg.yml b/k8s/rg.yml
new file mode 100644
index 0000000..27dd346
--- /dev/null
+++ b/k8s/rg.yml
@@ -0,0 +1,27 @@
+apiVersion: apps/v1beta1
+kind: Deployment
+metadata:
+ name: rg
+spec:
+ replicas: 1
+ template:
+ metadata:
+ labels:
+ app: rg
+ annotations:
+ cni: "pon0"
+ spec:
+ containers:
+ - name: rg
+ image: "voltha-tester:latest"
+ env:
+ - name: POD_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.podIP
+ - name: NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ command: [ "/bin/bash", "-c", "trap : TERM INT; sleep infinity & wait" ]
+ imagePullPolicy: Never