SEBA-770 Update Ponsim chart to use VOLTHA 1.7.0
Change-Id: I9aadd02f9031741ffb131dbc70ee1981c8e49236
diff --git a/ponsimv2/templates/olt.yaml b/ponsimv2/templates/olt.yaml
index 3f03ed5..fc0a50d 100644
--- a/ponsimv2/templates/olt.yaml
+++ b/ponsimv2/templates/olt.yaml
@@ -28,7 +28,7 @@
port: 50060
targetPort: 50060
selector:
- app: olt{{ $i }}
+ olt: olt{{ $i }}
---
apiVersion: apps/v1beta1
kind: Deployment
@@ -40,10 +40,23 @@
template:
metadata:
labels:
- app: olt{{ $i }}
+ app: ponsim
+ olt: olt{{ $i }}
annotations:
cni: "calico,nni{{ $i }}"
spec:
+ affinity:
+ podAffinity:
+ preferredDuringSchedulingIgnoredDuringExecution:
+ - weight: 100
+ podAffinityTerm:
+ labelSelector:
+ matchExpressions:
+ - key: app
+ operator: In
+ values:
+ - mininet
+ topologyKey: kubernetes.io/hostname
containers:
- name: olt{{ $i }}
image: "{{ $.Values.global.registry }}{{ $.Values.images.olt.repository }}:{{ tpl $.Values.images.olt.tag $ }}"