fix: increase generate-types memory limit and remove invalid JVM env var (#74)
The container was OOMKilled on every run because the 256Mi limit was far too low for `puppet generate types`. Remove PUPPETSERVER_JAVA_ARGS (only relevant to the puppetserver JVM, not the puppet CLI) and raise the memory limit to 1Gi / request 512Mi. Reviewed-on: #74
This commit was merged in pull request #74.
This commit is contained in:
@@ -41,16 +41,14 @@ spec:
|
||||
echo "Generating types for $env"
|
||||
puppet generate types --environment "$env"
|
||||
done
|
||||
env:
|
||||
- name: PUPPETSERVER_JAVA_ARGS
|
||||
value: -Xms1024m -Xmx3072m -Dcom.sun.management.jmxremote.port=31000 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
|
||||
env: []
|
||||
resources:
|
||||
limits:
|
||||
cpu: 300m
|
||||
memory: 256Mi
|
||||
memory: 1Gi
|
||||
requests:
|
||||
cpu: 200m
|
||||
memory: 128Mi
|
||||
memory: 512Mi
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
runAsNonRoot: false
|
||||
|
||||
Reference in New Issue
Block a user