Sign inSign up

chipzoller/pks-dns

By chipzoller

•Updated over 6 years ago

Create DNS records automatically for new PKS Kubernetes clusters.

Image
0

317

chipzoller/pks-dns repository overview

⁠About

This image automates the DNS creation process from a VMware PKS cluster build. By combining PowerShell, kubectl, a custom-built PS1 script, and a couple small packages, it provides a fully-automated process to retrieve the cluster name on which its run, derive the IP, and create DNS records.

⁠How It Works

Built from PowerShell Core 6.2, this image includes a custom PowerShell script which performs a number of steps automatically in order to finally create DNS records. This process is as follows:

  1. Dumps out the node labels with kubectl in order to find the cluster name.
  2. Connects to the PKS API and watches for the availability of the master IP address given the cluster name.
  3. Connects to a remote Windows host via SSH to add a DNS A record with the name and IP address.

Note: Due to the requirement for certain node labels to exist, this image is only designed to be run from within a Kubernetes cluster built by VMware PKS.

⁠Image Contents

  • PowerShell Core 6.2.2 (Ubuntu Xenial)
  • kubectl
  • openssh-client
  • sshpass
  • curl
  • jq
  • pks-dns.ps1

⁠Changelog

  • 1.0 - Initial build
  • 1.1 - Refined pks-dns.ps1 script
  • 1.2 - Added jq binary for future use cases. Compatible with PKS 1.4.
  • 1.3 - Push packages. Compatible with PKS 1.7.

Tag summary

Content type

Image

Digest

Size

195.7 MB

Last updated

over 6 years ago

docker pull chipzoller/pks-dns:1.3