Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

Notes for K8s Services

  • create a simple service
  • expose stable address
  • expose through Env var and DNS
  • services should be created b4 client pods for th8 service
  • service name is hostname for service apart from IP, which is maintained in DNS server pod in kube-system namespace
  • Expose/Impose the external machines to Cluster and make them available to pods in the cluster -> 1) create service without selector and create Endpoints resource with external IPs. now Pods can access out of cluster nodes throough that service.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.