
Right now we are using nginx ingress as LB on top of mariadb, this adds aditional ovehead between client and server. Additionally there is no way to control master node with ingress, which creates backup procedure more complex. To avoid that alternative approach is proposed https://review.opendev.org/#/c/752679/, which allows to drop ingress. pykube-ng is needed to allow connecting to kubernetes from mariadb-controller pod that selects master node. Change-Id: I4e227c8c20e7409d1fc77d71ee0159aff5e07979
26 lines
691 B
Docker
26 lines
691 B
Docker
# mariadb:10.4.12
|
|
ARG FROM=docker.io/mariadb@sha256:b3116f425f51353e2ba71b04647977b035c2c578d276e2d4285bd2798e8199ae
|
|
FROM ${FROM}
|
|
|
|
RUN set -ex ;\
|
|
apt-get update ;\
|
|
apt-get upgrade -y ;\
|
|
apt-get install -y --no-install-recommends \
|
|
python3-pip ;\
|
|
pip3 --no-cache-dir install --upgrade pip ;\
|
|
hash -r ;\
|
|
pip3 --no-cache-dir install --upgrade setuptools ;\
|
|
pip3 --no-cache-dir install --upgrade \
|
|
configparser \
|
|
iso8601 \
|
|
kubernetes \
|
|
pykube-ng ;\
|
|
apt-get clean -y ;\
|
|
rm -rf \
|
|
/var/cache/debconf/* \
|
|
/var/lib/apt/lists/* \
|
|
/var/log/* \
|
|
/tmp/* \
|
|
/var/tmp/* ;\
|
|
usermod -s /bin/false mysql
|