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

feat(deployment): update mysql to 5.7 and support running as nonroot #5278

Merged
merged 7 commits into from
Mar 14, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion manifests/kustomize/third-party/mysql/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ kind: Kustomization
resources:
- mysql-deployment.yaml
- mysql-pv-claim.yaml
- mysql-service.yaml
- mysql-service.yaml
- mysql-serviceaccount.yaml
10 changes: 7 additions & 3 deletions manifests/kustomize/third-party/mysql/mysql-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ spec:
labels:
app: mysql
spec:
serviceAccountName: mysql
containers:
- env:
- args:
- --datadir
- /var/lib/mysql
env:
- name: MYSQL_ALLOW_EMPTY_PASSWORD
value: "true"
image: gcr.io/ml-pipeline/mysql:5.6
image: gcr.io/ml-pipeline/mysql:5.7
name: mysql
ports:
- containerPort: 3306
Expand All @@ -30,4 +34,4 @@ spec:
volumes:
- name: mysql-persistent-storage
persistentVolumeClaim:
claimName: mysql-pv-claim
claimName: mysql-pv-claim
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: mysql