Ingress-controller forcing SSL on port 80 (HTTP)

7/3/2019

I'm running a node.js application in Kubernetes and I'm using an ingress controller to use SSL on port 443. It's working, however it is forcing me to use SSL on port 80 as well which I don't want.

I've tried adding nginx.ingress.kubernetes.io/ssl-redirect: "false" to my ingress but it still forces SSL on port 80. This is what the ingress config looks like:

{
  "kind": "Ingress",
  "apiVersion": "extensions/v1beta1",
  "metadata": {
    "name": "http-rest-api-ingress",
    "namespace": "default",
    "selfLink": "/apis/extensions/v1beta1/namespaces/default/ingresses/http-rest-api-ingress",
    "uid": "f89ad4cd-9d9d-11e9-9d4d-1aa06e634f15",
    "resourceVersion": "1990981",
    "generation": 2,
    "creationTimestamp": "2019-07-03T14:22:21Z",
    "annotations": {
      "nginx.ingress.kubernetes.io/rewrite-target": "/$1",
      "nginx.ingress.kubernetes.io/ssl-redirect": "false"
    }
  },
  "spec": {
    "rules": [
      {
        "host": "x.x.com",
        "http": {
          "paths": [
            {
              "backend": {
                "path": "/(.*)",
                "serviceName": "http-rest-api",
                "servicePort": 4500
              }
            }
          ]
        }
      }
    ]
  },
  "status": {
    "loadBalancer": {
      "ingress": [
        {}
      ]
    }
  }
}
-- Yako
azure
kubernetes
kubernetes-ingress
nginx-ingress
ssl

0 Answers