How to make the webapp as https?

We have deployed our app in azure kubernetes and implemented service mesh using consul, which deployed in the same cluster but on a different namespace.

With the ingress routing using consul, we are able to access the application using consul ingress gateway IP address.

We want to access the application using https instead of http.Initially to start with a self-signed certificate for testing.

Found this article but it seems it is not for kubernetes environment, can anyone please guide me for this.

Even I tried the below article, but not sure whether it is working as the sample application they provided(server) is having ImagePullError to test.