mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-23 14:50:24 +00:00
29 lines
534 B
YAML
29 lines
534 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: mysql-pod
|
|
labels:
|
|
name: mysql-pod
|
|
context: docker-k8s-lab
|
|
spec:
|
|
containers:
|
|
-
|
|
name: mysql
|
|
image: mysql:latest
|
|
env:
|
|
-
|
|
name: "MYSQL_USER"
|
|
value: "mysql"
|
|
-
|
|
name: "MYSQL_PASSWORD"
|
|
value: "mysql"
|
|
-
|
|
name: "MYSQL_DATABASE"
|
|
value: "sample"
|
|
-
|
|
name: "MYSQL_ROOT_PASSWORD"
|
|
value: "supersecret"
|
|
ports:
|
|
-
|
|
containerPort: 3306
|