diff --git a/charts/stable/mosdns/Chart.yaml b/charts/stable/mosdns/Chart.yaml index cc9be0af0b3..73499b66ac1 100644 --- a/charts/stable/mosdns/Chart.yaml +++ b/charts/stable/mosdns/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 kubeVersion: ">=1.16.0-0" name: mosdns -version: 2.0.10 +version: 2.0.11 appVersion: "3.9.0" description: A location-based pluggable DNS forwarder/splitter. type: application diff --git a/charts/stable/mosdns/questions.yaml b/charts/stable/mosdns/questions.yaml index a465f928d94..23086981701 100644 --- a/charts/stable/mosdns/questions.yaml +++ b/charts/stable/mosdns/questions.yaml @@ -71,6 +71,61 @@ questions: attrs: # Include{serviceSelector} - variable: main + label: "DNS Service Port Configuration" + schema: + additional_attrs: true + type: dict + attrs: + - variable: port + label: "Port" + description: "This port exposes the container port on the service" + schema: + type: int + default: 53 + required: true + - variable: advanced + label: "Show Advanced settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: protocol + label: "Port Type" + schema: + type: string + default: "TCP" + enum: + - value: HTTP + description: "HTTP" + - value: "HTTPS" + description: "HTTPS" + - value: TCP + description: "TCP" + - value: "UDP" + description: "UDP" + - variable: nodePort + label: "Node Port (Optional)" + description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer" + schema: + type: int + min: 9000 + max: 65535 + - variable: targetPort + label: "Target Port" + description: "The internal(!) port on the container the Application runs on" + schema: + type: int + default: 53 + - variable: dns-udp + label: "DNS Service" + description: "The Primary service on which the healthcheck runs, often the webUI" + schema: + additional_attrs: true + type: dict + attrs: +# Include{serviceSelector} + - variable: dns-udp label: "DNS Service Port Configuration" schema: additional_attrs: true diff --git a/charts/stable/mosdns/values.yaml b/charts/stable/mosdns/values.yaml index 112293bcb28..66ec0bebf35 100644 --- a/charts/stable/mosdns/values.yaml +++ b/charts/stable/mosdns/values.yaml @@ -15,6 +15,13 @@ service: main: ports: main: + targetPort: 53 + port: 53 + dns-udp: + enabled: true + ports: + dns-upd: + enabled: true protocol: UDP targetPort: 53 port: 53