ssl termination on ingress nginx digital ocean

1/31/2019

i am using ingress controller with cert-magaer on K8s.

my container running inside pod on port 80 and 443 and service running on 80,443.

installed tls certificate on ingress. but it giving error "Your Connection to this site is not fully secure"

this is my ingress

    apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: moodle-ingress
  annotations:  
    kubernetes.io/ingress.class: nginx
    certmanager.k8s.io/cluster-issuer: moodle-prod
    nginx.ingress.kubernetes.io/rewrite-target: /
    nginx.ingress.kubernetes.io/ssl-passthrough: "true"
    nginx.ingress.kubernetes.io/secure-backends: "true"
spec:
  tls:
  - hosts:
    - domain
    secretName: moodle-prod
  rules:
  - host: domain
    http:
      paths:
      - backend:
          serviceName: moodle
          servicePort: 443
-- Harsh Manvar
docker
kubernetes-ingress
nginx-ingress
ssl
ssl-certificate

1 Answer

2/1/2019

Current error reflects a problem with "Mixed content" as I admitted in the comment, thus most probably some web page contains both secure (HTTPS) and non-secure (HTTP) content elements delivered to the web browser as well. Here is the link to the similar issue reported on Stack community.

-- mk_sta
Source: StackOverflow