Skip to content

Internal Encryption on/off requires activator restart #13754

Open

Description

@davidhadas

Switching internal-encryption to true results in a non-functioning service.
/area networking

What version of Knative?

1.9
Using Kourier

Expected Behavior

Service should continue to serve ingress traffic.

Actual Behavior

Service stopped serving ingress traffic.
Clients receive 503

Steps to Reproduce the Problem

---- Attempt 1:

kn quickstart kind  --install-serving
...

Use kubectl edit cm config-network -n knative-serving and set internal-encryption to "true"

kn service create hello --image gcr.io/knative-samples/helloworld-go --port 8080 --env TARGET=World
...
19.014s Ingress has not yet been reconciled.
19.101s Waiting for load balancer to be ready
 ...

----- Attempts 2:

kn quickstart kind  --install-serving
...

kn service create hello --image gcr.io/knative-samples/helloworld-go --port 8080 --env TARGET=World
...
Service 'hello' created to latest revision 'hello-00001' is available at URL:
http://hello.default.127.0.0.1.sslip.io

curl http://hello.default.127.0.0.1.sslip.io -v
*   Trying 127.0.0.1:80...
...
< HTTP/1.1 200 OK
...
Hello World!
...

Use kubectl edit cm config-network -n knative-serving and set internal-encryption to "true"

curl http://hello.default.127.0.0.1.sslip.io -v
...
< HTTP/1.1 503 Service Unavailable
< content-length: 145
< content-type: text/plain
< date: Mon, 27 Feb 2023 23:30:17 GMT
< server: envoy
<
* Connection #0 to host hello.default.127.0.0.1.sslip.io left intact
upstream connect error or disconnect/reset before headers. reset reason: connection failure, transport failure reason: delayed connect error: 111

Activity

  1. added
    kind/bug
    on Feb 27, 2023
  2. davidhadas commented on Feb 27, 2023

    @davidhadas
    ContributorAuthor

    @ReToCode, @skonto fyi - not sure if this is kourier specific or not.

  3. davidhadas commented on Feb 27, 2023

    @davidhadas
    ContributorAuthor

    Reproduced on a regular Kubernetes cluster outside of Kind (again with Kourier)

  4. ReToCode commented on Feb 28, 2023

    @ReToCode
    Contributor

    @davidhadas, does it work if you restart activator first? We are still working on that: #13694. Also alpha is not quite there yet, see: #11906 (comment).

  5. davidhadas commented on Feb 28, 2023

    @davidhadas
    ContributorAuthor

    It solved the issue on both systems tested.
    I will keep this open and indicate in #13694 that it fixes this one.

  6. dprotaso commented on Mar 1, 2023

    @dprotaso
    Member

    Closing dupe of #13694

  7. nak3 commented on Apr 6, 2023

    @nak3
    Contributor

    I realized that this issue was linked to #13694 but this issue is for switching internal-encryption to true/false, right?

    I think they should be handled separately. And actually not only internal-encryption but also some flags like mesh-compatibility-mode , enable-mesh-pod-addressability are also required to restart.

  8. reopened this on Apr 6, 2023
  9. added
    triage/accepted
    on Apr 17, 2023
  10. changed the title [-]Internal Encryption result in 503 from ingress[/-] [+]Internal Encryption on/off requires activator restart[/+] on Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/networkingkind/bugtriage/accepted

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions