github.com/olli-ai/jx/v2@v2.0.400-0.20210921045218-14731b4dd448/pkg/kube/test_data/load_pod_templates/maven.yml (about)

     1  apiVersion: v1
     2  kind: ConfigMap
     3  metadata:
     4    name: maven
     5    labels:
     6      jenkins.io/kind: podTemplate
     7  data:
     8    pod: |-
     9      apiVersion: v1
    10      kind: Pod
    11      metadata:
    12        name: jenkins-maven
    13        labels:
    14          jenkins.io/kind: build-pod
    15        annotations:
    16          jenkins-x.io/devpodPorts: 5005, 8080
    17      spec:
    18        serviceAccount: jenkins
    19        nodeSelector:
    20        volumes:
    21        - name: workspace-volume
    22          emptyDir: {}
    23        - name: docker-daemon
    24          hostPath:
    25            path: /var/run/docker.sock
    26        - name: volume-0
    27          secret:
    28            secretName: jenkins-maven-settings
    29        - name: volume-1
    30          secret:
    31            secretName: jenkins-docker-cfg
    32        - name: volume-2
    33          secret:
    34            secretName: jenkins-release-gpg
    35        containers:
    36        - name: maven
    37          image: gcr.io/jenkinsxio/builder-maven:0.1.350
    38          args:
    39          - cat
    40          command:
    41          - /bin/sh
    42          - -c
    43          workingDir: /home/jenkins
    44          securityContext:
    45            privileged: true
    46          tty: true
    47          env:
    48          - name: DOCKER_REGISTRY
    49            valueFrom:
    50              configMapKeyRef:
    51                name: jenkins-x-docker-registry
    52                key: docker.registry
    53          - name: TILLER_NAMESPACE
    54            value: kube-system
    55          - name: DOCKER_CONFIG
    56            value: /home/jenkins/.docker/
    57          - name: GIT_AUTHOR_EMAIL
    58            value: jenkins-x@googlegroups.com
    59          - name: GIT_AUTHOR_NAME
    60            value: jenkins-x-bot
    61          - name: GIT_COMMITTER_EMAIL
    62            value: jenkins-x@googlegroups.com
    63          - name: GIT_COMMITTER_NAME
    64            value: jenkins-x-bot
    65          - name: JENKINS_URL
    66            value: http://jenkins:8080
    67          - name: MAVEN_OPTS
    68            value: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
    69          - name: XDG_CONFIG_HOME
    70            value: /home/jenkins
    71          - name: _JAVA_OPTIONS
    72            value: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Dsun.zip.disableMemoryMapping=true -XX:+UseParallelGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Xms10m -Xmx192m
    73          resources:
    74            requests:
    75              cpu: 400m
    76              memory: 512Mi
    77            limits:
    78          volumeMounts:
    79            - mountPath: /home/jenkins
    80              name: workspace-volume
    81            - name: docker-daemon
    82              mountPath: /var/run/docker.sock
    83            - name: volume-0
    84              mountPath: /root/.m2/
    85            - name: volume-1
    86              mountPath: /home/jenkins/.docker
    87            - name: volume-2
    88              mountPath: /home/jenkins/.gnupg