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

     1  apiVersion: v1
     2  kind: ConfigMap
     3  metadata:
     4    name: gradle
     5    labels:
     6      jenkins.io/kind: podTemplate
     7  data:
     8    pod: |-
     9      apiVersion: v1
    10      kind: Pod
    11      metadata:
    12        name: jenkins-gradle
    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-docker-cfg
    29          - name: volume-1
    30            secret:
    31              secretName: jenkins-release-gpg
    32        containers:
    33          - name: gradle
    34            image: gcr.io/jenkinsxio/builder-gradle:0.1.350
    35            args:
    36              - cat
    37            command:
    38              - /bin/sh
    39              - -c
    40            workingDir: /home/jenkins
    41            securityContext:
    42              privileged: true
    43            tty: true
    44            env:
    45              - name: DOCKER_REGISTRY
    46                valueFrom:
    47                  configMapKeyRef:
    48                    name: jenkins-x-docker-registry
    49                    key: docker.registry
    50              - name: TILLER_NAMESPACE
    51                value: kube-system
    52              - name: DOCKER_CONFIG
    53                value: /home/jenkins/.docker/
    54              - name: GIT_AUTHOR_EMAIL
    55                value: jenkins-x@googlegroups.com
    56              - name: GIT_AUTHOR_NAME
    57                value: jenkins-x-bot
    58              - name: GIT_COMMITTER_EMAIL
    59                value: jenkins-x@googlegroups.com
    60              - name: GIT_COMMITTER_NAME
    61                value: jenkins-x-bot
    62              - name: JENKINS_URL
    63                value: http://jenkins:8080
    64              - name: XDG_CONFIG_HOME
    65                value: /home/jenkins
    66              - name: _JAVA_OPTIONS
    67                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
    68            resources:
    69              requests:
    70                cpu: 400m
    71                memory: 512Mi
    72              limits:
    73            volumeMounts:
    74              - mountPath: /home/jenkins
    75                name: workspace-volume
    76              - name: docker-daemon
    77                mountPath: /var/run/docker.sock
    78              - name: volume-0
    79                mountPath: /home/jenkins/.docker
    80              - name: volume-1
    81                mountPath: /home/jenkins/.gnupg