-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmySQL-rs
More file actions
35 lines (35 loc) · 707 Bytes
/
mySQL-rs
File metadata and controls
35 lines (35 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
apiVersion: extensions/v1beta1
kind: ReplicaSet
metadata:
name: mysql-rs
labels:
app: mysql-rs
spec:
replicas: 1
selector:
matchLabels:
app: mysql-rs-pod
template:
metadata:
labels:
app: mysql-rs-pod
spec:
volumes:
- name: db-volume
persistentVolumeClaim:
claimName: db-pvc
containers:
- name: mysql
image: mysql:5.6
env:
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
livenessProbe:
tcpSocket:
port: 3306
ports:
- containerPort: 3306
volumeMounts:
- name: db-volume
mountPath: /var/lib/mysql