Change:
Tests in are using image for gRPC probe tests: should not be restarted with a GRPC liveness probe should be restarted with a GRPC liveness probe We should use image for these tests as it is much smaller size. /sig node /kind cleanup /priority important-soon /area tests /help-wanted /good-first-issue KEP:
This request has been marked as suitable for new contributors. Please ensure that the issue body includes answers to the following questions: Why are we solving this issue? To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points? Does this issue have zero to low barrier of entry? How can the assignee reach out to you for help? For more details on the requirements of such an issue, please see and ensure that they are met. If this request no longer meets these requirements, the label can be removed by commenting with the command. <detailsIn response to : Tests in are using image for gRPC probe tests: /kind cleanup /priority important-soon /area tests /help-wanted /good-first-issue Instructions for interacting with me using PR comments are available . If you have questions or suggestions related to my behavior, please file an issue against the repository. </details
The label(s) cannot be applied, because the repository doesn't have them. <detailsIn response to : Tests in are using image for gRPC probe tests: /kind cleanup /priority important-soon /area tests /help-wanted /good-first-issue Instructions for interacting with me using PR comments are available . If you have questions or suggestions related to my behavior, please file an issue against the repository. </details
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the label and provide further guidance. The label can be by org members by writing in a comment. <detailsInstructions for interacting with me using PR comments are available . If you have questions or suggestions related to my behavior, please file an issue against the repository. </details
Hi can I work on this issue? I'm new to Kubernetes and want to contribute!
Should I change to in this file?
Yes. Also pass proper parameters to agnhost to enable gRPC endpoint, change ports, and run tests to ensure that this worked.
Thanks for your reply! Will let you know if I have more questions as I work
/assign
/assign

Discussion:
"context" "errors" "fmt" <del> "net" </del> "net/url" "strings" "time"

livenessProbe := &v1.Probe{ ProbeHandler: v1.ProbeHandler{ GRPC: &v1.GRPCAction{ <del> Port:    2379, </del> <ins> Port:    5000, </ins> Service: nil, }, },

FailureThreshold:    1, } <del> pod := gRPCServerPodSpec(nil, livenessProbe, "etcd") </del> <ins> pod := gRPCServerPodSpec(nil, livenessProbe, "agnhost") </ins> RunLivenessTest(ctx, f, pod, 0, defaultObservationTimeout) })

TimeoutSeconds:      5, // default 1s can be pretty aggressive in CI environments with low resources FailureThreshold:    1, } <del> pod := gRPCServerPodSpec(nil, livenessProbe, "etcd") </del> <ins> pod := gRPCServerPodSpec(nil, livenessProbe, "agnhost") </ins> RunLivenessTest(ctx, f, pod, 1, defaultObservationTimeout) })

podClient := e2epod.NewPodClient(f) terminationGracePeriod := int64(30) script := ` <del> _term() { </del> <ins> _term() { </ins> rm -f /tmp/ready rm -f /tmp/liveness sleep 20

touch /tmp/ready touch /tmp/liveness <del> while true; do </del> <ins> while true; do </ins> echo "hello" sleep 10 done

} func gRPCServerPodSpec(readinessProbe, livenessProbe *v1.Probe, containerName string) *v1.Pod { <del> etcdLocalhostAddress := "127.0.0.1" if framework.TestContext.ClusterIsIPv6() { etcdLocalhostAddress = "::1" } etcdURL := fmt.Sprintf("http://%s", net.JoinHostPort(etcdLocalhostAddress, "2379")) </del> return &v1.Pod{ ObjectMeta: metav1.ObjectMeta{Name: "test-grpc-" + string(uuid.NewUUID())}, Spec: v1.PodSpec{ Containers: []v1.Container{ { Name:  containerName, <del> Image: imageutils.GetE2EImage(imageutils.Etcd), </del> <ins> Image: imageutils.GetE2EImage(imageutils.Agnhost), </ins> Command: []string{ <del> "/usr/local/bin/etcd", "--listen-client-urls", "http://0.0.0.0:2379", //should listen on all addresses "--advertise-client-urls", etcdURL, </del> <ins> "/agnhost", "grpc-health-checking", </ins> }, <del> // 2380 is an automatic peer URL Ports:          []v1.ContainerPort{{ContainerPort: int32(2379)}, {ContainerPort: int32(2380)}}, </del> <ins> Ports:          []v1.ContainerPort{{ContainerPort: int32(5000)}, {ContainerPort: int32(8080)}}, </ins> LivenessProbe:  livenessProbe, ReadinessProbe: readinessProbe, },