kiranchavala commented on issue #7762:
URL: https://github.com/apache/cloudstack/issues/7762#issuecomment-1649136511

   @Noelantogerorge 
   
   
   
   Can you try writing the service as the following yaml file 
   
   ```
   ❯ kubectl get svc nginx-deployment
   NAME               TYPE           CLUSTER-IP     EXTERNAL-IP   PORT(S)       
 AGE
   nginx-deployment   LoadBalancer   10.109.88.98   10.0.54.83    80:32739/TCP  
 4m24s
   
   
   ❯ kubectl get svc nginx-deployment -o yaml
   apiVersion: v1
   kind: Service
   metadata:
     creationTimestamp: "2023-07-25T04:31:03Z"
     finalizers:
     - service.kubernetes.io/load-balancer-cleanup
     name: nginx-deployment
     namespace: default
     resourceVersion: "995303"
     uid: 224691be-fa86-4b07-938c-c86d948b99fb
   spec:
     allocateLoadBalancerNodePorts: true
     clusterIP: 10.109.88.98
     clusterIPs:
     - 10.109.88.98
     externalTrafficPolicy: Cluster
     internalTrafficPolicy: Cluster
     ipFamilies:
     - IPv4
     ipFamilyPolicy: SingleStack
     ports:
     - nodePort: 32739
       port: 80
       protocol: TCP
       targetPort: 80
     selector:
       app: nginx
     sessionAffinity: None
     type: LoadBalancer
   status:
   apiVersion: v1
     loadBalancer:
   apiVersion: v1
       ingress:
       - ip: 10.0.54.83
   ```
   
   @weizhouapache 
   
   I think this can  be an enhancement request 
   
   
https://github.com/apache/cloudstack-kubernetes-provider/blob/main/cloudstack_loadbalancer.go
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to