Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nginx] no HTTP -> HTTPS redirect with TLS configured (0.9.0-beta.1) #253

Closed
naerymdan opened this issue Feb 9, 2017 · 3 comments
Closed

Comments

@naerymdan
Copy link

naerymdan commented Feb 9, 2017

Ingress config:

---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: api
  namespace: dev
  annotations:
    kubernetes.io/ingress.class: "nginx"
spec:
  tls:
  - secretName: tls-valid-wildcard-cert
    hosts:
    - 'frontend.example.net'
    - 'backend.example.net'
  rules:
  - host: 'frontend.example.net'
    http:
      paths:
      - path: /
        backend:
          serviceName: frontend
          servicePort: 80
  - host: 'backend.example.net'
    http:
      paths:
      - path: /
        backend:
          serviceName: backend
          servicePort: 80

Also tried with annotation

ingress.kubernetes.io/ssl-redirect: "true"

@naerymdan
Copy link
Author

naerymdan commented Feb 9, 2017

Adding
ingress.kubernetes.io/rewrite-target: /
makes the HTTP -> HTTPS redirect work. That should not be required.

@sander-su
Copy link

this is the same: #160

@naerymdan
Copy link
Author

You are right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants