spiderpool
spiderpool copied to clipboard
third controller APP could bind ippool
test it with OpenKruise
Awaiting processing
via ipam.spidernet.io/ippool: '{"ipv4":["v4-ippool"], "ipv6":["v6-ippool"]}'
Third party controller bind ippool successfully
apiVersion: apps.kruise.io/v1alpha1
kind: CloneSet
metadata:
labels:
app: sample
name: sample
spec:
replicas: 5
selector:
matchLabels:
app: sample
template:
metadata:
labels:
app: sample
annotations:
ipam.spidernet.io/ippool: '{"ipv4":["v4-ippool"],"ipv6":["v6-ippool"]}'
spec:
containers:
- name: nginx
image: nginx:alpine
kk get sp
NAME VERSION SUBNET ALLOCATED-IP-COUNT TOTAL-IP-COUNT DISABLE
default-v4-ippool 4 172.18.0.0/16 6 253 false
default-v6-ippool 6 fc00:f853:ccd:e793::/64 6 253 false
v4-ippool 4 172.19.0.0/16 7 253 false
v6-ippool 6 fc00:f854:ccd:e793::/64 7 253 false
kk get pods -A -owide
NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
default sample-gx6dg 1/1 Running 0 55s 172.19.40.6 spider-worker <none> 2/2
default sample-l6mzd 1/1 Running 0 55s 172.19.40.69 spider-worker <none> 2/2
default sample-lw2kq 1/1 Running 0 55s 172.19.40.223 spider-worker <none> 2/2
default sample-n28jf 1/1 Running 0 55s 172.19.40.91 spider-worker <none> 2/2
default sample-rlvwm 1/1 Running 0 55s 172.19.40.105 spider-worker <none>
#1134 third controller APP could bind ippool. How to verify, you can refer to https://spidernet-io.github.io/spiderpool/usage/third-party-controller/