diff --git a/.openshiftio/application.yaml b/.openshiftio/application.yaml index 986f611d..71a62a7c 100644 --- a/.openshiftio/application.yaml +++ b/.openshiftio/application.yaml @@ -152,6 +152,10 @@ objects: - containerPort: 8080 name: http protocol: TCP + resources: + limits: + cpu: 400m + memory: 256Mi metadata: labels: app: nodejs-rest-http-crud @@ -198,3 +202,4 @@ objects: stringData: user: luke password: secret + \ No newline at end of file diff --git a/.openshiftio/service.yaml b/.openshiftio/service.yaml index 69d45b54..b5932c75 100644 --- a/.openshiftio/service.yaml +++ b/.openshiftio/service.yaml @@ -61,7 +61,10 @@ items: ports: - containerPort: 5432 protocol: TCP - resources: {} + resources: + limits: + cpu: 400m + memory: 256Mi volumeMounts: - mountPath: /var/lib/pgsql/data name: my-database-volume-1