I am novice in kubernetes, wants to configure an ingress which redirect some request to kubernetes https service on port 443, But because of service ca certificate/truststore is not configured request gets failed.
Please help me to understand, how we can configure truststore/service certificate in kubernetes
Following is my exiting ingress configurations.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
field.cattle.io/publicEndpoints: '[{"addresses":[""],"port":80,"protocol":"HTTP","serviceName":"sec:my-gui","ingressName":"sec:my-gui-ingress","hostname":"my.gui.com","path":"/","allNodes":false}]'
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/secure-backends: "true"
creationTimestamp: 2019-06-12T09:43:31Z
generation: 5
labels:
app: my-gui
name: my-gui
namespace: sec
resourceVersion: "65677399"
selfLink: /apis/extensions/v1beta1/namespaces/sec/ingresses/my-gui
uid: 8a1bbed6-8cf6-11e9-bcc5-005056b0f192
spec:
rules:
- host: my.gui.com
http:
paths:
- path: /business
backend:
serviceName: my-backend
servicePort: 443
tls:
- hosts:
- my.gui.com
secretName: my-cert
status:
loadBalancer:
ingress:
- {}