K8s yaml (#254)
* wjluo add k8s-yaml, 20220509 * Update README.md Co-authored-by: ccoe <ccoe@wjluodeMacBook-Pro.local>
This commit is contained in:
48
playground/deploy-k8s/mysql-deployment.yaml
Normal file
48
playground/deploy-k8s/mysql-deployment.yaml
Normal file
@ -0,0 +1,48 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.cmd: kompose convert
|
||||
kompose.version: 1.26.1 (a9d05d509)
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: mysql
|
||||
name: mysql
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
io.kompose.service: mysql
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.cmd: kompose convert
|
||||
kompose.version: 1.26.1 (a9d05d509)
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: mysql
|
||||
spec:
|
||||
containers:
|
||||
- env:
|
||||
- name: MYSQL_DATABASE
|
||||
value: next-terminal
|
||||
- name: MYSQL_PASSWORD
|
||||
value: next-terminal
|
||||
- name: MYSQL_ROOT_PASSWORD
|
||||
value: next-terminal
|
||||
- name: MYSQL_USER
|
||||
value: next-terminal
|
||||
image: mysql:8.0
|
||||
name: mysql
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/mysql
|
||||
name: mysql-claim0
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- name: mysql-claim0
|
||||
persistentVolumeClaim:
|
||||
claimName: mysql-claim0
|
||||
status: {}
|
Reference in New Issue
Block a user