mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 14:30:12 +01:00
72 lines
No EOL
1.5 KiB
YAML
72 lines
No EOL
1.5 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: percona
|
|
labels:
|
|
lkey: lvalue
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
lkey: lvalue
|
|
template:
|
|
metadata:
|
|
labels:
|
|
lkey: lvalue
|
|
spec:
|
|
containers:
|
|
- resources:
|
|
limits:
|
|
cpu: 0.5
|
|
name: percona
|
|
image: openebs/tests-custom-percona:latest
|
|
imagePullPolicy: IfNotPresent
|
|
args:
|
|
- "--ignore-db-dir"
|
|
- "lost+found"
|
|
env:
|
|
- name: MYSQL_ROOT_PASSWORD
|
|
value: k8sDem0
|
|
ports:
|
|
- containerPort: 3306
|
|
name: percona
|
|
volumeMounts:
|
|
- mountPath: /var/lib/mysql
|
|
name: data-vol
|
|
#<!-- BEGIN ANSIBLE MANAGED BLOCK -->
|
|
livenessProbe:
|
|
exec:
|
|
command: ["bash", "sql-test.sh"]
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 1
|
|
timeoutSeconds: 10
|
|
#<!-- END ANSIBLE MANAGED BLOCK -->
|
|
volumes:
|
|
- name: data-vol
|
|
persistentVolumeClaim:
|
|
claimName: testclaim
|
|
---
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: testclaim
|
|
spec:
|
|
storageClassName: testclass
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: teststorage
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: percona-mysql
|
|
labels:
|
|
lkey: lvalue
|
|
spec:
|
|
ports:
|
|
- port: 3306
|
|
targetPort: 3306
|
|
selector:
|
|
lkey: lvalue |