Moved kube-vip to new organization + version update

This commit is contained in:
Dreaded_X 2025-02-15 03:52:12 +01:00
parent e9d54563d6
commit 8775cbde8d
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4
10 changed files with 44 additions and 34 deletions

View File

@ -0,0 +1,13 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: kube-vip
namespace: flux-system
spec:
interval: 15m
path: ./infra/kube-vip
prune: true
timeout: 2m
sourceRef:
kind: GitRepository
name: flux-system

View File

@ -1,8 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- kube-vip.rbac.yaml
- kube-vip.app.enp3s0.yaml
- kube-vip.app.enp2s0.yaml
- https://raw.githubusercontent.com/kube-vip/kube-vip-cloud-provider/refs/tags/v0.0.10/manifest/kube-vip-cloud-controller.yaml
- kube-vip.config.yaml

View File

@ -0,0 +1,12 @@
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

View File

@ -1,9 +1,3 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: kube-vip
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
@ -16,26 +10,13 @@ rules:
verbs: ["update"] verbs: ["update"]
- apiGroups: [""] - apiGroups: [""]
resources: ["services", "endpoints"] resources: ["services", "endpoints"]
verbs: ["list","get","watch", "update"] verbs: ["list", "get", "watch", "update"]
- apiGroups: [""] - apiGroups: [""]
resources: ["nodes"] resources: ["nodes"]
verbs: ["list","get","watch", "update", "patch"] verbs: ["list", "get", "watch", "update", "patch"]
- apiGroups: ["coordination.k8s.io"] - apiGroups: ["coordination.k8s.io"]
resources: ["leases"] resources: ["leases"]
verbs: ["list", "get", "watch", "update", "create"] verbs: ["list", "get", "watch", "update", "create"]
- apiGroups: ["discovery.k8s.io"] - apiGroups: ["discovery.k8s.io"]
resources: ["endpointslices"] resources: ["endpointslices"]
verbs: ["list","get","watch", "update"] verbs: ["list", "get", "watch", "update"]
---
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

View File

@ -2,7 +2,6 @@ apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: kubevip name: kubevip
namespace: kube-system
data: data:
# 10.0.2.1 is reserved for control plane # 10.0.2.1 is reserved for control plane
# 10.0.2.2 is reserved for traefik # 10.0.2.2 is reserved for traefik

View File

@ -6,7 +6,6 @@ metadata:
app.kubernetes.io/name: kube-vip-ds app.kubernetes.io/name: kube-vip-ds
app.kubernetes.io/version: v0.8.3 app.kubernetes.io/version: v0.8.3
name: kube-vip-ds-enp2s0 name: kube-vip-ds-enp2s0
namespace: kube-system
spec: spec:
selector: selector:
matchLabels: matchLabels:

View File

@ -6,7 +6,6 @@ metadata:
app.kubernetes.io/name: kube-vip-ds app.kubernetes.io/name: kube-vip-ds
app.kubernetes.io/version: v0.8.3 app.kubernetes.io/version: v0.8.3
name: kube-vip-ds-enp3s0 name: kube-vip-ds-enp3s0
namespace: kube-system
spec: spec:
selector: selector:
matchLabels: matchLabels:

View File

@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-system
resources:
- ./service-account.yaml
- ./cluster-role.yaml
- ./cluster-role-binding.yaml
- ./daemon-set-enp2s0.yaml
- ./daemon-set-enp3s0.yaml
- https://raw.githubusercontent.com/kube-vip/kube-vip-cloud-provider/refs/tags/v0.0.11/manifest/kube-vip-cloud-controller.yaml
- ./config-map-kubevip.yaml

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: kube-vip

View File

@ -23,7 +23,7 @@ sed -i -e "s/127.0.0.1/$REMOTE_IP/" ~/.kube/config
add_interface_label add_interface_label
kubectl apply -k ${SCRIPT_DIR}/../clusters/titan.lan.huizinga.dev/kube-vip/ kubectl apply -k ${SCRIPT_DIR}/../infra/kube-vip/
# Add sops secret to the cluster # Add sops secret to the cluster
kubectl apply -f ${SCRIPT_DIR}/namespace.yaml kubectl apply -f ${SCRIPT_DIR}/namespace.yaml