@Ramkumar
If you are looking for the kubectl command, you can use the below one:
kubectl -n ingress create secret tls default-ssl-certificate --key key.pem --cert cert.pem
Once we have a secret with certificate we want to use, we need to update containers spec in the ingress controller’s deployment to include the default-ssl-certificate secret name.
```
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
name: ingress
spec:
rules:
- host: yourhost.com
https:
paths:
- backend:
serviceName: yourservicename
servicePort: 443
path: /
tls:
- hosts:
- yourhost.com
secretName: default-ssl-certificate
```