Gitea-HelmChart/templates/gitea
dek bc16cc8134 add dnsConfig value support (#329)
Description of the change

Add support for a new value: dnsConfig, to be passed to the statefulset pod template configuration.

Default is {}, and does not change anything from current default pod configuration.
Benefits

Ability to fix some issues encountered with Alpine-based docker images, which may break DNS resolving on some clusters.

In particular, this allows to lower the ndots value, which fixes DNS resolving of FQDNs.

dnsConfig:
  options:
    - name: ndots
      value: "1"

Also, with this setting, one can set other parameters to finely tune DNS configuration for Gitea pods, if needed:

https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config
Possible drawbacks

None.
Additional information

Some relevant links about the issue this setting allows to fix:

https://stackoverflow.com/questions/65181012/does-alpine-have-known-dns-issue-within-kubernetes

https://gitlab.alpinelinux.org/alpine/aports/-/issues/9017
Checklist

    Parameters are documented in the values.yaml and added to the README.md using readme-generator-for-helm

Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/329
Reviewed-by: justusbunsi <justusbunsi@noreply.gitea.io>
Reviewed-by: luhahn <luhahn@noreply.gitea.io>
Co-authored-by: dek <dek@noreply.gitea.io>
Co-committed-by: dek <dek@noreply.gitea.io>
2022-06-27 14:35:55 +08:00
..
config.yaml Consider environment variables during app.ini creation (#298) 2022-03-09 14:47:55 +08:00
deprecation.yaml Add deprecation fail-safe for Chart templating (#269) 2021-12-23 00:25:32 +08:00
http-svc.yaml Allow configuration of ipFamilyPolicy and ipFamilies (#313) 2022-04-25 19:56:25 +08:00
ingress.yaml Enable overriding of ingress api version for systems where detection doesn't work (#252) 2021-12-20 19:54:37 +08:00
init.yaml Remove db connection check (#299) 2022-03-02 08:25:49 +08:00
servicemonitor.yaml Fixing prometheus monitoring (#157) 2021-06-07 22:28:28 +08:00
ssh-svc.yaml Allow configuration of ipFamilyPolicy and ipFamilies (#313) 2022-04-25 19:56:25 +08:00
statefulset.yaml add dnsConfig value support (#329) 2022-06-27 14:35:55 +08:00