Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
93 lines (92 sloc) 1.93 KB
{
"kind": "Deployment",
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "db",
"creationTimestamp": null,
"labels": {
"service": "db"
}
},
"spec": {
"replicas": 1,
"selector": {
"matchLabels": {
"service": "db"
}
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"service": "db",
"app": "mariadb",
"tier": "backend"
}
},
"spec": {
"containers": [
{
"name": "db",
"image": "evergreenitco/corp_website_example_mariadb:1.0.2",
"volumeMounts": [
{
"mountPath": "/var/lib/mysql",
"name": "dbpd"
}
],
"ports": [
{
"containerPort": 3306,
"protocol": "TCP"
}
],
"env": [
{
"name": "MYSQL_ROOT_PASSWORD",
"value": "P@ssw0rd$"
},
{
"name": "MYSQL_DATABASE",
"value": "web_counter"
},
{
"name": "MYSQL_USER",
"value": "web_counter"
},
{
"name": "MYSQL_PASSWORD",
"value": "P@ssw0rd!"
},
{
"name": "MYSQL_INITDB_SKIP_TZINFO",
"value": "yes"
}
],
"resources": {
"requests": {
"memory": "64Mi",
"cpu": "0.2"
},
"limits": {
"memory": "128Mi",
"cpu": "0.4"
}
}
}
],
"volumes": [
{
"name": "dbpd",
"persistentVolumeClaim": {
"claimName": "db-nfs-pvc"
}
}
],
"restartPolicy": "Always"
}
},
"strategy": {}
},
"status": {}
}