diff options
author | Jason Luo <cl4531@att.com> | 2019-02-25 22:01:05 +0000 |
---|---|---|
committer | Jason Luo <cl4531@att.com> | 2019-02-27 15:01:26 +0000 |
commit | c5964da80a46e45dac50832c5d2cd83077d26736 (patch) | |
tree | d30c2ef5817c3fa30ef9e90ffc38fc1b18775337 /k8s/k8s-node-type.yaml | |
parent | 861fc4a4f2a036a3ff8c4974abcdd5c793858bcb (diff) |
Add resource_config to specify CPU and menory
Enhance K8s plugin used by DCAE Platform to specify CPU and memory
Issue-ID: DCAEGEN2-1126
Change-Id: I2431b0b7f67f855122ed4494aa21cad0f99dcc37
Signed-off-by: Jason Luo <cl4531@att.com>
Diffstat (limited to 'k8s/k8s-node-type.yaml')
-rw-r--r-- | k8s/k8s-node-type.yaml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/k8s/k8s-node-type.yaml b/k8s/k8s-node-type.yaml index a6f1559..f63f822 100644 --- a/k8s/k8s-node-type.yaml +++ b/k8s/k8s-node-type.yaml @@ -1,5 +1,5 @@ # ================================================================================ -# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -19,13 +19,13 @@ tosca_definitions_version: cloudify_dsl_1_3 imports: - - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml + - http://www.getcloudify.org/spec/cloudify/4.2/types.yaml plugins: k8s: executor: 'central_deployment_agent' package_name: k8splugin - package_version: 1.4.5 + package_version: 1.4.6 data_types: @@ -119,6 +119,14 @@ node_types: like healthcheck definitions for the Docker component. Health checks are optional. + resource_config: + default: {} + description: > + This is used to specify the cpu and memory request and limit for container. + Please specify "requests" property and/or a "limits" property, with subproproperties + for cpu and memory. (https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/) + + log_info: type: dcae.types.LoggingInfo description: > |