mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-20 21:30:35 +00:00
The operator no longer runs leader-for-life election so enable leader-with-lease via the CLI arg in the pod spec. Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
58 lines
1.7 KiB
YAML
58 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
heritage: {{ .Release.Service | quote }}
|
|
release: {{ .Release.Name | quote }}
|
|
chart: {{ template "submariner.chart" . }}
|
|
app: {{ template "submariner.fullname" . }}
|
|
component: gateway
|
|
name: {{ template "submariner.fullname" . }}
|
|
spec:
|
|
progressDeadlineSeconds: 600
|
|
replicas: 1
|
|
revisionHistoryLimit: 10
|
|
selector:
|
|
matchLabels:
|
|
name: {{ template "submariner.fullname" . }}
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
name: {{ template "submariner.fullname" . }}
|
|
spec:
|
|
containers:
|
|
- args:
|
|
- --leader-elect
|
|
env:
|
|
- name: WATCH_NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
apiVersion: v1
|
|
fieldPath: metadata.namespace
|
|
- name: POD_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
apiVersion: v1
|
|
fieldPath: metadata.name
|
|
- name: OPERATOR_NAME
|
|
value: submariner-operator
|
|
image: {{ .Values.operator.image.repository }}:{{ default .Chart.AppVersion .Values.operator.image.tag }}
|
|
imagePullPolicy: {{ .Values.operator.image.pullPolicy }}
|
|
name: submariner-operator
|
|
resources: {}
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
dnsPolicy: ClusterFirst
|
|
restartPolicy: Always
|
|
schedulerName: default-scheduler
|
|
securityContext: {}
|
|
serviceAccount: {{ template "submariner.fullname" . }}
|
|
serviceAccountName: {{ template "submariner.fullname" . }}
|
|
terminationGracePeriodSeconds: 30
|