mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-20 21:30:35 +00:00
56 lines
1.9 KiB
YAML
56 lines
1.9 KiB
YAML
{{- if .Values.submariner.serviceDiscovery }}
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ template "submariner.fullname" . }}-lighthouse-agent
|
|
labels:
|
|
heritage: {{ .Release.Service | quote }}
|
|
release: {{ .Release.Name | quote }}
|
|
chart: {{ template "submariner.chart" . }}
|
|
app: {{ template "submariner.fullname" . }}-lighthouse-agent
|
|
component: lighthouse
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: {{ template "submariner.fullname" . }}-lighthouse-agent
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ template "submariner.fullname" . }}-lighthouse-agent
|
|
spec:
|
|
serviceAccountName: {{ template "submariner.lighthouseAgentServiceAccountName" . }}
|
|
containers:
|
|
- command:
|
|
- lighthouse-agent.sh
|
|
env:
|
|
- name: SUBMARINER_NAMESPACE
|
|
value: "{{ .Release.Namespace }}"
|
|
- name: SUBMARINER_CLUSTERID
|
|
value: "{{ .Values.submariner.clusterId }}"
|
|
- name: SUBMARINER_DEBUG
|
|
value: "{{ .Values.submariner.debug }}"
|
|
{{- if .Values.broker.globalnet }}
|
|
- name: SUBMARINER_GLOBALNET_ENABLED
|
|
value: "true"
|
|
{{- end }}
|
|
- name: BROKER_K8S_APISERVER
|
|
value: "{{ .Values.broker.server }}"
|
|
- name: BROKER_K8S_APISERVERTOKEN
|
|
value: "{{ .Values.broker.token }}"
|
|
- name: BROKER_K8S_REMOTENAMESPACE
|
|
value: "{{ .Values.broker.namespace }}"
|
|
{{- if .Values.broker.insecure }}
|
|
- name: BROKER_K8S_INSECURE
|
|
value: "true"
|
|
{{- else }}
|
|
- name: BROKER_K8S_CA
|
|
value: "{{ .Values.broker.ca }}"
|
|
{{- end }}
|
|
name: {{ template "submariner.fullname" . }}-lighthouse-agent
|
|
image: {{ .Values.lighthouse.image.repository }}:{{ default .Chart.AppVersion .Values.lighthouse.image.tag }}
|
|
imagePullPolicy: {{ .Values.lighthouse.image.pullPolicy }}
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 0
|
|
{{- end }}
|