Skip to main content

Consuming Private Cloud Hostnames

Prerequisites
  1. Edit the ConfigMap domain-forwarding in the codezero namespace:
kubectl edit configmap domain-forwarding -n codezero
  1. Set the data.domains value to the list of domains that you want to be able to consume, e.g.:
apiVersion: v1
data:
domains: |
- amazonaws.com
kind: ConfigMap
[]
  1. Consume the domains, e.g.:
echo "amazonaws.com" | czctl consume apply
  1. Access the domains or any of its subdomains, e.g.:
$KAFKA_HOME/bin/kafka-broker-api-versions.sh --bootstrap-server b-1.democluster2.euesoh.c6.kafka.us-east-2.amazonaws.com:9096 --version

Versions prior to 2.17.0

If you are running version 2.16.1 or below, you can use the following steps if you want to consume a private cloud hostname that is accessible to your cluster. This approach does not support subdomains.

  1. For each fully qualified hostname create a Kubernetes secret in the codezero namespace. The secret name must match the hostname of the external resource.
apiVersion: v1
kind: Secret
metadata:
name: b-1.democluster2.euesoh.c6.kafka.us-east-2.amazonaws.com
namespace: codezero
annotations:
codezero.io/credentials-infusion-type: none
codezero.io/credentials-infusion-port: "9096"
type: Opaque
  1. Consume b-1.democluster2.euesoh.c6.kafka.us-east-2.amazonaws.com service via the Codezero desktop app or czctl
echo "b-1.democluster2.euesoh.c6.kafka.us-east-2.amazonaws.com" | czctl consume apply