-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
4.19
-
Moderate
-
None
-
False
-
-
-
-
-
Description of problem:
When no value passed to annotation cloud.google.com/network-tier service remain stuck in pending
Version-Release number of selected component (if applicable):
4.19.0-0.nightly-2025-01-15-060507
How reproducible:
Always
Steps to Reproduce:
1.Create service use below yaml apiVersion: v1 kind: Service metadata: labels: name: lb-service-unsecure name: lb-service-unsecure annotations: cloud.google.com/network-tier: "" spec: ports: - name: http port: 80 protocol: TCP targetPort: 8080 selector: name: web-server-rc type: LoadBalancer 2. Service gets created successfully 3. miyadav@miyadav-thinkpadx1carbongen8:~/annotations$ oc get svc lb-service1 NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE lb-service1 LoadBalancer 172.30.233.126 <pending> 80:30502/TCP 9m36s miyadav@miyadav-thinkpadx1carbongen8:~/annotations$
Actual results:
service stuck in pending state
Expected results:
If possible it could produce error ( admission webhook may be to pass value to annotation )
Additional info:
describe svc does give info like below -
Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal EnsuringLoadBalancer 33s (x8 over 10m) service-controller Ensuring load balancer Warning SyncLoadBalancerFailed 32s (x8 over 10m) service-controller Error syncing load balancer: failed to ensure load balancer: unsupported network tier: ""