Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix resource limit for db and app container #119

Merged
merged 1 commit into from
Jan 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .openshiftio/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ objects:
- containerPort: 8080
name: http
protocol: TCP
resources:
limits:
cpu: 400m
memory: 256Mi
metadata:
labels:
app: nodejs-rest-http-crud
Expand Down Expand Up @@ -198,3 +202,4 @@ objects:
stringData:
user: luke
password: secret

5 changes: 4 additions & 1 deletion .openshiftio/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down