user-defined loadbalancer-ip for a kubernetes service is not being used

Bug #1659166 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
High
Vedamurthy Joshi

Bug Description

R4.0 3028

Per, https://kubernetes.io/docs/user-guide/services/#type-loadbalancer , one could define the loadBalancerIP himself.
But it is not being configured.

Below, user supplied 30.1.1.200 as the public ip, but it configured 30.1.1.3

[root@vedu-vm1-1 centos]# cat httpservice.yaml
{
    "kind": "Service",
    "apiVersion": "v1",
    "metadata": {
        "name": "frontend-service1"
    },
    "spec": {
        "selector": {
            "app": "nginx",
            "role": "frontend"
        },
        "ports": [
            {
                "name": "http",
                "protocol": "TCP",
                "port": 82,
                "targetPort": 80
            }
        ],
        "type": "LoadBalancer",
        "loadBalancerIP": "30.1.1.200"
    }
}

[root@vedu-vm1-1 centos]# kubectl get service
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
frontend-service1 10.107.205.21 ,30.1.1.3 82:30318/TCP 4m <<<
kubernetes 10.96.0.1 <none> 443/TCP 4d
[root@vedu-vm1-1 centos]#

Jeba Paulaiyan (jebap)
tags: added: contrail-kube-manager
Revision history for this message
Sachchidanand Vaidya (vaidyasd) wrote :

Fix checked in today. Pls verify in next build.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.