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"
|
||||||
13
k8s/mariadb-service.yaml
Normal file
13
k8s/mariadb-service.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: telefonkonyv-db
|
||||||
|
namespace: szakdolgozat
|
||||||
|
spec:
|
||||||
|
type: NodePort
|
||||||
|
selector:
|
||||||
|
app: telefonkonyv-db
|
||||||
|
ports:
|
||||||
|
- port: 3306
|
||||||
|
targetPort: 3306
|
||||||
|
nodePort: 31306
|
||||||
Reference in New Issue
Block a user