mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-21 22:00:35 +00:00
Compare commits
21
Commits
@@ -0,0 +1,17 @@
|
|||||||
|
name: DCO Check
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
dco:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: DCO Check
|
||||||
|
steps:
|
||||||
|
- name: Get PR Commits
|
||||||
|
id: 'get-pr-commits'
|
||||||
|
uses: tim-actions/get-pr-commits@master
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: DCO Check
|
||||||
|
uses: tim-actions/dco@master
|
||||||
|
with:
|
||||||
|
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
||||||
+2
-1
@@ -8,6 +8,7 @@ env:
|
|||||||
- GH_URL=https://submariner-io.github.io/submariner-charts/charts
|
- GH_URL=https://submariner-io.github.io/submariner-charts/charts
|
||||||
- CHARTS_DIR=charts
|
- CHARTS_DIR=charts
|
||||||
- YAMLLINT_VERSION=1.17.0
|
- YAMLLINT_VERSION=1.17.0
|
||||||
|
- HELM_FLAGS='--set submariner.serviceDiscovery=true,serviceAccounts.globalnet.create=true,globalCidr="169.254.0.0/16"'
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- wget -q ${HELM_URL}/${HELM_TGZ}
|
- wget -q ${HELM_URL}/${HELM_TGZ}
|
||||||
@@ -17,7 +18,7 @@ install:
|
|||||||
- sudo pip install yamllint=="${YAMLLINT_VERSION}"
|
- sudo pip install yamllint=="${YAMLLINT_VERSION}"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- for dir in submariner submariner-k8s-broker; do helm lint $dir; done
|
- for dir in submariner submariner-k8s-broker; do helm lint $dir $HELM_FLAGS; done
|
||||||
- yamllint -c .yamllint.yml -s $(find . -type f -name "Chart.yaml")
|
- yamllint -c .yamllint.yml -s $(find . -type f -name "Chart.yaml")
|
||||||
- yamllint -c .yamllint.yml -s $(find . -type f -name "values.yaml")
|
- yamllint -c .yamllint.yml -s $(find . -type f -name "values.yaml")
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
* @mangelajo @tpantelis @Oats87
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
---
|
---
|
||||||
name: submariner-k8s-broker
|
name: submariner-k8s-broker
|
||||||
version: 0.0.1
|
version: 0.4.1
|
||||||
appVersion: v0.0.1
|
appVersion: 0.4.1
|
||||||
description: Submariner Kubernetes Broker
|
description: Submariner Kubernetes Broker
|
||||||
keywords:
|
keywords:
|
||||||
home: https://submariner.io/
|
home: https://submariner-io.github.io/
|
||||||
sources:
|
sources:
|
||||||
- https://submariner-io.github.io/submariner-charts/charts
|
- https://submariner-io.github.io/submariner-charts/charts
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Rancher Labs
|
- name: Submariner Developers
|
||||||
email: charts@rancher.com
|
email: submariner-dev@googlegroups.com
|
||||||
|
|||||||
@@ -26,4 +26,66 @@ spec:
|
|||||||
kind: Endpoint
|
kind: Endpoint
|
||||||
plural: endpoints
|
plural: endpoints
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
|
---
|
||||||
|
{{- if .Values.submariner.serviceDiscovery }}
|
||||||
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
name: multiclusterservices.lighthouse.submariner.io
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": crd-install
|
||||||
|
spec:
|
||||||
|
group: lighthouse.submariner.io
|
||||||
|
version: v1
|
||||||
|
names:
|
||||||
|
kind: MultiClusterService
|
||||||
|
plural: multiclusterservices
|
||||||
|
singular: multiclusterservice
|
||||||
|
scope: Namespaced
|
||||||
|
validation:
|
||||||
|
openAPIV3Schema:
|
||||||
|
properties:
|
||||||
|
spec:
|
||||||
|
properties:
|
||||||
|
clusterServiceInfo:
|
||||||
|
properties:
|
||||||
|
clusterID:
|
||||||
|
type: "string"
|
||||||
|
clusterDomain:
|
||||||
|
type: "string"
|
||||||
|
serviceIP:
|
||||||
|
type: "string"
|
||||||
|
port:
|
||||||
|
type: "integer"
|
||||||
|
---
|
||||||
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
name: serviceexports.lighthouse.submariner.io
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": crd-install
|
||||||
|
spec:
|
||||||
|
group: lighthouse.submariner.io
|
||||||
|
version: v2alpha1
|
||||||
|
names:
|
||||||
|
kind: ServiceExport
|
||||||
|
plural: serviceexports
|
||||||
|
singular: serviceexport
|
||||||
|
scope: Namespaced
|
||||||
|
---
|
||||||
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
name: serviceimports.lighthouse.submariner.io
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": crd-install
|
||||||
|
spec:
|
||||||
|
group: lighthouse.submariner.io
|
||||||
|
version: v2alpha1
|
||||||
|
names:
|
||||||
|
kind: ServiceImport
|
||||||
|
plural: serviceimports
|
||||||
|
singular: serviceimport
|
||||||
|
scope: Namespaced
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -12,6 +12,9 @@ rules:
|
|||||||
- apiGroups: ["submariner.io"]
|
- apiGroups: ["submariner.io"]
|
||||||
resources: ["clusters", "endpoints"]
|
resources: ["clusters", "endpoints"]
|
||||||
verbs: ["create", "get", "list", "watch", "patch", "update", "delete"]
|
verbs: ["create", "get", "list", "watch", "patch", "update", "delete"]
|
||||||
|
- apiGroups: ["lighthouse.submariner.io"]
|
||||||
|
resources: ["*"]
|
||||||
|
verbs: ["create", "get", "list", "watch", "patch", "update", "delete"]
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
|
|||||||
@@ -7,3 +7,5 @@ serviceAccounts:
|
|||||||
client:
|
client:
|
||||||
create: true
|
create: true
|
||||||
name: ""
|
name: ""
|
||||||
|
submariner:
|
||||||
|
serviceDiscovery: false
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
---
|
---
|
||||||
name: submariner
|
name: submariner
|
||||||
version: 0.0.3
|
version: 0.4.0
|
||||||
appVersion: v0.0.3
|
appVersion: 0.4.0
|
||||||
description: k8s 1.16.x support
|
description: Submariner enables direct networking between Pods and Services in different Kubernetes clusters
|
||||||
keywords:
|
keywords:
|
||||||
home: https://submariner.io/
|
home: https://submariner-io.github.io/
|
||||||
sources:
|
sources:
|
||||||
- https://submariner-io.github.io/submariner-charts/charts
|
- https://submariner-io.github.io/submariner-charts/charts
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Rancher Labs
|
- name: Submariner Developers
|
||||||
email: charts@rancher.com
|
email: submariner-dev@googlegroups.com
|
||||||
|
|||||||
@@ -130,3 +130,9 @@ questions:
|
|||||||
group: "Advanced Configuration"
|
group: "Advanced Configuration"
|
||||||
description: "Enable Charon debug mode"
|
description: "Enable Charon debug mode"
|
||||||
label: "Charon Enabled"
|
label: "Charon Enabled"
|
||||||
|
- variable: submariner.cableDriver
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
group: "Advanced Configuration"
|
||||||
|
description: "Cable driver implementation"
|
||||||
|
label: "Cable Driver"
|
||||||
|
|||||||
@@ -63,3 +63,21 @@ Create the name of the submariner-globalnet service account to use
|
|||||||
{{ default "default" .Values.serviceAccounts.globalnet.name }}
|
{{ default "default" .Values.serviceAccounts.globalnet.name }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the submariner-lighthouse service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "submariner.lighthouseServiceAccountName" -}}
|
||||||
|
{{- if .Values.submariner.serviceDiscovery -}}
|
||||||
|
{{ default (printf "%s-lighthouse" (include "submariner.fullname" .)) .Values.serviceAccounts.lighthouse.name }}
|
||||||
|
{{- else -}}
|
||||||
|
{{ default "default" .Values.serviceAccounts.lighthouse.name }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the submariner-lighthouse-coredns service name to use
|
||||||
|
*/}}
|
||||||
|
{{- define "submariner.lighthouseDnsName" -}}
|
||||||
|
{{- default (printf "%s-lighthouse-coredns" (include "submariner.fullname" .)) .Values.lighthouseCoredns.name }}
|
||||||
|
{{- end -}}
|
||||||
|
|||||||
@@ -40,4 +40,71 @@ spec:
|
|||||||
kind: Gateway
|
kind: Gateway
|
||||||
plural: gateways
|
plural: gateways
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
|
additionalPrinterColumns:
|
||||||
|
- name: ha-status
|
||||||
|
type: string
|
||||||
|
description: High Availability Status of the Gateway
|
||||||
|
JSONPath: .status.haStatus
|
||||||
|
---
|
||||||
|
{{- if .Values.submariner.serviceDiscovery }}
|
||||||
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
name: multiclusterservices.lighthouse.submariner.io
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": crd-install
|
||||||
|
spec:
|
||||||
|
group: lighthouse.submariner.io
|
||||||
|
version: v1
|
||||||
|
names:
|
||||||
|
kind: MultiClusterService
|
||||||
|
plural: multiclusterservices
|
||||||
|
singular: multiclusterservice
|
||||||
|
scope: Namespaced
|
||||||
|
validation:
|
||||||
|
openAPIV3Schema:
|
||||||
|
properties:
|
||||||
|
spec:
|
||||||
|
properties:
|
||||||
|
clusterServiceInfo:
|
||||||
|
properties:
|
||||||
|
clusterID:
|
||||||
|
type: "string"
|
||||||
|
clusterDomain:
|
||||||
|
type: "string"
|
||||||
|
serviceIP:
|
||||||
|
type: "string"
|
||||||
|
port:
|
||||||
|
type: "integer"
|
||||||
|
---
|
||||||
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
name: serviceexports.lighthouse.submariner.io
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": crd-install
|
||||||
|
spec:
|
||||||
|
group: lighthouse.submariner.io
|
||||||
|
version: v2alpha1
|
||||||
|
names:
|
||||||
|
kind: ServiceExport
|
||||||
|
plural: serviceexports
|
||||||
|
singular: serviceexport
|
||||||
|
scope: Namespaced
|
||||||
|
---
|
||||||
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
name: serviceimports.lighthouse.submariner.io
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": crd-install
|
||||||
|
spec:
|
||||||
|
group: lighthouse.submariner.io
|
||||||
|
version: v2alpha1
|
||||||
|
names:
|
||||||
|
kind: ServiceImport
|
||||||
|
plural: serviceimports
|
||||||
|
singular: serviceimport
|
||||||
|
scope: Namespaced
|
||||||
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: {{ template "submariner.fullname" . }}-engine
|
app: {{ template "submariner.fullname" . }}-engine
|
||||||
strategy:
|
updateStrategy:
|
||||||
rollingUpdate:
|
rollingUpdate:
|
||||||
maxUnavailable: 1
|
maxUnavailable: 1
|
||||||
type: RollingUpdate
|
type: RollingUpdate
|
||||||
@@ -71,6 +71,8 @@ spec:
|
|||||||
value: "{{ .Values.submariner.natEnabled }}"
|
value: "{{ .Values.submariner.natEnabled }}"
|
||||||
- name: SUBMARINER_BROKER
|
- name: SUBMARINER_BROKER
|
||||||
value: "{{ .Values.broker.type }}"
|
value: "{{ .Values.broker.type }}"
|
||||||
|
- name: SUBMARINER_CABLEDRIVER
|
||||||
|
value: "{{ .Values.submariner.cableDriver }}"
|
||||||
{{- if eq .Values.broker.type "phpapi" }}
|
{{- if eq .Values.broker.type "phpapi" }}
|
||||||
- name: BROKER_PHPAPI_PROTO
|
- name: BROKER_PHPAPI_PROTO
|
||||||
value: "{{ .Values.broker.proto }}"
|
value: "{{ .Values.broker.proto }}"
|
||||||
@@ -106,7 +108,7 @@ spec:
|
|||||||
value: "{{ .Values.leadership.renewDeadline }}"
|
value: "{{ .Values.leadership.renewDeadline }}"
|
||||||
- name: LEADERSHIP_RETRYPERIOD
|
- name: LEADERSHIP_RETRYPERIOD
|
||||||
value: "{{ .Values.leadership.retryPeriod }}"
|
value: "{{ .Values.leadership.retryPeriod }}"
|
||||||
image: {{ .Values.engine.image.repository }}:{{ .Values.engine.image.tag }}
|
image: {{ .Values.engine.image.repository }}:{{ default .Chart.AppVersion .Values.engine.image.tag }}
|
||||||
imagePullPolicy: {{ .Values.engine.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.engine.image.pullPolicy }}
|
||||||
name: submariner
|
name: submariner
|
||||||
resources:
|
resources:
|
||||||
@@ -128,5 +130,5 @@ spec:
|
|||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
schedulerName: default-scheduler
|
schedulerName: default-scheduler
|
||||||
securityContext: {}
|
securityContext: {}
|
||||||
terminationGracePeriodSeconds: 0
|
terminationGracePeriodSeconds: 1
|
||||||
serviceAccountName: {{ template "submariner.engineServiceAccountName" . }}
|
serviceAccountName: {{ template "submariner.engineServiceAccountName" . }}
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: {{ template "submariner.fullname" . }}-globalnet
|
app: {{ template "submariner.fullname" . }}-globalnet
|
||||||
|
updateStrategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 1
|
||||||
|
type: RollingUpdate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
@@ -21,17 +25,18 @@ spec:
|
|||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
serviceAccountName: submariner-globalnet
|
serviceAccountName: submariner-globalnet
|
||||||
serviceAccount: submariner-globalnet
|
serviceAccount: submariner-globalnet
|
||||||
|
terminationGracePeriodSeconds: 2
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
submariner.io/gateway: 'true'
|
submariner.io/gateway: 'true'
|
||||||
containers:
|
containers:
|
||||||
- name: {{ template "submariner.fullname" . }}-globalnet
|
- name: {{ template "submariner.fullname" . }}-globalnet
|
||||||
image: {{ .Values.globalnet.image.repository }}:{{ .Values.globalnet.image.tag }}
|
image: {{ .Values.globalnet.image.repository }}:{{ default .Chart.AppVersion .Values.globalnet.image.tag }}
|
||||||
imagePullPolicy: {{ .Values.globalnet.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.globalnet.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: SUBMARINER_CLUSTERID
|
- name: SUBMARINER_CLUSTERID
|
||||||
value: '{{ .Values.submariner.clusterId }}'
|
value: '{{ .Values.submariner.clusterId }}'
|
||||||
- name: SUBMARINER_EXCLUDENS
|
- name: SUBMARINER_EXCLUDENS
|
||||||
value: 'submariner,kube-system,operators'
|
value: 'submariner-operator,kube-system,operators'
|
||||||
- name: SUBMARINER_NAMESPACE
|
- name: SUBMARINER_NAMESPACE
|
||||||
value: '{{ .Release.Namespace }}'
|
value: '{{ .Release.Namespace }}'
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|||||||
@@ -0,0 +1,74 @@
|
|||||||
|
{{- if .Values.submariner.serviceDiscovery }}
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: {{ template "submariner.lighthouseDnsName" . }}
|
||||||
|
labels:
|
||||||
|
heritage: {{ .Release.Service | quote }}
|
||||||
|
release: {{ .Release.Name | quote }}
|
||||||
|
chart: {{ template "submariner.chart" . }}
|
||||||
|
app: {{ template "submariner.lighthouseDnsName" . }}
|
||||||
|
component: lighthouse-coredns
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: {{ template "submariner.lighthouseDnsName" . }}
|
||||||
|
replicas: 2
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: {{ template "submariner.lighthouseDnsName" . }}
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- args:
|
||||||
|
- -conf
|
||||||
|
- /etc/coredns/Corefile
|
||||||
|
image: {{ .Values.lighthouseCoredns.image.repository }}:{{ default .Chart.AppVersion .Values.lighthouseCoredns.image.tag }}
|
||||||
|
imagePullPolicy: {{ .Values.lighthouseCoredns.image.pullPolicy }}
|
||||||
|
name: {{ template "submariner.lighthouseDnsName" . }}
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /etc/coredns
|
||||||
|
name: config-volume
|
||||||
|
readOnly: true
|
||||||
|
serviceAccountName: {{ template "submariner.lighthouseServiceAccountName" . }}
|
||||||
|
volumes:
|
||||||
|
- configMap:
|
||||||
|
defaultMode: 420
|
||||||
|
items:
|
||||||
|
- key: Corefile
|
||||||
|
path: Corefile
|
||||||
|
name: {{ template "submariner.lighthouseDnsName" . }}
|
||||||
|
name: config-volume
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ template "submariner.lighthouseDnsName" . }}
|
||||||
|
labels:
|
||||||
|
app: {{ template "submariner.lighthouseDnsName" . }}
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: udp
|
||||||
|
port: 53
|
||||||
|
protocol: UDP
|
||||||
|
targetPort: 53
|
||||||
|
selector:
|
||||||
|
app: {{ template "submariner.lighthouseDnsName" . }}
|
||||||
|
type: ClusterIP
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: {{ template "submariner.lighthouseDnsName" . }}
|
||||||
|
data:
|
||||||
|
Corefile: |
|
||||||
|
supercluster.local:53 {
|
||||||
|
{{- if .Values.submariner.debug }}
|
||||||
|
log
|
||||||
|
{{- end }}
|
||||||
|
lighthouse
|
||||||
|
errors
|
||||||
|
health
|
||||||
|
ready
|
||||||
|
}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
{{- 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.lighthouseServiceAccountName" . }}
|
||||||
|
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 ne .Values.submariner.globalCidr "" }}
|
||||||
|
- 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 }}
|
||||||
@@ -109,5 +109,32 @@ subjects:
|
|||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: {{ template "submariner.globalnetServiceAccountName" . }}
|
name: {{ template "submariner.globalnetServiceAccountName" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
|
---
|
||||||
|
{{- end -}}
|
||||||
|
{{- if .Values.submariner.serviceDiscovery }}
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
name: {{ template "submariner.fullname" . }}:lighthouse
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["services", "namespaces", "configmaps"]
|
||||||
|
verbs: ["get", "list", "watch", "update"]
|
||||||
|
- apiGroups: ["lighthouse.submariner.io"]
|
||||||
|
resources: ["*"]
|
||||||
|
verbs: ["create", "get", "list", "watch", "update", "delete"]
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: {{ template "submariner.fullname" . }}:lighthouse
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: {{ template "submariner.fullname" . }}:lighthouse
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: {{ template "submariner.lighthouseServiceAccountName" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -12,6 +12,10 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: {{ template "submariner.fullname" . }}-routeagent
|
app: {{ template "submariner.fullname" . }}-routeagent
|
||||||
|
updateStrategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 1
|
||||||
|
type: RollingUpdate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
@@ -22,13 +26,13 @@ spec:
|
|||||||
component: routeagent
|
component: routeagent
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: {{ template "submariner.routeAgentServiceAccountName" . }}
|
serviceAccountName: {{ template "submariner.routeAgentServiceAccountName" . }}
|
||||||
terminationGracePeriodSeconds: 0
|
terminationGracePeriodSeconds: 1
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
containers:
|
containers:
|
||||||
- name: routeagent
|
- name: routeagent
|
||||||
command:
|
command:
|
||||||
- submariner-route-agent.sh
|
- submariner-route-agent.sh
|
||||||
image: {{ .Values.routeAgent.image.repository }}:{{ .Values.routeAgent.image.tag }}
|
image: {{ .Values.routeAgent.image.repository }}:{{ default .Chart.AppVersion .Values.routeAgent.image.tag }}
|
||||||
imagePullPolicy: {{ .Values.routeAgent.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.routeAgent.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: SUBMARINER_NAMESPACE
|
- name: SUBMARINER_NAMESPACE
|
||||||
|
|||||||
@@ -33,3 +33,15 @@ metadata:
|
|||||||
chart: {{ template "submariner.chart" . }}
|
chart: {{ template "submariner.chart" . }}
|
||||||
app: {{ template "submariner.name" . }}
|
app: {{ template "submariner.name" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
---
|
||||||
|
{{- if .Values.serviceAccounts.lighthouse.create }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: {{ template "submariner.lighthouseServiceAccountName" . }}
|
||||||
|
labels:
|
||||||
|
heritage: {{ .Release.Service | quote }}
|
||||||
|
release: {{ .Release.Name | quote }}
|
||||||
|
chart: {{ template "submariner.chart" . }}
|
||||||
|
app: {{ template "submariner.name" . }}
|
||||||
|
{{- end }}
|
||||||
|
|||||||
+25
-16
@@ -8,6 +8,7 @@ submariner:
|
|||||||
natEnabled: false
|
natEnabled: false
|
||||||
colorCodes: blue
|
colorCodes: blue
|
||||||
debug: false
|
debug: false
|
||||||
|
serviceDiscovery: false
|
||||||
crd:
|
crd:
|
||||||
create: true
|
create: true
|
||||||
broker:
|
broker:
|
||||||
@@ -25,38 +26,43 @@ ipsec:
|
|||||||
ikePort: 500
|
ikePort: 500
|
||||||
natPort: 4500
|
natPort: 4500
|
||||||
leadership:
|
leadership:
|
||||||
leaseDuration: 5
|
leaseDuration: 10
|
||||||
renewDeadline: 3
|
renewDeadline: 5
|
||||||
retryPeriod: 2
|
retryPeriod: 2
|
||||||
engine:
|
engine:
|
||||||
image:
|
image:
|
||||||
repository: rancher/submariner
|
repository: quay.io/submariner/submariner
|
||||||
tag: v0.0.2
|
tag: ""
|
||||||
pullPolicy: Always
|
pullPolicy: IfNotPresent
|
||||||
resources: {}
|
resources: {}
|
||||||
# limits:
|
|
||||||
# cpu: 100m
|
|
||||||
# memory: 100Mi
|
|
||||||
nodeSelectorEnabled: true
|
nodeSelectorEnabled: true
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
routeAgent:
|
routeAgent:
|
||||||
image:
|
image:
|
||||||
repository: rancher/submariner-route-agent
|
repository: quay.io/submariner/submariner-route-agent
|
||||||
tag: v0.0.2
|
tag: ""
|
||||||
pullPolicy: Always
|
pullPolicy: IfNotPresent
|
||||||
resources: {}
|
resources: {}
|
||||||
# limits:
|
|
||||||
# cpu: 100m
|
|
||||||
# memory: 100Mi
|
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
globalnet:
|
globalnet:
|
||||||
image:
|
image:
|
||||||
repository: submariner-globalnet
|
repository: quay.io/submariner/submariner-globalnet
|
||||||
tag: local
|
tag: ""
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
lighthouse:
|
||||||
|
image:
|
||||||
|
repository: quay.io/submariner/lighthouse-agent
|
||||||
|
tag: ""
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
lighthouseCoredns:
|
||||||
|
name: ""
|
||||||
|
image:
|
||||||
|
repository: quay.io/submariner/lighthouse-coredns
|
||||||
|
tag: ""
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
serviceAccounts:
|
serviceAccounts:
|
||||||
engine:
|
engine:
|
||||||
@@ -68,3 +74,6 @@ serviceAccounts:
|
|||||||
globalnet:
|
globalnet:
|
||||||
create: false
|
create: false
|
||||||
name: ""
|
name: ""
|
||||||
|
lighthouse:
|
||||||
|
create: false
|
||||||
|
name: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user