Add resource_config to specify CPU and menory
[dcaegen2/platform/plugins.git] / k8s / k8s-node-type.yaml
index a6f1559..f63f822 100644 (file)
@@ -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.
 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: >