First pod and service definition

Change-Id: Id39a2831d7f738bfa7209a9612032f24d1f0a8c7
This commit is contained in:
Artur Zarzycki 2016-05-18 11:50:51 +02:00
parent f15aefcb06
commit 7037b8ad52
2 changed files with 34 additions and 0 deletions

15
service/mcp-mysql.yaml.j2 Normal file
View File

@ -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

View File

@ -0,0 +1,19 @@
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "openstack-mysql"
},
"spec": {
"selector": {
"app": "mariadb"
},
"ports": [
{
"protocol": "TCP",
"port": 3306,
"targetPort": 3306
}
]
}
}