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

ipam: custom vpc: sts ip pool not use the static ipv6 address in ip pool annos #3050

Closed
bobz965 opened this issue Jul 18, 2023 · 0 comments · Fixed by #3054
Closed

ipam: custom vpc: sts ip pool not use the static ipv6 address in ip pool annos #3050

bobz965 opened this issue Jul 18, 2023 · 0 comments · Fixed by #3054
Assignees

Comments

@bobz965
Copy link
Collaborator

bobz965 commented Jul 18, 2023

Expected Behavior

sts ip pool should use the static ipv6 address in ip pool annos

Actual Behavior

sts ip pool not use the static ipv6 address in ip pool annos

Steps to Reproduce the Problem

kube-ovn master 1.12.0

  1. make kind-init-dual; make kind-install-dual to init a new cluster
  2. create sts in custom vpc with ip pool, ths preset ipv6 ip not set
# the bad sts in custom vpc subnet


k get sts -n slr-5434    sts-53904 -o yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
  creationTimestamp: "2023-07-18T09:43:51Z"
  generation: 1
  name: sts-53904
  namespace: slr-5434
  resourceVersion: "1224"
  uid: 2b6177ae-74a1-4a2e-b89c-c46ae0173dd6
spec:
  persistentVolumeClaimRetentionPolicy:
    whenDeleted: Retain
    whenScaled: Retain
  podManagementPolicy: OrderedReady
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: slr
  serviceName: sts-53904
  template:
    metadata:
      annotations:
        ovn.kubernetes.io/ip_pool: 10.245.233.82,fc00:10:ff:0:5:6bad:b8ae:cd4f
        ovn.kubernetes.io/logical_switch: subnet-53904
      creationTimestamp: null
      labels:
        app: slr
    spec:
      containers:
      - command:
        - sh
        - -c
        - cd /tmp && python3 -m http.server 80
        env:
        - name: IPV4_ADDR
          value: 10.245.233.82
        image: kubeovn/kube-ovn-base:v1.12.0
        imagePullPolicy: IfNotPresent
        name: webserver
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      - command:
        - sh
        - -c
        - 'cd /tmp && python3 -m http.server --bind :: 800'
        env:
        - name: IPV6_ADDR
          value: fc00:10:ff:0:5:6bad:b8ae:cd4f
        image: kubeovn/kube-ovn-base:v1.12.0
        imagePullPolicy: IfNotPresent
        name: webv6
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30
  updateStrategy:
    type: RollingUpdate
status:
  availableReplicas: 1
  collisionCount: 0
  currentReplicas: 1
  currentRevision: sts-53904-564fd9bc5b
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updateRevision: sts-53904-564fd9bc5b
  updatedReplicas: 1

image

no err log

image

I test this vpc

Additional Info

  • Kubernetes version:

    Output of kubectl version:

    (paste your output here)
    
  • kube-ovn version:

    (paste your output here)
    
  • operation-system/kernel version:

    Output of awk -F '=' '/PRETTY_NAME/ { print $2 }' /etc/os-release:
    Output of uname -r:

    (paste your output here)
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant