From 0a0b8250ec97639adee44a868dac21847866b1d9 Mon Sep 17 00:00:00 2001 From: Gerardo Gomez Date: Mon, 4 Jul 2022 17:22:13 +0200 Subject: [PATCH] chore(mysql): use mysql 8 to prevent high memory usage in environments with ulimit-nofile too high Ref https://github.com/docker-library/mysql/issues/579) --- kustomize/fl-suite/base/kustomization.yaml | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/kustomize/fl-suite/base/kustomization.yaml b/kustomize/fl-suite/base/kustomization.yaml index 2d66897..321b43a 100644 --- a/kustomize/fl-suite/base/kustomization.yaml +++ b/kustomize/fl-suite/base/kustomization.yaml @@ -49,3 +49,26 @@ resources: - ../../../components/kubeflow-pipeline/kustomize - ../../../components/fl-orchestrator - ../../../components/client-image-builder/kustomize + +patches: + # This patch (kustomize patch) is here to use mysql 8.0 which prevents really + # high memory usage (https://github.com/docker-library/mysql/issues/579) in + # environments with nofile set to infinity or too high. This patch can be + # discarded once https://github.com/kubeflow/pipelines/pull/5946 is merged + # into kubeflow. + - patch: |- + - op: replace + path: /spec/template/spec/containers/0/image + value: gcr.io/ml-pipeline/mysql:8.0 + - op: replace + path: /spec/template/spec/containers/0/args + value: + - --default-authentication-plugin=mysql_native_password + - --datadir + - /var/lib/mysql + target: + name: mysql + namespace: kubeflow + kind: Deployment + group: apps + version: v1