Consuming Private Cloud Hostnames
Prerequisites
- Your cluster needs to run Space Agent 2.17.0 or later.
- You need Local Agent 2.17.0 or later.
- You need macOS 15 or above with the Network Extension enabled in the Codezero desktop app.
- Edit the ConfigMap
domain-forwarding
in thecodezero
namespace:
kubectl edit configmap domain-forwarding -n codezero
- 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
[…]
- Consume the domains, e.g.:
echo "amazonaws.com" | czctl consume apply
- 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.
- 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
- Consume
b-1.democluster2.euesoh.c6.kafka.us-east-2.amazonaws.com
service via the Codezero desktop app orczctl
echo "b-1.democluster2.euesoh.c6.kafka.us-east-2.amazonaws.com" | czctl consume apply