|
|
@ -53,22 +53,6 @@ rules: |
|
|
|
--- |
|
|
|
apiVersion: rbac.authorization.k8s.io/v1 |
|
|
|
kind: Role |
|
|
|
metadata: |
|
|
|
namespace: metallb-system |
|
|
|
name: leader-election |
|
|
|
labels: |
|
|
|
app: metallb |
|
|
|
rules: |
|
|
|
- apiGroups: [""] |
|
|
|
resources: ["endpoints"] |
|
|
|
resourceNames: ["metallb-speaker"] |
|
|
|
verbs: ["get", "update"] |
|
|
|
- apiGroups: [""] |
|
|
|
resources: ["endpoints"] |
|
|
|
verbs: ["create"] |
|
|
|
--- |
|
|
|
apiVersion: rbac.authorization.k8s.io/v1 |
|
|
|
kind: Role |
|
|
|
metadata: |
|
|
|
namespace: metallb-system |
|
|
|
name: config-watcher |
|
|
@ -131,21 +115,6 @@ roleRef: |
|
|
|
kind: Role |
|
|
|
name: config-watcher |
|
|
|
--- |
|
|
|
apiVersion: rbac.authorization.k8s.io/v1 |
|
|
|
kind: RoleBinding |
|
|
|
metadata: |
|
|
|
namespace: metallb-system |
|
|
|
name: leader-election |
|
|
|
labels: |
|
|
|
app: metallb |
|
|
|
subjects: |
|
|
|
- kind: ServiceAccount |
|
|
|
name: speaker |
|
|
|
roleRef: |
|
|
|
apiGroup: rbac.authorization.k8s.io |
|
|
|
kind: Role |
|
|
|
name: leader-election |
|
|
|
--- |
|
|
|
apiVersion: apps/v1beta2 |
|
|
|
kind: DaemonSet |
|
|
|
metadata: |
|
|
@ -173,7 +142,7 @@ spec: |
|
|
|
hostNetwork: true |
|
|
|
containers: |
|
|
|
- name: speaker |
|
|
|
image: metallb/speaker:v0.6.2 |
|
|
|
image: metallb/speaker:{{ metallb.version }} |
|
|
|
imagePullPolicy: IfNotPresent |
|
|
|
args: |
|
|
|
- --port={{ metallb.port }} |
|
|
@ -230,7 +199,7 @@ spec: |
|
|
|
runAsUser: 65534 # nobody |
|
|
|
containers: |
|
|
|
- name: controller |
|
|
|
image: metallb/controller:v0.6.2 |
|
|
|
image: metallb/controller:{{ metallb.version }} |
|
|
|
imagePullPolicy: IfNotPresent |
|
|
|
args: |
|
|
|
- --port={{ metallb.port }} |
|
|
@ -250,5 +219,3 @@ spec: |
|
|
|
readOnlyRootFilesystem: true |
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|