mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-21 17:20:35 +00:00
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>
74 lines
2.5 KiB
YAML
74 lines
2.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: {{ template "submariner.fullname" . }}-routeagent
|
|
labels:
|
|
heritage: {{ .Release.Service | quote }}
|
|
release: {{ .Release.Name | quote }}
|
|
chart: {{ template "submariner.chart" . }}
|
|
app: {{ template "submariner.fullname" . }}-routeagent
|
|
component: routeagent
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: {{ template "submariner.fullname" . }}-routeagent
|
|
template:
|
|
metadata:
|
|
labels:
|
|
heritage: {{ .Release.Service | quote }}
|
|
release: {{ .Release.Name | quote }}
|
|
chart: {{ template "submariner.chart" . }}
|
|
app: {{ template "submariner.fullname" . }}-routeagent
|
|
component: routeagent
|
|
spec:
|
|
serviceAccountName: {{ template "submariner.routeAgentServiceAccountName" . }}
|
|
terminationGracePeriodSeconds: 10
|
|
hostNetwork: true
|
|
containers:
|
|
- name: routeagent
|
|
command:
|
|
- submariner-route-agent.sh
|
|
image: {{ .Values.routeAgent.image.repository }}:{{ .Values.routeAgent.image.tag }}
|
|
imagePullPolicy: {{ .Values.routeAgent.image.pullPolicy }}
|
|
env:
|
|
- name: SUBMARINER_NAMESPACE
|
|
value: "{{ .Release.Namespace }}"
|
|
- name: SUBMARINER_CLUSTERID
|
|
value: "{{ .Values.submariner.clusterId }}"
|
|
- name: SUBMARINER_DEBUG
|
|
value: "{{ .Values.submariner.debug }}"
|
|
- name: SUBMARINER_CLUSTERCIDR
|
|
value: "{{ .Values.submariner.clusterCidr }}"
|
|
- name: SUBMARINER_SERVICECIDR
|
|
value: "{{ .Values.submariner.serviceCidr }}"
|
|
resources:
|
|
{{ toYaml .Values.routeAgent.resources | indent 10 }}
|
|
securityContext:
|
|
allowPrivilegeEscalation: true
|
|
capabilities:
|
|
add:
|
|
- ALL
|
|
privileged: true
|
|
readOnlyRootFilesystem: false
|
|
runAsNonRoot: false
|
|
volumeMounts:
|
|
# Because we don't actually run iptables locally, but chroot in to the host
|
|
- mountPath: /host
|
|
name: host-slash
|
|
readOnly: true
|
|
{{- with .Values.routeAgent.nodeSelector }}
|
|
nodeSelector:
|
|
{{ toYaml . | indent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.routeAgent.tolerations }}
|
|
tolerations:
|
|
{{ toYaml . | indent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.routeAgent.affinity }}
|
|
affinity:
|
|
{{ toYaml . | indent 8 }}
|
|
{{- end }}
|
|
volumes:
|
|
- name: host-slash
|
|
hostPath:
|
|
path: / |