From c5964da80a46e45dac50832c5d2cd83077d26736 Mon Sep 17 00:00:00 2001 From: Jason Luo Date: Mon, 25 Feb 2019 22:01:05 +0000 Subject: 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 --- k8s/k8s-node-type.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'k8s/k8s-node-type.yaml') 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: > -- cgit 1.2.3-korg