We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e4862d + 9283a69 commit 210f802Copy full SHA for 210f802
content/en/examples/application/mysql/mysql-statefulset.yaml
@@ -24,7 +24,7 @@ spec:
24
- |
25
set -ex
26
# Generate mysql server-id from pod ordinal index.
27
- [[ `hostname` =~ -([0-9]+)$ ]] || exit 1
+ [[ $HOSTNAME =~ -([0-9]+)$ ]] || exit 1
28
ordinal=${BASH_REMATCH[1]}
29
echo [mysqld] > /mnt/conf.d/server-id.cnf
30
# Add an offset to avoid reserved server-id=0 value.
0 commit comments