5

Hi i tried the new annotation for ingress explained here

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: ssl-iagree-ingress
  annotations:
   kubernetes.io/ingress.allowHTTP: "false"
spec:
  tls:
  - secretName: secret-cert-myown
  backend:
    serviceName: modcluster
    servicePort: 80

but i can still access it trough http, this is my setup on gcloud ingress--apache:80

Community
  • 1
  • 1
PaulMB
  • 302
  • 3
  • 14

1 Answers1

7

Well i was able to resolve the issue, thanks to Mr Danny, from this pull request here, there was a typo in

kubernetes.io/ingress.allowHTTP: "false"

change it to

kubernetes.io/ingress.allow-http: "false"

and it works fine now.

ps: only for master version 1.3.5

Pogrindis
  • 6,561
  • 5
  • 25
  • 40
PaulMB
  • 302
  • 3
  • 14
  • 1
    I tried this approach as well, but I noticed that traffic on `http` was **not redirected** to `https`. It just didn't allow any traffic on `http`. Is there a way to *force* `https`? – Nicky Apr 21 '17 at 07:54
  • To redirect traffic you have to do it trough apache – PaulMB Apr 21 '17 at 11:34