apiVersion: v1
kind: Pod
metadata:
  labels:
    app: kaniko
  namespace: jenkins
spec:
  containers:
  - name: kaniko
    image: gcr.io/kaniko-project/executor:debug
    env:
      - name: GOOGLE_APPLICATION_CREDENTIALS
        value: /secret/jenkins-gcp-credentials.json   
    #imagePullPolicy: Always
    command: 
    - /busybox/cat
    tty: true
    volumeMounts:
    - mountPath: /workspace/cache
      name: jenkins-kaniko-image-cache      
    - name: jenkins-gcp-credentials
      mountPath: /secret      
  volumes:
    - name: jenkins-kaniko-image-cache
      persistentVolumeClaim:
        claimName: jenkins-kaniko-image-cache    
    - name: jenkins-gcp-credentials
      secret:
        secretName: jenkins-gcp-credentials       
