Ingress-nginx: ingress nginx logging not showing for ssl-passthrough enabled rules

Created on 11 Apr 2018  路  5Comments  路  Source: kubernetes/ingress-nginx

NGINX Ingress controller version:
image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.12.0

Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"", Minor:"", GitVersion:"v1.9.1+coreos.0", GitCommit:"49020061462317aa0d54c2577f5bfb257e9cf58e", GitTreeState:"clean", BuildDate:"2018-01-08T18:21:24Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"", Minor:"", GitVersion:"v1.9.1+coreos.0", GitCommit:"49020061462317aa0d54c2577f5bfb257e9cf58e", GitTreeState:"clean", BuildDate:"2018-01-08T18:21:24Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}

Environment:

  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

What happened:
set nginx controller as follows to enable the ssl passthrough

    - name: nginx-ingress-controller
      image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.12.0
      args:
        - /nginx-ingress-controller
        - --default-backend-service=$(POD_NAMESPACE)/default-http-backend
        - --configmap=$(POD_NAMESPACE)/nginx-configuration
        - --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services
        - --udp-services-configmap=$(POD_NAMESPACE)/udp-services
        - --enable-ssl-passthrough
        - --annotations-prefix=nginx.ingress.kubernetes.io

Then create ingress rules.

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: contentmover 
  namespace: default
  annotations:
    kubernetes.io/ingress.class: "nginx"
    nginx.ingress.kubernetes.io/enable-access-log: "true"
    nginx.ingress.kubernetes.io/ssl-passthrough: "true" 
spec:
  rules:
  - host: mytest.example.com
    http:
      paths:
      - path:
        backend:
          serviceName: mytest 
          servicePort: 8081
  tls:
  - hosts: 
    - mytest.example.com

Then use curl to check
curl -v https://mytest.example.com:443/show/health
it returns HAPPY, indicates the backend service is fine.
However, there is no logging in nginx.
Expect to see some nginx logging when I do curl.

If I do:
curl -kv --header "Host: mytest.example.com" https://the-host-ip:443/show/health
It also returns HAPPY and there is logging in nginx.

Why the first curl does not log anything in nginx ?

lifecyclrotten

Most helpful comment

this problem still seems to exist

All 5 comments

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

this problem still seems to exist

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cehoffman picture cehoffman  路  3Comments

bashofmann picture bashofmann  路  3Comments

lachlancooper picture lachlancooper  路  3Comments

cabrinoob picture cabrinoob  路  3Comments

jwfang picture jwfang  路  3Comments