Skip to content

Commit

Permalink
feat(node-local-dns): add option to override coreDNS config
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrzemin committed Aug 27, 2023
1 parent a5b8976 commit ee60c3e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 35 deletions.
42 changes: 7 additions & 35 deletions stable/node-local-dns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,44 +12,19 @@ Further documentation is [here](https://kubernetes.io/docs/tasks/administer-clus

This helm chart works for both kube-proxy setups (iptables or ipvs).

## How to install this chart

Add Delivery Hero public chart repo:

```console
helm repo add deliveryhero https://charts.deliveryhero.io/
```

A simple install with default values:

```console
helm install deliveryhero/node-local-dns
```

To install the chart with the release name `my-release`:

```console
helm install my-release deliveryhero/node-local-dns
```

To install with some set values:

```console
helm install my-release deliveryhero/node-local-dns --set values_key1=value1 --set values_key2=value2
```

To install with custom values file:
## Maintainers

```console
helm install my-release deliveryhero/node-local-dns -f values.yaml
```
| Name | Email | Url |
| ---- | ------ | --- |
| gabrieladt | <no-reply@deliveryhero.com> | |

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| config.commProtocol | string | `"force_tcp"` | |
| config.customConfig | string | `nil` | |
| config.dnsDomain | string | `"cluster.local"` | |
| config.dnsServer | string | `"172.20.0.10"` | |
| config.healthPort | int | `8080` | |
Expand Down Expand Up @@ -80,8 +55,5 @@ helm install my-release deliveryhero/node-local-dns -f values.yaml
| serviceMonitor.enabled | bool | `false` | |
| serviceMonitor.labels | object | `{}` | |

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| gabrieladt | <no-reply@deliveryhero.com> | |
----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
4 changes: 4 additions & 0 deletions stable/node-local-dns/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
{{- include "node-local-dns.labels" . | nindent 4 }}
data:
Corefile: |
{{ if .Values.config.customConfig }}
{{ tpl .Values.config.customConfig . }}
{{ else }}
{{ .Values.config.dnsDomain }}:53 {
errors
cache {
Expand Down Expand Up @@ -54,3 +57,4 @@ data:
forward . __PILLAR__UPSTREAM__SERVERS__
prometheus :9253
}
{{ end }}
3 changes: 3 additions & 0 deletions stable/node-local-dns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ config:

skipTeardown: true

# Overrides the generated configuration with specified one.
customConfig: ""

nameOverride: ""
fullnameOverride: ""

Expand Down

0 comments on commit ee60c3e

Please sign in to comment.