mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 17:17:46 +01:00
31 lines
607 B
YAML
31 lines
607 B
YAML
apiVersion: v1
|
|
kind: ReplicationController
|
|
metadata:
|
|
name: mysql
|
|
labels:
|
|
name: mysql
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
name: mysql
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: mysql
|
|
spec:
|
|
containers:
|
|
- name: mysql
|
|
image: caicloud/harbor_deploy_mysql:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 3306
|
|
env:
|
|
- name: MYSQL_ROOT_PASSWORD
|
|
value: root123
|
|
volumeMounts:
|
|
- name: mysql-storage
|
|
mountPath: /var/lib/mysql
|
|
volumes:
|
|
- name: mysql-storage
|
|
emptyDir: {}
|