mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 19:56:09 +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: {}
|