Skip to content

Commit

Permalink
Merge pull request #32 from mindwm/fix-staging-cpu-resources
Browse files Browse the repository at this point in the history
Fix staging cpu resources
fix #31
  • Loading branch information
metacoma committed May 31, 2024
2 parents d91c78a + e4cbacf commit f48b12a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions crossplane/xrd_kcl_function.k
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ items = [
}
neo4j.password = "${config.neo4j.password}"
services.neo4j.spec.type = "NodePort"
neo4j.resources = {
cpu = "500m"
memory: "2Gi"
}
volumes = {
data = {
dynamic = {
Expand Down Expand Up @@ -314,7 +318,7 @@ kind: InMemoryChannel
apiVersion = "serving.knative.dev/v1"
kind = "Service"
metadata = {
name = "${config.Mindwm.context.io_context.name}"
name = "${config.Mindwm.context.io_context.name}"
namespace = makeContextNamespace("{{ context_name }}")
}
spec.template.spec.containers = [{
Expand All @@ -332,7 +336,7 @@ kind: InMemoryChannel
value = "${config.neo4j.password}"
}
]
image = "${config.Mindwm.context.io_context.image}"
image = "${config.Mindwm.context.io_context.image}"
}]

}
Expand All @@ -346,7 +350,7 @@ kind: InMemoryChannel
apiVersion = "eventing.knative.dev/v1"
kind = "Trigger"
metadata = {
name = "${config.Mindwm.context.io_context.name}-trigger"
name = "${config.Mindwm.context.io_context.name}-trigger"
namespace = makeContextNamespace("{{ context_name }}")
}
spec = {
Expand All @@ -366,7 +370,7 @@ kind: InMemoryChannel
subscriber.ref = {
apiVersion = "serving.knative.dev/v1"
kind = "Service"
name = "${config.Mindwm.context.io_context.name}"
name = "${config.Mindwm.context.io_context.name}"
namespace = makeContextNamespace("{{ context_name }}")
}
}
Expand Down
2 changes: 1 addition & 1 deletion manifests/knative/eventing-kafka-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ spec:
value: "-XX:+CrashOnOutOfMemoryError -XX:InitialRAMPercentage=70.0 -XX:MinRAMPercentage=70.0 -XX:MaxRAMPercentage=70.0"
resources:
requests:
cpu: 1000m
cpu: 300m
# 600Mi for virtual replicas + 100Mi overhead
memory: 700Mi
limits:
Expand Down

0 comments on commit f48b12a

Please sign in to comment.