PaulMB
PaulMB

Reputation: 457

How to disable http traffic and force https with kubernetes ingress on gcloud

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

Upvotes: 8

Views: 15553

Answers (1)

PaulMB
PaulMB

Reputation: 457

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

Upvotes: 13

Related Questions