#!/usr/bin/env bash # This script creates a DNS A records for '127.0.0.1.sslip.io' and '*.127.0.0.1.sslip.io' pointing to the cluster node. function patch_hosts() { local cluster_node_addr cluster_node_addr="$(docker container inspect func-control-plane | jq ".[0].NetworkSettings.Networks.kind.IPAddress" -r)" kubectl patch cm/coredns -n kube-system --patch-file /dev/stdin <