All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nant.apps.jenkins.4.0.93.source-code.openshift-deployment.yml Maven / Gradle / Ivy

Go to download

[Jenkins](http://jenkins-ci.org/) extendable open source continuous integration server using OpenShift Jenkins image

There is a newer version: 4.0.109
Show newest version
---
apiVersion: "extensions/v1beta1"
kind: "Deployment"
metadata:
  name: "jenkins"
  annotations:
    fabric8.io/target-platform: "openshift"
    configmap.fabric8.io/update-on-change: "jenkins"
spec:
  replicas: 1
  strategy:
    type: Recreate
    recreateParams:
      timeoutSeconds: 7200
  template:
    spec:
      initContainers:
      - name: "content-repository-init"
        image: "centos:7"
        command: ['sh', '-c', 'for i in {1..10}; do sleep 1; if curl -L -m 4 content-repository; then exit 0; else echo waiting for content-repository ...; fi; done; exit 1']
      containers:
      - image: "fabric8/jenkins-openshift:${jenkins-openshift.version}"
        imagePullPolicy: "IfNotPresent"
        name: "jenkins"
        readinessProbe:
          timeoutSeconds: 10
          initialDelaySeconds: 10
          httpGet:
            path: "/login"
            port: 8080
        livenessProbe:
          timeoutSeconds: 10
          initialDelaySeconds: 420
          failureThreshold: 30
          httpGet:
            path: "/login"
            port: 8080
        ports:
        - containerPort: 50000
          name: "slave"
        - containerPort: 8080
          name: "http"
        env:
        - name: PROJECT_NAMESPACE
          value: "${PROJECT_NAMESPACE}"
        - name: "KUBERNETES_NAMESPACE"
          valueFrom:
            fieldRef:
              fieldPath: "metadata.namespace"
        - name: GIT_COMMITTER_EMAIL
          value: [email protected]
        - name: GIT_COMMITTER_NAME
          value: fabric8
        - name: OPENSHIFT_ENABLE_OAUTH
          value: "true"
        - name: OPENSHIFT_ENABLE_REDIRECT_PROMPT
          value: "true"
        - name: KUBERNETES_TRUST_CERTIFICATES
          value: "true"
        - name: KUBERNETES_MASTER
          value: "https://kubernetes.default:443"
        - name: JAVA_GC_OPTS
          value: "-XX:+UseParallelGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90"
        - name: JAVA_OPTS
          value: "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Dsun.zip.disableMemoryMapping=true"
        - name: OPENSHIFT_JENKINS_JVM_ARCH
          value: "i686"
        - name: CONTAINER_INITIAL_PERCENT
          value: "0.07"
        - name: CONTAINTER_INITIAL_PERCENT
          value: "something-non-empty"
        - name: JENKINS_OPTS
          value: "-Dgroovy.use.classvalue=true"
        - name: JAVA_HOME
          value: "/etc/alternatives/java_sdk"
        - name: MAVEN_OPTS
          value: "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
        - name: RECOMMENDER_API_TOKEN
          valueFrom:
            secretKeyRef:
              name: jenkins-recommender-api-token
              key: token
        - name: JENKINS_ROOT_URL
          value: "${JENKINS_ROOT_URL}"
        - name: K8S_PIPELINE_SERVICE_PATCH
          value: enabled
        resources:
            limits:
              memory: 512Mi
              cpu: 1
            requests:
              cpu: "0"
        volumeMounts:
        - mountPath: /var/lib/jenkins
          name: jenkins-home
          readOnly: false
        - name: jenkins-config
          mountPath: /opt/openshift/configuration/
      serviceAccountName: "jenkins"
      volumes:
      - name: jenkins-home
        persistentVolumeClaim:
          claimName: jenkins-home
      - name: jenkins-config
        configMap:
          name: jenkins




© 2015 - 2024 Weber Informatics LLC | Privacy Policy