spiderpool icon indicating copy to clipboard operation
spiderpool copied to clipboard

third controller APP could bind ippool

Open weizhoublue opened this issue 2 years ago • 1 comments

test it with OpenKruise

weizhoublue avatar Oct 09 '22 03:10 weizhoublue

Awaiting processing

ty-dc avatar Oct 10 '22 07:10 ty-dc

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>      

ty-dc avatar Dec 02 '22 02:12 ty-dc

#1134 third controller APP could bind ippool. How to verify, you can refer to https://spidernet-io.github.io/spiderpool/usage/third-party-controller/

ty-dc avatar Dec 08 '22 02:12 ty-dc