Merge "[CONSUL] Add limits to consul chart."
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 27 Oct 2020 17:00:58 +0000 (17:00 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 27 Oct 2020 17:00:58 +0000 (17:00 +0000)
1  2 
kubernetes/consul/charts/consul-server/templates/statefulset.yaml
kubernetes/consul/templates/deployment.yaml

@@@ -1,4 -1,3 +1,4 @@@
 +{{/*
  # Copyright © 2017 Amdocs, Bell Canada
  # Modifications Copyright © 2018 AT&T
  #
@@@ -13,7 -12,6 +13,7 @@@
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
 +*/}}
  
  apiVersion: apps/v1
  kind: StatefulSet
@@@ -70,3 -68,4 +70,4 @@@ spec
              port: {{ .Values.service.internalPort }}
            initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
            periodSeconds: {{ .Values.readiness.periodSeconds }}
+         resources: {{ include "common.resources" . | nindent 10 }}
@@@ -1,4 -1,3 +1,4 @@@
 +{{/*
  # Copyright © 2017 Amdocs, Bell Canada
  # Modifications Copyright © 2018 AT&T
  #
@@@ -13,7 -12,6 +13,7 @@@
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
 +*/}}
  
  apiVersion: apps/v1
  kind: Deployment
@@@ -61,6 -59,7 +61,7 @@@ spec
            name: consul-agent-scripts-config
          - mountPath: /consul/certs
            name: consul-agent-certs-config
+         resources: {{ include "common.resources" . | nindent 10 }}
        volumes:
        - configMap:
            name: {{ include "common.fullname" . }}-configmap