Endpoint and ingress questions

Hi! I have 2 questions: My issue is i somehow cannot find this in official documentation. Maybe i am just not seeing it…

  1. is there a yaml in k8s.io for creating service endpoints? I came across a ques for which below yaml was used to create endpoint, but i couldnt the yaml in docs.

apiVersion: v1
kind: Endpoints
metadata:
name: external-webserver-cka03-svcn
namespace: default
subsets:

  • addresses:
    • ip: 192.37.66.3
      ports:
    • port: 9999
  1. Ingress Ques:
    Is below ssl-redirect annotation available in k8s.io? Or do we have to remember it? Can soemone direct me to the location in docs where i can refer to this in exam?

    nginx.ingress.kubernetes.io/ssl-redirect: “false”

Thank you!

  1. I came across this as well at some point: I don’t think there’s a page that documents endpoints (except perhaps a reference page). The one time I dealt with that, I found an existing endpoint for a service, dumped its yaml, and edited the dump. IIRC, that worked fine.
  2. I’m not sure that annotation is in the K8s docs; I believe you’d need the ingress-nginx github repo to find that information.

Thank You! Much appreciated…