Can I add certificate by secret for https

After the POD is created, I create a secret using the Kubernetes root ca file in the Pod.
I want to create a certificate using this secret rather than a POST message
Is there a way for me to generate a certificate using this secret?

And if I set this certificate, can kong and pod service communicate?
Do I need other settings?

In addition, I’ve pre-configured for https communication.

apiVersion: configuration.konghq.com/v1
kind: KongIngress
proxy:
protocols:

  • https

apiVersion: extensions/v1beta1
kind: Ingress
spec:
rules:

  • http:
    paths:
    • backend:
      servicePort: 8443

apiVersion: v1
kind: Service
metadata:
annotations:
configuration.konghq.com: test
spec:
ports:

  • name: https
    port: 8443
    protocol: TCP
    targetPort: 8443

© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