Skip to content

Commit

Permalink
Merge branch 'main' into renovate/gha-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-mccoy authored Feb 28, 2024
2 parents c3e67bf + e677483 commit d729e07
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ package:
Configure MinIO:
- [Configuring Minio](docs/MINIO.md)
### DNS Assumptions:
- [DNS Assumptions](docs/DNS.md)
8 changes: 8 additions & 0 deletions chart/templates/core-dns-custom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: coredns-custom
namespace: kube-system
data:
uds.override: |
rewrite name regex (.*\.uds\.dev) host.k3d.internal
13 changes: 13 additions & 0 deletions docs/DNS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Domain Assumptions

One of the core assumptions of the `uds-k3d` package is the use of `uds.dev` as the base domain for your development environment. This assumption is integral to the DNS and network configuration provided by the package. It is based on an existing DNS entry for `*.uds.dev` that resolves to `127.0.0.1`, facilitating local development and testing.

### CoreDNS Override

The package includes a CoreDNS configuration override designed to rewrite requests for `*.uds.dev` to `host.k3d.internal`. This rewrite ensures that any DNS resolution request within the cluster targeting a `*.uds.dev` address will be correctly routed to `host.k3d.internal` which is an internal K3D alias which resolves to the host gateway.

The outcome of this is a pods in the cluster can resolve domains like sso.uds.dev to an address (not 127.0.0.1) that will ultimately get routed correctly.

### Nginx Configuration

Additionally, the package includes Nginx configuration that assumes the use of `uds.dev` as the base domain. This configuration is tailored to support the development environment setup, ensuring that Nginx correctly handles requests and routes them within the cluster, based on the `uds.dev` domain.
3 changes: 3 additions & 0 deletions zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ components:
description: "Load network ip base for MetalLB"
setVariables:
- name: BASE_IP
after:
- cmd: ./zarf tools kubectl rollout restart deployment coredns -n kube-system
description: "Restart CoreDNS to pick up internal DNS override for uds.dev"
charts:
- name: metallb
namespace: uds-dev-stack
Expand Down

0 comments on commit d729e07

Please sign in to comment.