feat(kube-vip): update template according to new version (#183)
This commit is contained in:
1 parent
e57ef3e15b
commit
e2422a4fa4
3 files changed
+18
-39
No files matched your search
@@ -29,10 +29,11 @@ k3s_registration_address: "{{ kubevip_address }}"
|
|||||||
k3s_server_manifests_urls:
|
k3s_server_manifests_urls:
|
||||||
- url: https://docs.projectcalico.org/archive/v3.21/manifests/tigera-operator.yaml
|
- url: https://docs.projectcalico.org/archive/v3.21/manifests/tigera-operator.yaml
|
||||||
filename: tigera-operator.yaml
|
filename: tigera-operator.yaml
|
||||||
|
- url: https://kube-vip.io/manifests/rbac.yaml
|
||||||
|
filename: kube-vip-rbac.yaml
|
||||||
|
|
||||||
# (list) A flat list of templates to deploy on the primary control plane
|
# (list) A flat list of templates to deploy on the primary control plane
|
||||||
# /var/lib/rancher/k3s/server/manifests
|
# /var/lib/rancher/k3s/server/manifests
|
||||||
k3s_server_manifests_templates:
|
k3s_server_manifests_templates:
|
||||||
- "calico-installation.yaml.j2"
|
- "calico-installation.yaml.j2"
|
||||||
- "kube-vip-rbac.yaml.j2"
|
|
||||||
- "kube-vip-daemonset.yaml.j2"
|
- "kube-vip-daemonset.yaml.j2"
|
||||||
@@ -18,6 +18,16 @@ spec:
|
|||||||
app.kubernetes.io/instance: kube-vip
|
app.kubernetes.io/instance: kube-vip
|
||||||
app.kubernetes.io/name: kube-vip
|
app.kubernetes.io/name: kube-vip
|
||||||
spec:
|
spec:
|
||||||
|
affinity:
|
||||||
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: node-role.kubernetes.io/master
|
||||||
|
operator: Exists
|
||||||
|
- matchExpressions:
|
||||||
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
operator: Exists
|
||||||
containers:
|
containers:
|
||||||
- name: kube-vip
|
- name: kube-vip
|
||||||
image: ghcr.io/kube-vip/kube-vip:v0.4.1
|
image: ghcr.io/kube-vip/kube-vip:v0.4.1
|
||||||
@@ -39,7 +49,9 @@ spec:
|
|||||||
value: kube-system
|
value: kube-system
|
||||||
- name: svc_enable
|
- name: svc_enable
|
||||||
value: "false"
|
value: "false"
|
||||||
- name: vip_address
|
- name: vip_ddns
|
||||||
|
value: "false"
|
||||||
|
- name: address
|
||||||
value: "{{ k3s_registration_address }}"
|
value: "{{ k3s_registration_address }}"
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
@@ -51,10 +63,9 @@ spec:
|
|||||||
- kubernetes
|
- kubernetes
|
||||||
ip: 127.0.0.1
|
ip: 127.0.0.1
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
nodeSelector:
|
|
||||||
node-role.kubernetes.io/master: "true"
|
|
||||||
serviceAccountName: kube-vip
|
serviceAccountName: kube-vip
|
||||||
tolerations:
|
tolerations:
|
||||||
- key: node-role.kubernetes.io/master
|
- effect: NoSchedule
|
||||||
|
operator: Exists
|
||||||
|
- effect: NoExecute
|
||||||
operator: Exists
|
operator: Exists
|
||||||
effect: NoSchedule
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: kube-vip
|
|
||||||
namespace: kube-system
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRole
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
rbac.authorization.kubernetes.io/autoupdate: "true"
|
|
||||||
name: system:kube-vip-role
|
|
||||||
rules:
|
|
||||||
- apiGroups: [""]
|
|
||||||
resources: ["services", "services/status", "nodes"]
|
|
||||||
verbs: ["list", "get", "watch", "update"]
|
|
||||||
- apiGroups: ["coordination.k8s.io"]
|
|
||||||
resources: ["leases"]
|
|
||||||
verbs: ["list", "get", "watch", "update", "create"]
|
|
||||||
---
|
|
||||||
kind: ClusterRoleBinding
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
metadata:
|
|
||||||
name: system:kube-vip-binding
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: ClusterRole
|
|
||||||
name: system:kube-vip-role
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: kube-vip
|
|
||||||
namespace: kube-system
|
|
||||||
Reference in new issue
Block a user