Added routes to templates
This commit is contained in:
parent
8a5a2cb4d8
commit
aa79a05018
2 changed files with 40 additions and 0 deletions
|
@ -57,6 +57,21 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"kind": "Route",
|
||||||
|
"apiVersion": "v1beta3",
|
||||||
|
"metadata": {
|
||||||
|
"name": "${FRONTEND_SERVICE_NAME}-route",
|
||||||
|
"creationTimestamp": null
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"host" : "${FRONTEND_ROUTE}",
|
||||||
|
"to": {
|
||||||
|
"kind" : "Service",
|
||||||
|
"name" : "${FRONTEND_SERVICE_NAME}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"kind": "BuildConfig",
|
"kind": "BuildConfig",
|
||||||
"apiVersion": "v1beta3",
|
"apiVersion": "v1beta3",
|
||||||
|
@ -297,6 +312,11 @@
|
||||||
"description": "Frontend service name",
|
"description": "Frontend service name",
|
||||||
"value": "django"
|
"value": "django"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "FRONTEND_ROUTE",
|
||||||
|
"description": "The exposed hostname that will route to the frontend service",
|
||||||
|
"value": "django-frontend.apps"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "DATABASE_SERVICE_NAME",
|
"name": "DATABASE_SERVICE_NAME",
|
||||||
"description": "Database service name",
|
"description": "Database service name",
|
||||||
|
|
|
@ -35,6 +35,21 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"kind": "Route",
|
||||||
|
"apiVersion": "v1beta3",
|
||||||
|
"metadata": {
|
||||||
|
"name": "${FRONTEND_SERVICE_NAME}-route",
|
||||||
|
"creationTimestamp": null
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"host" : "${FRONTEND_ROUTE}",
|
||||||
|
"to": {
|
||||||
|
"kind" : "Service",
|
||||||
|
"name" : "${FRONTEND_SERVICE_NAME}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"kind": "BuildConfig",
|
"kind": "BuildConfig",
|
||||||
"apiVersion": "v1beta3",
|
"apiVersion": "v1beta3",
|
||||||
|
@ -204,6 +219,11 @@
|
||||||
"name": "DATABASE_SERVICE_NAME",
|
"name": "DATABASE_SERVICE_NAME",
|
||||||
"description": "Database service name"
|
"description": "Database service name"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "FRONTEND_ROUTE",
|
||||||
|
"description": "The exposed hostname that will route to the frontend service",
|
||||||
|
"value": "django-frontend.apps"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "DATABASE_ENGINE",
|
"name": "DATABASE_ENGINE",
|
||||||
"description": "Database engine: postgresql, mysql or sqlite (default)"
|
"description": "Database engine: postgresql, mysql or sqlite (default)"
|
||||||
|
|
Loading…
Reference in a new issue