diff --git a/README.md b/README.md index 0530574..f476e73 100644 --- a/README.md +++ b/README.md @@ -807,6 +807,7 @@ gitea: | `nodeSelector` | NodeSelector for the statefulset | `{}` | | `tolerations` | Tolerations for the statefulset | `[]` | | `affinity` | Affinity for the statefulset | `{}` | +| `dnsConfig` | dnsConfig for the statefulset | `{}` | | `statefulset.env` | Additional environment variables to pass to containers | `[]` | | `statefulset.terminationGracePeriodSeconds` | How long to wait until forcefully kill the pod | `60` | | `statefulset.labels` | Labels for the statefulset | `{}` | diff --git a/templates/gitea/statefulset.yaml b/templates/gitea/statefulset.yaml index 742abd8..bb2b42c 100644 --- a/templates/gitea/statefulset.yaml +++ b/templates/gitea/statefulset.yaml @@ -287,6 +287,10 @@ spec: {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} + {{- end }} + {{- if .Values.dnsConfig }} + dnsConfig: + {{- toYaml .Values.dnsConfig | nindent 8 }} {{- end }} volumes: - name: init diff --git a/values.yaml b/values.yaml index 92fcd5b..3589506 100644 --- a/values.yaml +++ b/values.yaml @@ -180,6 +180,9 @@ tolerations: [] ## @param affinity Affinity for the statefulset affinity: {} +## @param dnsConfig dnsConfig for the statefulset +dnsConfig: {} + ## @param statefulset.env Additional environment variables to pass to containers ## @param statefulset.terminationGracePeriodSeconds How long to wait until forcefully kill the pod ## @param statefulset.labels Labels for the statefulset