kubi files
This commit is contained in:
30
k8s/mariadb-deployment.yaml
Normal file
30
k8s/mariadb-deployment.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: telefonkonyv-db
|
||||
namespace: szakdolgozat
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: telefonkonyv-db
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: telefonkonyv-db
|
||||
spec:
|
||||
containers:
|
||||
- name: mariadb
|
||||
image: mariadb:11
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
env:
|
||||
- name: MARIADB_ROOT_PASSWORD
|
||||
value: "rootpw"
|
||||
- name: MARIADB_DATABASE
|
||||
value: "telefonkonyv"
|
||||
- name: MARIADB_USER
|
||||
value: "appuser"
|
||||
- name: MARIADB_PASSWORD
|
||||
value: "apppass"
|
||||
Reference in New Issue
Block a user