Fix terminationGracePeriodSeconds in Submariner Pods

In K8s the default termination grace period for a Pod is 30
secs. However, for Submariner Pods, we were configuring this as
0 secs, because of which, cleanup was not happening in a
consistent manner and we are seeing failures in CI jobs.

This PR modifies the terminationGracePeriodSeconds to 10 secs.

Along with this change, it also uses the proper namespace of
submariner in the excluded namespaces.

Fixes issue: https://github.com/submariner-io/submariner-charts/issues/39

Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
This commit is contained in:
Sridhar Gaddam
2020-06-08 11:05:16 +02:00
committed by Miguel Angel Ajo Pelayo
parent 77fe3d91fa
commit c905d9fdca
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -130,5 +130,5 @@ spec:
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 0
terminationGracePeriodSeconds: 10
serviceAccountName: {{ template "submariner.engineServiceAccountName" . }}
+2 -1
View File
@@ -21,6 +21,7 @@ spec:
hostNetwork: true
serviceAccountName: submariner-globalnet
serviceAccount: submariner-globalnet
terminationGracePeriodSeconds: 10
nodeSelector:
submariner.io/gateway: 'true'
containers:
@@ -31,7 +32,7 @@ spec:
- name: SUBMARINER_CLUSTERID
value: '{{ .Values.submariner.clusterId }}'
- name: SUBMARINER_EXCLUDENS
value: 'submariner,kube-system,operators'
value: 'submariner-operator,kube-system,operators'
- name: SUBMARINER_NAMESPACE
value: '{{ .Release.Namespace }}'
securityContext:
+1 -1
View File
@@ -22,7 +22,7 @@ spec:
component: routeagent
spec:
serviceAccountName: {{ template "submariner.routeAgentServiceAccountName" . }}
terminationGracePeriodSeconds: 0
terminationGracePeriodSeconds: 10
hostNetwork: true
containers:
- name: routeagent