-
Notifications
You must be signed in to change notification settings - Fork 240
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
Unrecognized VM option 'UseCGroupMemoryLimitForHeap' during installation #554
Comments
Hey, @koromkorom - could you provide the yaml for your Jenkins instance? The two yaml files you mentioned will install the CRD and the operator, and that works. On a side note:
|
Hey, @prryb Yes I read that this option has been removed. But the only source of setting that option has to be the operator. I got the Jenkins Instance yaml from here: https://www.jenkins.io/doc/book/installing/kubernetes/#deploy-jenkins-2 apiVersion: jenkins.io/v1alpha2
kind: Jenkins
metadata:
name: example
spec:
master:
containers:
- name: jenkins-master
image: jenkins/jenkins:lts-jdk11
imagePullPolicy: Always
livenessProbe:
failureThreshold: 12
httpGet:
path: /login
port: http
scheme: HTTP
initialDelaySeconds: 80
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
readinessProbe:
failureThreshold: 3
httpGet:
path: /login
port: http
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
cpu: 1500m
memory: 3Gi
requests:
cpu: "1"
memory: 500Mi
seedJobs:
- id: jenkins-operator
targets: "cicd/jobs/*.jenkins"
description: "Jenkins Operator repository"
repositoryBranch: master
repositoryUrl: https://github.com/jenkinsci/kubernetes-operator.git |
The operator sets the You can override them by setting:
on your Thanks for reporting this. Updating the Jenkins image and these default JVM options is on our backlog now. |
* Upgrade base plugins * Upgrade Jenkins image * Remove deprecated JVM opts
Describe the bug
jenkins master wont start. Stays in Pending
To Reproduce
I used thos two yamls:
https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/deploy/crds/jenkins_v1alpha2_jenkins_crd.yaml
https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/deploy/all-in-one-v1alpha2.yaml
Additional information
Kubernetes version: 1.16.15-gke.14800
Jenkins Operator version: 0.5.0
Logs
I got this from kubectl logs -f -n jenkins jenkins-example
Unrecognized VM option 'UseCGroupMemoryLimitForHeap'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
The text was updated successfully, but these errors were encountered: