First pod and service definition
Change-Id: Id39a2831d7f738bfa7209a9612032f24d1f0a8c7
This commit is contained in:
parent
f15aefcb06
commit
7037b8ad52
|
@ -0,0 +1,15 @@
|
|||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: mariadb
|
||||
spec:
|
||||
containers:
|
||||
- name: mariadb
|
||||
image: {{ namespace }}/mariadb:{{ tag }}
|
||||
env:
|
||||
- name: DB_ROOT_PASSWORD
|
||||
value: password
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
hostPort: 3306
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"kind": "Service",
|
||||
"apiVersion": "v1",
|
||||
"metadata": {
|
||||
"name": "openstack-mysql"
|
||||
},
|
||||
"spec": {
|
||||
"selector": {
|
||||
"app": "mariadb"
|
||||
},
|
||||
"ports": [
|
||||
{
|
||||
"protocol": "TCP",
|
||||
"port": 3306,
|
||||
"targetPort": 3306
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue