mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-28 19:47:58 +01:00
33 lines
741 B
YAML
33 lines
741 B
YAML
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: mysql
|
|
labels:
|
|
name: mysql
|
|
spec:
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: mysql-apps
|
|
spec:
|
|
containers:
|
|
- name: mysql-app
|
|
image: vmware/harbor-db:v1.2.0
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 3306
|
|
env:
|
|
- name: MYSQL_ROOT_PASSWORD
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: harbor-mysql-config
|
|
key: MYSQL_ROOT_PASSWORD
|
|
volumeMounts:
|
|
- name: mysql-storage
|
|
mountPath: /var/lib/mysql
|
|
volumes:
|
|
- name: mysql-storage
|
|
persistentVolumeClaim:
|
|
claimName: storage-pvc
|