Skip to content

Commit

Permalink
chore: add admin domain / set zarf variables
Browse files Browse the repository at this point in the history
  • Loading branch information
joelmccoy committed Dec 17, 2024
1 parent 5986bb6 commit 27e8c9e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chart/templates/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ data:
stream {
map $ssl_preread_server_name $selected_upstream {
hostnames;
*.admin.{{ .Values.domain }} backend_admin;
*.{{ .Values.adminDomain }} backend_admin;
*.{{ .Values.domain }} backend_tenant;
{{- if .Values.customGateway | default false}}
*.{{ .Values.customGateway.domainName }} backend_custom_gateway;
Expand Down
3 changes: 2 additions & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
extraPorts: []

domain: uds.dev
domain: "###ZARF_VAR_DOMAIN###"
adminDomain: "###ZARF_VAR_ADMIN_DOMAIN###"

coreDnsOverrides: |
rewrite stop {
Expand Down
7 changes: 7 additions & 0 deletions zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ variables:
description: "Optionally allow more ports through Nginx (combine with K3D_EXTRA_ARGS '-p <port>:<port>@server:*')"
default: "[]"

- name: DOMAIN
description: "Cluster domain"
default: "uds.dev"

- name: ADMIN_DOMAIN
description: "Domain for admin services, defaults to `admin.DOMAIN`"

components:
- name: destroy-cluster
required: true
Expand Down

0 comments on commit 27e8c9e

Please sign in to comment.