Added centOS commands
[ealt-edge.git] / mecm / mepm / applcm / resources / deployment / db-deployment.yaml
1 # Copyright 2020 Huawei Technologies Co., Ltd.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 # yamllint disable
16 apiVersion: apps/v1
17 kind: Deployment
18 metadata:
19   annotations:
20     kompose.cmd: kompose convert
21     kompose.version: 1.21.0 (992df58d8)
22   creationTimestamp: null
23   labels:
24     io.kompose.service: db
25   name: db
26 spec:
27   replicas: 1
28   selector:
29     matchLabels:
30       io.kompose.service: db
31   strategy:
32     type: Recreate
33   template:
34     metadata:
35       annotations:
36         kompose.cmd: kompose convert
37         kompose.version: 1.21.0 (992df58d8)
38       creationTimestamp: null
39       labels:
40         io.kompose.service: db
41     spec:
42       containers:
43       - env:
44         - name: MYSQL_DATABASE
45           value: db
46         - name: MYSQL_PASSWORD
47           value: password
48         - name: MYSQL_ROOT_PASSWORD
49           value: password
50         - name: MYSQL_USER
51           value: root
52         image: mysql/mysql-server
53         imagePullPolicy: ""
54         name: db
55         ports:
56         - containerPort: 3306
57         resources: {}
58         volumeMounts:
59         - mountPath: /var/lib/mysql
60           name: my-db
61       restartPolicy: Always
62       serviceAccountName: ""
63       volumes:
64       - name: my-db
65         hostPath:
66           path: /data
67           type: DirectoryOrCreate
68 status: {}
69
70 # yamllint enable