Initial commit
This commit is contained in:
63
deployments/CoreNetwork/default/mysql-deployment.yaml
Normal file
63
deployments/CoreNetwork/default/mysql-deployment.yaml
Normal file
@@ -0,0 +1,63 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.cmd: kompose convert -f ../docker-compose.yaml
|
||||
kompose.version: 1.26.0 (40646f47)
|
||||
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 -f ../docker-compose.yaml
|
||||
kompose.version: 1.26.0 (40646f47)
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.network/rfsim5g-oai-public-net: "true"
|
||||
io.kompose.service: mysql
|
||||
spec:
|
||||
containers:
|
||||
- env:
|
||||
- name: MYSQL_DATABASE
|
||||
value: oai_db
|
||||
- name: MYSQL_PASSWORD
|
||||
value: test
|
||||
- name: MYSQL_ROOT_PASSWORD
|
||||
value: linux
|
||||
- name: MYSQL_USER
|
||||
value: test
|
||||
- name: TZ
|
||||
value: Europe/Paris
|
||||
image: mysql:5.7
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/bash -c "/tmp/mysql-healthcheck.sh"
|
||||
failureThreshold: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
name: rfsim5g-mysql
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- mountPath: /docker-entrypoint-initdb.d/oai_db.sql
|
||||
name: mysql-claim0
|
||||
- mountPath: /tmp/mysql-healthcheck.sh
|
||||
name: mysql-claim1
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- name: mysql-claim0
|
||||
persistentVolumeClaim:
|
||||
claimName: mysql-claim0
|
||||
- name: mysql-claim1
|
||||
persistentVolumeClaim:
|
||||
claimName: mysql-claim1
|
||||
status: {}
|
||||
Reference in New Issue
Block a user