diff --git a/mysql.yaml b/mysql.yaml index 63ff9a8..c6833f6 100755 --- a/mysql.yaml +++ b/mysql.yaml @@ -13,7 +13,7 @@ spec: name: mysql selector: app: mysql - clusterIP: None + clusterIP: 10.99.10.10 --- apiVersion: apps/v1 kind: Deployment diff --git a/mysql/Dockerfile b/mysql/Dockerfile index bea0471..8da43a4 100755 --- a/mysql/Dockerfile +++ b/mysql/Dockerfile @@ -1,9 +1,9 @@ -FROM alpine:3.12 -RUN echo "root:root" | chpasswd +FROM alpine:3.13.3 RUN apk update RUN apk add mariadb mariadb-common mariadb-client COPY my.cnf /etc/my.cnf EXPOSE 3306 COPY start.sh /start.sh RUN chmod +x /start.sh +VOLUME ["/var/lib/mysql"] CMD ["/start.sh"] \ No newline at end of file