mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2026-04-16 05:21:01 +02:00
* docs(aws): tutorial with kind and localstack Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com> * remove dependencies Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com> * docs(aws): tutorial with kind and localstack Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com> * docs(aws): tutorial with kind and localstack Co-authored-by: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com> * docs(aws): tutorial with kind and localstack Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com> * docs(aws): tutorial with kind and localstack Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com> * docs(aws): tutorial with kind and localstack Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com> * docs(aws): tutorial with kind and localstack Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com> --------- Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com> Co-authored-by: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com>
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
# ref: https://github.com/localstack/helm-charts/blob/main/charts/localstack/values.yaml
|
|
|
|
debug: false
|
|
|
|
extraLabels:
|
|
app: localstack
|
|
|
|
extraEnvVars:
|
|
- name: SERVICES
|
|
value: "route53"
|
|
|
|
# -- Set a fixed port for LocalStack edge service --
|
|
service:
|
|
type: NodePort
|
|
edgeService:
|
|
name: edge
|
|
targetPort: 4566
|
|
nodePort: 32379
|
|
|
|
enableStartupScripts: true
|
|
startupScriptContent: |
|
|
#!/bin/bash
|
|
create_zone_if_missing() {
|
|
ZONE_NAME="$1"
|
|
COMMENT="$2"
|
|
|
|
EXISTING_ZONE_ID=$(
|
|
awslocal route53 list-hosted-zones-by-name \
|
|
--dns-name "${ZONE_NAME}." \
|
|
--query "HostedZones[?Name=='${ZONE_NAME}.'].Id | [0]" \
|
|
--output text
|
|
)
|
|
|
|
if [ "$EXISTING_ZONE_ID" != "None" ]; then
|
|
echo "Route53 zone '${ZONE_NAME}' already exists (${EXISTING_ZONE_ID})"
|
|
return 0
|
|
fi
|
|
|
|
echo "Creating Route53 zone '${ZONE_NAME}'"
|
|
awslocal route53 create-hosted-zone \
|
|
--name "$ZONE_NAME" \
|
|
--caller-reference "$(date +%s)" \
|
|
--hosted-zone-config Comment="$COMMENT"
|
|
}
|
|
|
|
create_zone_if_missing "local.tld" "external-dns"
|
|
create_zone_if_missing "example.com" "external-dns"
|
|
|
|
lambda:
|
|
executor: "kubernetes"
|