update: mysql
parent
e60753f608
commit
bc6a415498
|
@ -2,7 +2,6 @@ apiVersion: v1
|
|||
kind: ReplicationController
|
||||
metadata:
|
||||
name: mysql
|
||||
namespace: dev
|
||||
labels:
|
||||
name: mysql
|
||||
spec:
|
||||
|
@ -20,7 +19,7 @@ spec:
|
|||
ports:
|
||||
- containerPort: 3306
|
||||
volumeMounts:
|
||||
- name: mysql-data-dev
|
||||
- name: mysql-data-prod
|
||||
mountPath: /var/lib/mysql
|
||||
env:
|
||||
- name: MYSQL_ROOT_PASSWORD
|
||||
|
@ -32,15 +31,14 @@ spec:
|
|||
- name: MYSQL_PASSWORD
|
||||
value: "Devops@2099"
|
||||
volumes:
|
||||
- name: mysql-data-dev
|
||||
- name: mysql-data-prod
|
||||
hostPath:
|
||||
path: /data/dev/mysql
|
||||
path: /data/prod/mysql
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mysql
|
||||
namespace: dev
|
||||
labels:
|
||||
name: mysql
|
||||
spec:
|
||||
|
|
Loading…
Reference in New Issue