Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update cilium config #1489

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,176 +58,3 @@ spec:
automated:
prune: true
selfHeal: true
---
apiVersion: "cilium.io/v2alpha1"
kind: CiliumLoadBalancerIPPool
metadata:
name: "lb-pool"
spec:
cidrs:
# 10.96.0.0-10.96.3.255 をloadBalancerのIPに割当可能
- cidr: "10.96.0.0/22"
---
apiVersion: "cilium.io/v2alpha1"
kind: CiliumBGPPeeringPolicy
metadata:
name: peerpolicy--seichi-onp-k8s-cp-1
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-cp-1
virtualRouters:
- localASN: 65184
exportPodCIDR: true
# 全てのServiceIPとLoadBalancerIPを広報するためのおまじない的なserviceSelector
# https://docs.cilium.io/en/stable/network/bgp-control-plane/#service-announcements
serviceSelector:
matchExpressions:
- {key: somekey, operator: NotIn, values: ['never-used-value']}
neighbors:
- peerAddress: "192.168.3.254/32"
peerASN: 65184
eBGPMultihopTTL: 10
connectRetryTimeSeconds: 120
holdTimeSeconds: 90
keepAliveTimeSeconds: 30
gracefulRestart:
enabled: true
restartTimeSeconds: 120

---
apiVersion: "cilium.io/v2alpha1"
kind: CiliumBGPPeeringPolicy
metadata:
name: peerpolicy--seichi-onp-k8s-cp-2
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-cp-2
virtualRouters:
- localASN: 65184
exportPodCIDR: true
# 全てのServiceIPとLoadBalancerIPを広報するためのおまじない的なserviceSelector
# https://docs.cilium.io/en/stable/network/bgp-control-plane/#service-announcements
serviceSelector:
matchExpressions:
- {key: somekey, operator: NotIn, values: ['never-used-value']}
neighbors:
- peerAddress: "192.168.3.254/32"
peerASN: 65184
eBGPMultihopTTL: 10
connectRetryTimeSeconds: 120
holdTimeSeconds: 90
keepAliveTimeSeconds: 30
gracefulRestart:
enabled: true
restartTimeSeconds: 120
---
apiVersion: "cilium.io/v2alpha1"
kind: CiliumBGPPeeringPolicy
metadata:
name: peerpolicy--seichi-onp-k8s-cp-3
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-cp-3
virtualRouters:
- localASN: 65184
exportPodCIDR: true
# 全てのServiceIPとLoadBalancerIPを広報するためのおまじない的なserviceSelector
# https://docs.cilium.io/en/stable/network/bgp-control-plane/#service-announcements
serviceSelector:
matchExpressions:
- {key: somekey, operator: NotIn, values: ['never-used-value']}
neighbors:
- peerAddress: "192.168.3.254/32"
peerASN: 65184
eBGPMultihopTTL: 10
connectRetryTimeSeconds: 120
holdTimeSeconds: 90
keepAliveTimeSeconds: 30
gracefulRestart:
enabled: true
restartTimeSeconds: 120
---
apiVersion: "cilium.io/v2alpha1"
kind: CiliumBGPPeeringPolicy
metadata:
name: peerpolicy--seichi-onp-k8s-wk-1
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-wk-1
virtualRouters:
- localASN: 65184
exportPodCIDR: true
# 全てのServiceIPとLoadBalancerIPを広報するためのおまじない的なserviceSelector
# https://docs.cilium.io/en/stable/network/bgp-control-plane/#service-announcements
serviceSelector:
matchExpressions:
- {key: somekey, operator: NotIn, values: ['never-used-value']}
neighbors:
- peerAddress: "192.168.3.254/32"
peerASN: 65184
eBGPMultihopTTL: 10
connectRetryTimeSeconds: 120
holdTimeSeconds: 90
keepAliveTimeSeconds: 30
gracefulRestart:
enabled: true
restartTimeSeconds: 120
---
apiVersion: "cilium.io/v2alpha1"
kind: CiliumBGPPeeringPolicy
metadata:
name: peerpolicy--seichi-onp-k8s-wk-2
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-wk-2
virtualRouters:
- localASN: 65184
exportPodCIDR: true
# 全てのServiceIPとLoadBalancerIPを広報するためのおまじない的なserviceSelector
# https://docs.cilium.io/en/stable/network/bgp-control-plane/#service-announcements
serviceSelector:
matchExpressions:
- {key: somekey, operator: NotIn, values: ['never-used-value']}
neighbors:
- peerAddress: "192.168.3.254/32"
peerASN: 65184
eBGPMultihopTTL: 10
connectRetryTimeSeconds: 120
holdTimeSeconds: 90
keepAliveTimeSeconds: 30
gracefulRestart:
enabled: true
restartTimeSeconds: 120
---
apiVersion: "cilium.io/v2alpha1"
kind: CiliumBGPPeeringPolicy
metadata:
name: peerpolicy--seichi-onp-k8s-wk-3
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-wk-3
virtualRouters:
- localASN: 65184
exportPodCIDR: true
# 全てのServiceIPとLoadBalancerIPを広報するためのおまじない的なserviceSelector
# https://docs.cilium.io/en/stable/network/bgp-control-plane/#service-announcements
serviceSelector:
matchExpressions:
- {key: somekey, operator: NotIn, values: ['never-used-value']}
neighbors:
- peerAddress: "192.168.3.254/32"
peerASN: 65184
eBGPMultihopTTL: 10
connectRetryTimeSeconds: 120
holdTimeSeconds: 90
keepAliveTimeSeconds: 30
gracefulRestart:
enabled: true
restartTimeSeconds: 120
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
apiVersion: "cilium.io/v2alpha1"
kind: CiliumBGPPeeringPolicy
metadata:
name: peerpolicy--seichi-onp-k8s-cp-1
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-cp-1
virtualRouters:
- localASN: 65201
exportPodCIDR: true
# 全てのServiceIPとLoadBalancerIPを広報するためのおまじない的なserviceSelector
# https://docs.cilium.io/en/stable/network/bgp-control-plane/#service-announcements
serviceSelector:
matchExpressions:
- {key: somekey, operator: NotIn, values: ['never-used-value']}
neighbors:
- peerAddress: "192.168.3.254/32"
peerASN: 65184
eBGPMultihopTTL: 10
connectRetryTimeSeconds: 120
holdTimeSeconds: 90
keepAliveTimeSeconds: 30
gracefulRestart:
enabled: true
restartTimeSeconds: 120

