Moved kube-vip to new organization + version update
This commit is contained in:
parent
e9d54563d6
commit
8775cbde8d
13
clusters/titan.lan.huizinga.dev/infra/kube-vip.yaml
Normal file
13
clusters/titan.lan.huizinga.dev/infra/kube-vip.yaml
Normal 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
|
|
@ -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
|
|
12
infra/kube-vip/cluster-role-binding.yaml
Normal file
12
infra/kube-vip/cluster-role-binding.yaml
Normal 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
|
|
@ -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:
|
||||||
|
@ -26,16 +20,3 @@ rules:
|
||||||
- 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
|
|
|
@ -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
|
|
@ -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:
|
|
@ -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:
|
11
infra/kube-vip/kustomization.yaml
Normal file
11
infra/kube-vip/kustomization.yaml
Normal 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
|
4
infra/kube-vip/service-account.yaml
Normal file
4
infra/kube-vip/service-account.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: kube-vip
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user