Azure Kubernetes 101: Adding https

James Honaker 1 Reputation point
2021-05-14T15:03:12.387+00:00

Hi,

I have a web application deployed with k8s. Right now the k8s spec has:

(1) Service - LoadBalancer with a static IP
(2) Pod - several containers incl/: web application, postgres image to persistent file storage, etc.

If I want to enable https for the web application, what are the right k8s "parts" to use.
e.g. Can I add https to the LoadBalancer Service? Do I need a different type of service? Is a pod appropriate?

Note: The application will not have high enough demand to require scaling, etc.

Any help or pointing to docs would be appreciated.

Thanks

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,999 questions
{count} votes

1 answer

Sort by: Most helpful
  1. prmanhas-MSFT 17,901 Reputation points Microsoft Employee
    2021-05-17T06:52:31.67+00:00

    @James Honaker Apologies for the delay in response and all the inconvenience caused because of the issue.

    You can refer to below documentation which might help you out with your requirement:

    https://learn.microsoft.com/en-us/azure/application-gateway/ingress-controller-expose-service-over-http-https
    https://learn.microsoft.com/en-us/azure/aks/http-application-routing
    https://learn.microsoft.com/en-us/azure/aks/ingress-tls

    Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics

    0 comments No comments