Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch里启动mysql,volume使用的emptyDir,有问题 #93

Open
yushanjin opened this issue Mar 8, 2022 · 1 comment
Open

patch里启动mysql,volume使用的emptyDir,有问题 #93

yushanjin opened this issue Mar 8, 2022 · 1 comment

Comments

@yushanjin
Copy link

前面部署里启动mysql,使用的pvc,后面打patch,确使用了emptyDir。导致其他服务在mysql中初始化的database都没有,建议修改成一致
[root@xxxx patch]# cat mysql-persistent-storage.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: mysql
application-crd-id: kubeflow-pipelines
name: mysql
namespace: kubeflow
spec:
selector:
matchLabels:
app: mysql
application-crd-id: kubeflow-pipelines
strategy:
type: Recreate
template:
metadata:
labels:
app: mysql
application-crd-id: kubeflow-pipelines
spec:
containers:
- args:
- --ignore-db-dir=lost+found
- --datadir
- /var/lib/mysql
env:
- name: MYSQL_ALLOW_EMPTY_PASSWORD
value: "true"
image: registry.cn-shenzhen.aliyuncs.com/tensorbytes/ml-pipeline-mysql:5.7-f8fcd
name: mysql
ports:
- containerPort: 3306
name: mysql
resources:
requests:
cpu: 100m
memory: 800Mi
volumeMounts:
- mountPath: /var/lib/mysql
name: mysql-persistent-storage
serviceAccountName: mysql
nodeSelector:
app: kubeflow
volumes:
- name: mysql-persistent-storage
emptyDir:
{}

@shikanon
Copy link
Owner

@yushanjin thx,已修复 #96

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants