You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
742 B
33 lines
742 B
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: model-registry-db
|
|
spec:
|
|
template:
|
|
spec:
|
|
## initContainer 추가
|
|
initContainers:
|
|
- args:
|
|
- /bin/sh
|
|
- -c
|
|
- chown 999:999 /var/lib/mysql
|
|
image: busybox:1.36
|
|
imagePullPolicy: IfNotPresent
|
|
name: init-permissions
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 100Mi
|
|
securityContext:
|
|
runAsGroup: 0
|
|
runAsNonRoot: false
|
|
runAsUser: 0
|
|
volumeMounts:
|
|
- mountPath: /var/lib/mysql
|
|
name: metadata-mysql
|
|
containers:
|
|
- name: db-container
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 100M |