From d4a0bc4d1581ea779c5f7c529d0a024f8a1ad02f Mon Sep 17 00:00:00 2001 From: Sridhar Gaddam Date: Wed, 22 Jan 2020 12:30:22 +0530 Subject: [PATCH] Update Submariner Engine to a DaemonSet Currently, the Submariner Engine is a deployment with nodeSelector (for submariner.io/gateway=true). It is seen that when the label is removed from the node after SM engine is deployed, SM engine continues to run on that node. This behavior is not in Sync with the DaemonSet (used by GlobalnetController) behavior where the POD is immediately terminated when the label is removed from the node. This PR updates SM engine as DaemonSet so that we have consistent behavior between the SM Engine POD and GlobalnetController POD. Signed-off-by: Sridhar Gaddam --- submariner/templates/engine-deploy.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/submariner/templates/engine-deploy.yaml b/submariner/templates/engine-deploy.yaml index dd18f80..7bba5f4 100644 --- a/submariner/templates/engine-deploy.yaml +++ b/submariner/templates/engine-deploy.yaml @@ -1,5 +1,5 @@ apiVersion: apps/v1 -kind: Deployment +kind: DaemonSet metadata: labels: heritage: {{ .Release.Service | quote }} @@ -9,16 +9,13 @@ metadata: component: engine name: {{ template "submariner.fullname" . }} spec: - progressDeadlineSeconds: 600 - replicas: 1 revisionHistoryLimit: 5 selector: matchLabels: app: {{ template "submariner.fullname" . }}-engine strategy: rollingUpdate: - maxSurge: 1 - maxUnavailable: 0 + maxUnavailable: 1 type: RollingUpdate template: metadata: