diff --git a/specification/resources/apps/models/app_component_instance_base.yml b/specification/resources/apps/models/app_component_instance_base.yml index 6779982b..568aac55 100644 --- a/specification/resources/apps/models/app_component_instance_base.yml +++ b/specification/resources/apps/models/app_component_instance_base.yml @@ -57,4 +57,4 @@ properties: minimum: 1 maximum: 100 default: 80 - example: 75 + example: 75 \ No newline at end of file diff --git a/specification/resources/apps/models/app_job_spec.yml b/specification/resources/apps/models/app_job_spec.yml index 223e0866..c47ad17f 100755 --- a/specification/resources/apps/models/app_job_spec.yml +++ b/specification/resources/apps/models/app_job_spec.yml @@ -18,6 +18,7 @@ allOf: - FAILED_DEPLOY: Indicates a job that runs after a component fails to deploy. default: UNSPECIFIED example: PRE_DEPLOY - + termination: + $ref: app_job_spec_termination.yml required: - name diff --git a/specification/resources/apps/models/app_job_spec_termination.yml b/specification/resources/apps/models/app_job_spec_termination.yml new file mode 100755 index 00000000..446e247b --- /dev/null +++ b/specification/resources/apps/models/app_job_spec_termination.yml @@ -0,0 +1,10 @@ +type: object +properties: + grace_period_seconds: + type: integer + format: int32 + description: The number of seconds to wait between sending a TERM signal to a container and issuing + a KILL which causes immediate shutdown. (Default 120) + example: 120 + maximum: 600 + minimum: 1 \ No newline at end of file diff --git a/specification/resources/apps/models/app_service_spec.yml b/specification/resources/apps/models/app_service_spec.yml index 50056096..73bb70b7 100755 --- a/specification/resources/apps/models/app_service_spec.yml +++ b/specification/resources/apps/models/app_service_spec.yml @@ -40,5 +40,8 @@ allOf: items: $ref: app_route_spec.yml + termination: + $ref: app_service_spec_termination.yml + required: - name diff --git a/specification/resources/apps/models/app_service_spec_termination.yml b/specification/resources/apps/models/app_service_spec_termination.yml new file mode 100755 index 00000000..fa4a10fe --- /dev/null +++ b/specification/resources/apps/models/app_service_spec_termination.yml @@ -0,0 +1,20 @@ +type: object +properties: + drain_seconds: + type: integer + format: int32 + description: The number of seconds to wait between selecting a container instance + for termination and issuing the TERM signal. Selecting a container instance for + termination begins an asynchronous drain of new requests on upstream load-balancers. (Default 15) + example: 15 + maximum: 110 + minimum: 1 + + grace_period_seconds: + type: integer + format: int32 + description: The number of seconds to wait between sending a TERM signal to a container and issuing + a KILL which causes immediate shutdown. (Default 120) + example: 120 + maximum: 600 + minimum: 1 \ No newline at end of file diff --git a/specification/resources/apps/models/app_worker_spec.yml b/specification/resources/apps/models/app_worker_spec.yml index 80ef6e56..d1e554d6 100755 --- a/specification/resources/apps/models/app_worker_spec.yml +++ b/specification/resources/apps/models/app_worker_spec.yml @@ -1,6 +1,10 @@ allOf: - $ref: app_component_base.yml - $ref: app_component_instance_base.yml - +- type: object + properties: + termination: + $ref: app_worker_spec_termination.yml required: - name + diff --git a/specification/resources/apps/models/app_worker_spec_termination.yml b/specification/resources/apps/models/app_worker_spec_termination.yml new file mode 100755 index 00000000..446e247b --- /dev/null +++ b/specification/resources/apps/models/app_worker_spec_termination.yml @@ -0,0 +1,10 @@ +type: object +properties: + grace_period_seconds: + type: integer + format: int32 + description: The number of seconds to wait between sending a TERM signal to a container and issuing + a KILL which causes immediate shutdown. (Default 120) + example: 120 + maximum: 600 + minimum: 1 \ No newline at end of file