Skip to content

Commit bf6366a

Browse files
committed
enableServiceLinks for mariadb 7.5.2 subchart
1 parent 51937f6 commit bf6366a

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

mariadb-7.5.2/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ The following table lists the configurable parameters of the MariaDB chart and t
7373
| `service.clusterIp.master` | Specific cluster IP for master when service type is cluster IP. Use None for headless service | `nil` |
7474
| `service.clusterIp.slave` | Specific cluster IP for slave when service type is cluster IP. Use None for headless service | `nil` |
7575
| `service.port` | MySQL service port | `3306` |
76+
| `enableServiceLinks` | Set to false to disable service links, which can cause slow pod startup times when there are many services in the current namespace. | `true` |
7677
| `serviceAccount.create` | Specifies whether a ServiceAccount should be created | `false` |
7778
| `serviceAccount.name` | The name of the ServiceAccount to create | Generated using the mariadb.fullname template |
7879
| `schedulerName` | Name of the k8s scheduler (other than default) | `nil` |

mariadb-7.5.2/templates/master-statefulset.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ spec:
3535
component: master
3636
{{- include "mariadb.podLabels" . | nindent 8 }}
3737
spec:
38+
enableServiceLinks: {{ .Values.enableServiceLinks }}
3839
{{- if .Values.schedulerName }}
3940
schedulerName: {{ .Values.schedulerName | quote }}
4041
{{- end }}

mariadb-7.5.2/templates/slave-statefulset.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ spec:
3838
component: slave
3939
{{- include "mariadb.podLabels" . | nindent 8 }}
4040
spec:
41+
enableServiceLinks: {{ .Values.enableServiceLinks }}
4142
{{- if .Values.schedulerName }}
4243
schedulerName: {{ .Values.schedulerName | quote }}
4344
{{- end }}

mariadb-7.5.2/values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ service:
8282
# master: 30001
8383
# slave: 30002
8484

85+
# The environment variables injected by service links are not used, but can lead to slow boot times when
86+
# there are many services in the current namespace.
87+
# If you experience slow pod startups you probably want to set this to `false`.
88+
enableServiceLinks: true
89+
8590
## Pods Service Account
8691
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
8792
serviceAccount:

0 commit comments

Comments
 (0)