Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Changes for running on a 3-node setup
Adding nodeSelector constraint to schedule all PONSim related pods to the
K8S master node. Changing genie-policy-controller to run only on K8S
master node.

Signed-off-by: Ciprian Barbu <ciprian.barbu@enea.com>
  • Loading branch information
ciprian-barbu-enea committed Jun 4, 2019
1 parent eb3c8fd commit 561dfcf
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mininet/values.yaml
Expand Up @@ -28,7 +28,8 @@ image:

resources: {}

nodeSelector: {}
nodeSelector:
node-role.kubernetes.io/master: ""

tolerations: []

Expand Down
4 changes: 3 additions & 1 deletion ponnet/templates/genie-cni-1.8.yaml
Expand Up @@ -325,4 +325,6 @@ spec:
volumes:
- name: etc-kubernetes
hostPath:
path: /etc/kubernetes
path: /etc/kubernetes
nodeSelector:
node-role.kubernetes.io/master: ""
2 changes: 2 additions & 0 deletions ponsimv2/templates/olt.yaml
Expand Up @@ -71,3 +71,5 @@ spec:
ports:
- containerPort: 50060
name: grpc-port
nodeSelector:
node-role.kubernetes.io/master: ""
2 changes: 2 additions & 0 deletions ponsimv2/templates/onu.yaml
Expand Up @@ -84,3 +84,5 @@ spec:
ports:
- containerPort: 50061
name: grpc-port
nodeSelector:
node-role.kubernetes.io/master: ""
2 changes: 2 additions & 0 deletions ponsimv2/templates/rg.yaml
Expand Up @@ -55,3 +55,5 @@ spec:
command: [ "/bin/bash", "-c", "trap : TERM INT; sleep infinity & wait" ]
securityContext:
privileged: true
nodeSelector:
node-role.kubernetes.io/master: ""

0 comments on commit 561dfcf

Please sign in to comment.