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

Revert "Revert cilium-network-configs" #2135

Merged
merged 1 commit into from
Sep 2, 2024
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
@@ -0,0 +1,157 @@
apiVersion: cilium.io/v2alpha1
kind: CiliumBGPClusterConfig
metadata:
name: cilium-bgp-cluster-config-cp-1
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-cp-1
bgpInstances:
- name: "instance-65201"
localASN: 65201
peers:
- name: "peer-to-router"
peerASN: 65184
peerAddress: 192.168.3.254/32
peerConfigRef:
name: "common-peer-config"
---
apiVersion: cilium.io/v2alpha1
kind: CiliumBGPClusterConfig
metadata:
name: cilium-bgp-cluster-config-cp-2
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-cp-2
bgpInstances:
- name: "instance-65202"
localASN: 65202
peers:
- name: "peer-to-router"
peerASN: 65184
peerAddress: 192.168.3.254/32
peerConfigRef:
name: "common-peer-config"
---
apiVersion: cilium.io/v2alpha1
kind: CiliumBGPClusterConfig
metadata:
name: cilium-bgp-cluster-config-cp-3
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-cp-3
bgpInstances:
- name: "instance-65203"
localASN: 65203
peers:
- name: "peer-to-router"
peerASN: 65184
peerAddress: 192.168.3.254/32
peerConfigRef:
name: "common-peer-config"
---
apiVersion: cilium.io/v2alpha1
kind: CiliumBGPClusterConfig
metadata:
name: cilium-bgp-cluster-config-wk-1
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-wk-1
bgpInstances:
- name: "instance-65301"
localASN: 65301
peers:
- name: "peer-to-router"
peerASN: 65184
peerAddress: 192.168.3.254/32
peerConfigRef:
name: "common-peer-config"
---
apiVersion: cilium.io/v2alpha1
kind: CiliumBGPClusterConfig
metadata:
name: cilium-bgp-cluster-config-wk-2
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-wk-2
bgpInstances:
- name: "instance-65302"
localASN: 65302
peers:
- name: "peer-to-router"
peerASN: 65184
peerAddress: 192.168.3.254/32
peerConfigRef:
name: "common-peer-config"
---
apiVersion: cilium.io/v2alpha1
kind: CiliumBGPClusterConfig
metadata:
name: cilium-bgp-cluster-config-wk-3
spec:
nodeSelector:
matchLabels:
kubernetes.io/hostname: seichi-onp-k8s-wk-3
bgpInstances:
- name: "instance-65303"
localASN: 65303
peers:
- name: "peer-to-router"
peerASN: 65184
peerAddress: 192.168.3.254/32
peerConfigRef:
name: "common-peer-config"
---
apiVersion: cilium.io/v2alpha1
kind: CiliumBGPPeerConfig
metadata:
name: common-peer-config
spec:
peerPort: 179
eBGPMultihopTTL: 1
timers:
connectRetryTimeSeconds: 120
holdTimeSeconds: 90
keepAliveTimeSeconds: 30
gracefulRestart:
enabled: true
restartTimeSeconds: 120
families:
- afi: ipv4
safi: unicast
advertisements:
matchLabels:
advertise: podcidr
- afi: ipv4
safi: unicast
advertisements:
matchLabels:
advertise: service
---
apiVersion: cilium.io/v2alpha1
kind: CiliumBGPAdvertisement
metadata:
name: podcidr-advertisement
labels:
advertise: podcidr
spec:
advertisements:
- advertisementType: PodCIDR
---
apiVersion: cilium.io/v2alpha1
kind: CiliumBGPAdvertisement
metadata:
name: service-advertisement
labels:
advertise: service
spec:
advertisements:
- advertisementType: Service
service:
addresses:
- LoadBalancerIP
- ClusterIP
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: CiliumLoadBalancerIPPool
metadata:
name: "lb-pool"
spec:
cidrs:
blocks:
# 10.96.0.0-10.96.3.255 をloadBalancerのIPに割当可能
- cidr: "10.96.0.0/22"
# allowFirstLastIPs デフォルトの挙動が no -> yes になったので注意
allowFirstLastIPs: "Yes"