github.com/nginxinc/kubernetes-ingress@v1.12.5/examples/ssl-services/README.md (about)

     1  # SSL Services Support
     2  
     3  To enable HTTPS or gRPC over SSL when connecting to the endpoints of services, you need to add the **nginx.org/ssl-services** annotation to your Ingress resource definition. The annotation specifies which services require SSL. The annotation syntax is as follows:
     4  
     5  ```
     6  nginx.org/ssl-services: "service1[,service2,...]"
     7  ```
     8  
     9  In the following example we load balance three applications, one of which requires HTTPS:
    10  ```yaml
    11  apiVersion: networking.k8s.io/v1beta1
    12  kind: Ingress
    13  metadata:
    14    name: cafe-ingress
    15    annotations:
    16      nginx.org/ssl-services: "ssl-svc"
    17  spec:
    18    rules:
    19    - host: cafe.example.com
    20      http:
    21        paths:
    22        - path: /tea
    23          backend:
    24            serviceName: tea-svc
    25            servicePort: 80
    26        - path: /coffee
    27          backend:
    28            serviceName: coffee-svc
    29            servicePort: 80
    30        - path: /ssl
    31          backend:
    32            serviceName: ssl-svc
    33            servicePort: 443
    34  ```
    35  *ssl-svc* is a service for an HTTPS application. The service becomes available at the `/ssl` path. Note how we used the **nginx.org/ssl-services** annotation.