mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 08:40:42 +00:00
Merge pull request #119454 from pacoxu/fix-ip-mode
use LoadBalancer type service for e2e service test to patch ingress status
This commit is contained in:
commit
c2bddad813
@ -3350,13 +3350,14 @@ var _ = common.SIGDescribe("Services", func() {
|
||||
Labels: testSvcLabels,
|
||||
},
|
||||
Spec: v1.ServiceSpec{
|
||||
Type: "ClusterIP",
|
||||
Type: "LoadBalancer",
|
||||
Ports: []v1.ServicePort{{
|
||||
Name: "http",
|
||||
Protocol: v1.ProtocolTCP,
|
||||
Port: int32(80),
|
||||
TargetPort: intstr.FromInt32(80),
|
||||
}},
|
||||
LoadBalancerClass: utilpointer.String("example.com/internal-vip"),
|
||||
},
|
||||
}
|
||||
_, err = cs.CoreV1().Services(ns).Create(ctx, &testService, metav1.CreateOptions{})
|
||||
|
Loading…
Reference in New Issue
Block a user