apiVersion: v1
kind: Pod
metadata:
  name: java-build-tools
spec:
  containers:
  - name: java-build-tools
    image: cloudbees/java-build-tools
    command:
    - /bin/cat
    tty: true
  - name: kubectl
    image: joshendriks/alpine-k8s
    command:
    - /bin/cat
    tty: true
  - name: kaniko
    image: gcr.io/kaniko-project/executor:debug
    command:
    - /busybox/cat
    tty: true
    volumeMounts:
      - name: kaniko-secret
        mountPath: /kaniko/.docker
  volumes:
    - name: kaniko-secret
      secret:
        secretName: regcred
        items:
          - key: .dockerconfigjson
            path: config.json
