Skip to content

Instantly share code, notes, and snippets.

@kamal-github
Last active January 6, 2019 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamal-github/7782da4e2cc089c01cf465c1b7b7f251 to your computer and use it in GitHub Desktop.
Save kamal-github/7782da4e2cc089c01cf465c1b7b7f251 to your computer and use it in GitHub Desktop.

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