2023-05-29 08:51:04 +00:00
|
|
|
image:
|
2023-06-08 10:57:31 +00:00
|
|
|
repository: tccr.io/truecharts/metallb-controller
|
2023-06-11 07:44:36 +00:00
|
|
|
tag: v0.13.10@sha256:ceb5bd0146b4e956504165d5ceb1733e316056b19e4fa41d3cb4b9b43b880eba
|
2023-05-29 08:51:04 +00:00
|
|
|
pullPolicy:
|
|
|
|
speakerImage:
|
2023-06-08 10:57:31 +00:00
|
|
|
repository: tccr.io/truecharts/metallb-speaker
|
2023-06-11 07:44:36 +00:00
|
|
|
tag: v0.13.10@sha256:b17cabf528526004299a1f533a314ce03b42add607b63248412c316c2085734b
|
2023-05-29 08:51:04 +00:00
|
|
|
pullPolicy:
|
|
|
|
|
|
|
|
workload:
|
|
|
|
main:
|
2023-06-07 11:42:49 +00:00
|
|
|
strategy: RollingUpdate
|
2023-05-29 08:51:04 +00:00
|
|
|
labels:
|
2023-05-30 15:16:48 +00:00
|
|
|
app.kubernetes.io/component: controller
|
2023-05-29 08:51:04 +00:00
|
|
|
podSpec:
|
|
|
|
labels:
|
2023-05-30 15:16:48 +00:00
|
|
|
app.kubernetes.io/component: controller
|
2023-05-29 08:51:04 +00:00
|
|
|
containers:
|
|
|
|
main:
|
|
|
|
args:
|
|
|
|
- --port=7472
|
|
|
|
- --log-level=all
|
2023-05-30 15:16:48 +00:00
|
|
|
- --cert-service-name={{ include "tc.v1.common.lib.chart.names.fullname" $ }}
|
2023-05-29 08:51:04 +00:00
|
|
|
- --webhook-mode=enabled
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
port: controllermon
|
|
|
|
path: /metrics
|
|
|
|
readiness:
|
|
|
|
port: controllermon
|
|
|
|
path: /metrics
|
|
|
|
startup:
|
|
|
|
port: controllermon
|
|
|
|
type: tcp
|
|
|
|
env:
|
|
|
|
METALLB_ML_SECRET_NAME: "memberlist"
|
|
|
|
METALLB_DEPLOYMENT: '{{ include "tc.v1.common.lib.chart.names.fullname" $ }}'
|
|
|
|
METALLB_NAMESPACE: "{{$.Release.Namespace}}"
|
|
|
|
|
|
|
|
speaker:
|
|
|
|
enabled: true
|
|
|
|
type: DaemonSet
|
2023-06-07 11:42:49 +00:00
|
|
|
strategy: RollingUpdate
|
2023-05-29 08:51:04 +00:00
|
|
|
labels:
|
2023-05-30 15:16:48 +00:00
|
|
|
app.kubernetes.io/component: controller
|
2023-05-29 08:51:04 +00:00
|
|
|
podSpec:
|
|
|
|
labels:
|
2023-05-30 15:16:48 +00:00
|
|
|
app.kubernetes.io/component: controller
|
2023-05-29 08:51:04 +00:00
|
|
|
shareProcessNamespace: true
|
2023-05-30 17:09:27 +00:00
|
|
|
hostNetwork: true
|
2023-05-29 08:51:04 +00:00
|
|
|
containers:
|
|
|
|
speaker:
|
|
|
|
enabled: true
|
|
|
|
primary: true
|
2023-05-30 15:16:48 +00:00
|
|
|
imageSelector: speakerImage
|
2023-05-29 08:51:04 +00:00
|
|
|
args:
|
2023-05-30 15:16:48 +00:00
|
|
|
- --port=7473
|
2023-05-29 08:51:04 +00:00
|
|
|
- --log-level=all
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
port: speakermon
|
|
|
|
path: /metrics
|
|
|
|
readiness:
|
|
|
|
port: speakermon
|
|
|
|
path: /metrics
|
|
|
|
startup:
|
|
|
|
port: speakermon
|
|
|
|
type: tcp
|
|
|
|
env:
|
|
|
|
METALLB_NODE_NAME:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: spec.nodeName
|
|
|
|
METALLB_HOST:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: status.hostIP
|
|
|
|
METALLB_ML_BIND_ADDR:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: status.podIP
|
2023-05-30 15:16:48 +00:00
|
|
|
METALLB_ML_LABELS: "release={{ $.Release.Name }},app.kubernetes.io/component=speaker"
|
|
|
|
METALLB_ML_BIND_PORT: "{{ $.Values.service.memberlist.ports.memberlisttcp.port }}"
|
2023-05-29 08:51:04 +00:00
|
|
|
METALLB_ML_SECRET_KEY_PATH: "/etc/ml_secret_key"
|
|
|
|
METALLB_NAMESPACE: "{{$.Release.Namespace}}"
|
|
|
|
securityContext:
|
2023-05-30 22:12:28 +00:00
|
|
|
runAsUser: 0
|
2023-05-29 08:51:04 +00:00
|
|
|
capabilities:
|
|
|
|
add:
|
|
|
|
- NET_RAW
|
|
|
|
|
|
|
|
podOptions:
|
|
|
|
automountServiceAccountToken: true
|
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 443
|
|
|
|
targetPort: 9443
|
|
|
|
memberlist:
|
|
|
|
enabled: true
|
|
|
|
targetSelector: speaker
|
|
|
|
ports:
|
|
|
|
memberlisttcp:
|
|
|
|
enabled: true
|
|
|
|
protocol: tcp
|
|
|
|
port: 7946
|
|
|
|
memberlistudp:
|
|
|
|
enabled: true
|
|
|
|
protocol: udp
|
|
|
|
port: 7946
|
|
|
|
speakermon:
|
|
|
|
enabled: true
|
|
|
|
targetSelector: speaker
|
2023-05-30 15:16:48 +00:00
|
|
|
clusterIP: None
|
2023-05-29 08:51:04 +00:00
|
|
|
ports:
|
|
|
|
speakermon:
|
|
|
|
enabled: true
|
2023-05-30 15:16:48 +00:00
|
|
|
port: 7473
|
2023-05-29 08:51:04 +00:00
|
|
|
controllermon:
|
|
|
|
enabled: true
|
2023-05-30 15:16:48 +00:00
|
|
|
clusterIP: None
|
2023-05-29 08:51:04 +00:00
|
|
|
ports:
|
|
|
|
controllermon:
|
|
|
|
enabled: true
|
|
|
|
port: 7472
|
|
|
|
|
|
|
|
operator:
|
|
|
|
register: true
|
|
|
|
|
|
|
|
configmap:
|
|
|
|
metallb-excludel2:
|
|
|
|
enabled: true
|
|
|
|
data:
|
|
|
|
excludel2.yaml: |
|
|
|
|
announcedInterfacesToExclude:
|
|
|
|
- docker.*
|
|
|
|
- cbr.*
|
|
|
|
- dummy.*
|
|
|
|
- virbr.*
|
|
|
|
- lxcbr.*
|
|
|
|
- veth.*
|
|
|
|
- lo
|
|
|
|
- ^cali.*
|
|
|
|
- ^tunl.*
|
|
|
|
- flannel.*
|
|
|
|
- kube-ipvs.*
|
|
|
|
- cni.*
|
|
|
|
- ^nodelocaldns.*
|
|
|
|
|
|
|
|
persistence:
|
|
|
|
webhook-server-cert:
|
|
|
|
enabled: true
|
|
|
|
type: secret
|
|
|
|
objectName: webhook-server-cert
|
|
|
|
expandObjectName: false
|
|
|
|
defaultMode: "0420"
|
|
|
|
readOnly: true
|
|
|
|
targetSelector:
|
|
|
|
main:
|
|
|
|
main:
|
|
|
|
mountPath: "/tmp/k8s-webhook-server/serving-certs"
|
|
|
|
metallb-excludel2:
|
|
|
|
enabled: "{{ if $.Values.speaker.excludeInterfaces.enabled }}true{{ else }}false{{ end }}"
|
|
|
|
type: configmap
|
|
|
|
objectName: metallb-excludel2
|
|
|
|
defaultMode: "0256"
|
|
|
|
readOnly: true
|
|
|
|
targetSelector:
|
|
|
|
speaker:
|
|
|
|
speaker:
|
|
|
|
mountPath: "/etc/metallb"
|
|
|
|
memberlist:
|
|
|
|
enabled: true
|
|
|
|
type: secret
|
|
|
|
objectName: memberlist
|
|
|
|
expandObjectName: false
|
|
|
|
defaultMode: "0420"
|
|
|
|
targetSelector:
|
|
|
|
speaker:
|
|
|
|
speaker:
|
|
|
|
mountPath: "/etc/ml_secret_key"
|
|
|
|
portal:
|
|
|
|
open:
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
# -- Whether Role Based Access Control objects like roles and rolebindings should be created
|
|
|
|
rbac:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
primary: true
|
|
|
|
clusterWide: true
|
|
|
|
allServiceAccounts: true
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["services", "endpoints", "nodes", "namespaces"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["nodes"]
|
|
|
|
verbs: ["list"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["services/status"]
|
|
|
|
verbs: ["update"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["events"]
|
|
|
|
verbs: ["create", "patch"]
|
|
|
|
- apiGroups: ["admissionregistration.k8s.io"]
|
|
|
|
resources:
|
|
|
|
["validatingwebhookconfigurations", "mutatingwebhookconfigurations"]
|
|
|
|
resourceNames: ["metallb-webhook-configuration"]
|
|
|
|
verbs: ["create", "delete", "get", "list", "patch", "update", "watch"]
|
|
|
|
- apiGroups: ["admissionregistration.k8s.io"]
|
|
|
|
resources:
|
|
|
|
["validatingwebhookconfigurations", "mutatingwebhookconfigurations"]
|
|
|
|
verbs: ["list", "watch"]
|
|
|
|
- apiGroups: ["apiextensions.k8s.io"]
|
|
|
|
resources: ["customresourcedefinitions"]
|
|
|
|
resourceNames:
|
|
|
|
[
|
|
|
|
"addresspools.metallb.io",
|
|
|
|
"bfdprofiles.metallb.io",
|
|
|
|
"bgpadvertisements.metallb.io",
|
|
|
|
"bgppeers.metallb.io",
|
|
|
|
"ipaddresspools.metallb.io",
|
|
|
|
"l2advertisements.metallb.io",
|
|
|
|
"communities.metallb.io",
|
|
|
|
]
|
|
|
|
verbs: ["create", "delete", "get", "list", "patch", "update", "watch"]
|
|
|
|
- apiGroups: ["apiextensions.k8s.io"]
|
|
|
|
resources: ["customresourcedefinitions"]
|
|
|
|
verbs: ["list", "watch"]
|
|
|
|
- apiGroups: ["discovery.k8s.io"]
|
|
|
|
resources: ["endpointslices"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
controller:
|
|
|
|
enabled: true
|
|
|
|
primary: false
|
|
|
|
clusterWide: false
|
|
|
|
serviceAccounts:
|
|
|
|
- main
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["secrets"]
|
|
|
|
verbs: ["create", "get", "list", "watch"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["secrets"]
|
|
|
|
verbs: ["list"]
|
|
|
|
- apiGroups: ["apps"]
|
|
|
|
resources: ["deployments"]
|
|
|
|
verbs: ["get"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["secrets"]
|
|
|
|
verbs: ["create", "delete", "get", "list", "patch", "update", "watch"]
|
|
|
|
- apiGroups: ["metallb.io"]
|
|
|
|
resources: ["addresspools"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- apiGroups: ["metallb.io"]
|
|
|
|
resources: ["ipaddresspools"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- apiGroups: ["metallb.io"]
|
|
|
|
resources: ["bgppeers"]
|
|
|
|
verbs: ["get", "list"]
|
|
|
|
- apiGroups: ["metallb.io"]
|
|
|
|
resources: ["bgpadvertisements"]
|
|
|
|
verbs: ["get", "list"]
|
|
|
|
- apiGroups: ["metallb.io"]
|
|
|
|
resources: ["l2advertisements"]
|
|
|
|
verbs: ["get", "list"]
|
|
|
|
- apiGroups: ["metallb.io"]
|
|
|
|
resources: ["communities"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- apiGroups: ["metallb.io"]
|
|
|
|
resources: ["bfdprofiles"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
pod-lister:
|
|
|
|
enabled: true
|
|
|
|
primary: false
|
|
|
|
clusterWide: false
|
|
|
|
serviceAccounts:
|
|
|
|
- speaker
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["pods"]
|
|
|
|
verbs: ["list"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["secrets"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["configmaps"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- apiGroups: ["metallb.io"]
|
|
|
|
resources: ["addresspools"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- apiGroups: ["metallb.io"]
|
|
|
|
resources: ["bfdprofiles"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- apiGroups: ["metallb.io"]
|
|
|
|
resources: ["bgppeers"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- apiGroups: ["metallb.io"]
|
|
|
|
resources: ["l2advertisements"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- apiGroups: ["metallb.io"]
|
|
|
|
resources: ["bgpadvertisements"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- apiGroups: ["metallb.io"]
|
|
|
|
resources: ["ipaddresspools"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- apiGroups: ["metallb.io"]
|
|
|
|
resources: ["communities"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
|
|
|
|
# -- The service account the pods will use to interact with the Kubernetes API
|
|
|
|
serviceAccount:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
primary: true
|
|
|
|
targetSelector:
|
|
|
|
- main
|
|
|
|
speaker:
|
|
|
|
enabled: true
|
|
|
|
primary: false
|
|
|
|
targetSelector:
|
|
|
|
- speaker
|
|
|
|
|
|
|
|
# controller contains configuration specific to the MetalLB cluster
|
|
|
|
# controller.
|
|
|
|
controller:
|
|
|
|
enabled: true
|
|
|
|
# -- Controller log level. Must be one of: `all`, `debug`, `info`, `warn`, `error` or `none`
|
|
|
|
logLevel: info
|
|
|
|
# command: /controller
|
|
|
|
# webhookMode: enabled
|
|
|
|
|
|
|
|
# speaker contains configuration specific to the MetalLB speaker
|
|
|
|
# daemonset.
|
|
|
|
speaker:
|
|
|
|
enabled: true
|
|
|
|
# command: /speaker
|
|
|
|
# -- Speaker log level. Must be one of: `all`, `debug`, `info`, `warn`, `error` or `none`
|
|
|
|
logLevel: info
|
|
|
|
tolerateMaster: true
|
|
|
|
excludeInterfaces:
|
|
|
|
enabled: true
|
|
|
|
|
|
|
|
validationFailurePolicy: Fail
|
|
|
|
|
|
|
|
manifestManager:
|
2023-06-08 20:09:24 +00:00
|
|
|
enabled: false
|