diff --git a/cicd/k3s-flannel-cluster-ipvs-compat/loxilb.yml b/cicd/k3s-flannel-cluster-ipvs-compat/loxilb.yml index 50cd07ce..22b8a7de 100644 --- a/cicd/k3s-flannel-cluster-ipvs-compat/loxilb.yml +++ b/cicd/k3s-flannel-cluster-ipvs-compat/loxilb.yml @@ -1,79 +1,3 @@ ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - name: loxilb-lb - namespace: kube-system ---- -kind: ClusterRole -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: loxilb-lb -rules: - - apiGroups: - - "" - resources: - - nodes - verbs: - - get - - watch - - list - - patch - - apiGroups: - - "" - resources: - - pods - verbs: - - get - - watch - - list - - patch - - apiGroups: - - "" - resources: - - endpoints - - services - - services/status - verbs: - - get - - watch - - list - - patch - - update - - apiGroups: - - discovery.k8s.io - resources: - - endpointslices - verbs: - - get - - watch - - list - - apiGroups: - - authentication.k8s.io - resources: - - tokenreviews - verbs: - - create - - apiGroups: - - authorization.k8s.io - resources: - - subjectaccessreviews - verbs: - - create ---- -kind: ClusterRoleBinding -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: loxilb-lb -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: loxilb-lb -subjects: - - kind: ServiceAccount - name: loxilb-lb - namespace: kube-system ---- apiVersion: apps/v1 kind: DaemonSet metadata: @@ -98,7 +22,7 @@ spec: - key: "node-role.kubernetes.io/control-plane" operator: Exists priorityClassName: system-node-critical - serviceAccountName: loxilb-lb + serviceAccountName: kube-loxilb containers: - name: loxilb-lb image: "ghcr.io/loxilb-io/loxilb:latest"