Skip to content
New issue

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

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

Already on GitHub? # to your account

Requesting More CPU #2758

Merged
merged 2 commits into from
Sep 22, 2023
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions playbook-website/config/deploy/production/values.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
ingress:
issueCert: true
resourceAllocation:
playbook:
limits:
cpu: 0.5
requests:
cpu: 0.5
21 changes: 12 additions & 9 deletions playbook-website/config/deploy/templates/deployment.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,15 @@ spec:
port: 3000
initialDelaySeconds: 60
timeoutSeconds: 10
resources:
limits:
cpu: 0.3
memory: 256Mi
ephemeral-storage: 100Mi
requests:
cpu: 0.1
memory: 256Mi
ephemeral-storage: 100Mi
<<: <%= partial "resources", component: "playbook", defaults: {
"limits" => {
"cpu" => "0.3",
"memory" => "256Mi",
"ephemeral-storage" => "100Mi"
},
"requests" => {
"cpu" => "0.1",
"memory" => "256Mi",
"ephemeral-storage" => "100Mi"
}
} %>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<%=
resourceAllocation ||= {}
component_resource_allocation = resourceAllocation.dig(component) || {}
if defined?(override)
override_resource_allocation = resourceAllocation.dig(override) || {}
component_resource_allocation = override_resource_allocation unless override_resource_allocation.empty?
end
template = { resources: defaults.deep_merge(component_resource_allocation) }
template.to_json
%>