---
apiVersion: "cilium.io/v2alpha1"
kind: CiliumBGPPeeringPolicy
metadata:
name: peerpolicy--seichi-onp-k8s-cp-2
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-cp-2
virtualRouters:
- localASN: 65202
exportPodCIDR: true
# 全てのServiceIPとLoadBalancerIPを広報するためのおまじない的なserviceSelector
# https://docs.cilium.io/en/stable/network/bgp-control-plane/#service-announcements
serviceSelector:
matchExpressions:
- {key: somekey, operator: NotIn, values: ['never-used-value']}
neighbors:
- peerAddress: "192.168.3.254/32"
peerASN: 65184
eBGPMultihopTTL: 10
connectRetryTimeSeconds: 120
holdTimeSeconds: 90
keepAliveTimeSeconds: 30
gracefulRestart:
enabled: true
restartTimeSeconds: 120
---
apiVersion: "cilium.io/v2alpha1"
kind: CiliumBGPPeeringPolicy
metadata:
name: peerpolicy--seichi-onp-k8s-cp-3
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-cp-3
virtualRouters:
- localASN: 65203
exportPodCIDR: true
# 全てのServiceIPとLoadBalancerIPを広報するためのおまじない的なserviceSelector
# https://docs.cilium.io/en/stable/network/bgp-control-plane/#service-announcements
serviceSelector:
matchExpressions:
- {key: somekey, operator: NotIn, values: ['never-used-value']}
neighbors:
- peerAddress: "192.168.3.254/32"
peerASN: 65184
eBGPMultihopTTL: 10
connectRetryTimeSeconds: 120
holdTimeSeconds: 90
keepAliveTimeSeconds: 30
gracefulRestart:
enabled: true
restartTimeSeconds: 120
---
apiVersion: "cilium.io/v2alpha1"
kind: CiliumBGPPeeringPolicy
metadata:
name: peerpolicy--seichi-onp-k8s-wk-1
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-wk-1
virtualRouters:
- localASN: 65301
exportPodCIDR: true
# 全てのServiceIPとLoadBalancerIPを広報するためのおまじない的なserviceSelector
# https://docs.cilium.io/en/stable/network/bgp-control-plane/#service-announcements
serviceSelector:
matchExpressions:
- {key: somekey, operator: NotIn, values: ['never-used-value']}
neighbors:
- peerAddress: "192.168.3.254/32"
peerASN: 65184
eBGPMultihopTTL: 10
connectRetryTimeSeconds: 120
holdTimeSeconds: 90
keepAliveTimeSeconds: 30
gracefulRestart:
enabled: true
restartTimeSeconds: 120
---
apiVersion: "cilium.io/v2alpha1"
kind: CiliumBGPPeeringPolicy
metadata:
name: peerpolicy--seichi-onp-k8s-wk-2
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-wk-2
virtualRouters:
- localASN: 65302
exportPodCIDR: true
# 全てのServiceIPとLoadBalancerIPを広報するためのおまじない的なserviceSelector
# https://docs.cilium.io/en/stable/network/bgp-control-plane/#service-announcements
serviceSelector:
matchExpressions:
- {key: somekey, operator: NotIn, values: ['never-used-value']}
neighbors:
- peerAddress: "192.168.3.254/32"
peerASN: 65184
eBGPMultihopTTL: 10
connectRetryTimeSeconds: 120
holdTimeSeconds: 90
keepAliveTimeSeconds: 30
gracefulRestart:
enabled: true
restartTimeSeconds: 120
---
apiVersion: "cilium.io/v2alpha1"
kind: CiliumBGPPeeringPolicy
metadata:
name: peerpolicy--seichi-onp-k8s-wk-3
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-wk-3
virtualRouters:
- localASN: 65303
exportPodCIDR: true
# 全てのServiceIPとLoadBalancerIPを広報するためのおまじない的なserviceSelector
# https://docs.cilium.io/en/stable/network/bgp-control-plane/#service-announcements
serviceSelector:
matchExpressions:
- {key: somekey, operator: NotIn, values: ['never-used-value']}
neighbors:
- peerAddress: "192.168.3.254/32"
peerASN: 65184
eBGPMultihopTTL: 10
connectRetryTimeSeconds: 120
holdTimeSeconds: 90
keepAliveTimeSeconds: 30
gracefulRestart:
enabled: true
restartTimeSeconds: 120
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: "cilium.io/v2alpha1"
kind: CiliumLoadBalancerIPPool
metadata:
name: "lb-pool"
spec:
cidrs:
# 10.96.0.0-10.96.3.255 をloadBalancerのIPに割当可能
- cidr: "10.96.0.0/22"