builder.yaml 630 B

12345678910111213141516171819202122232425262728293031
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: kaniko
  5. namespace: jenkins
  6. spec:
  7. hostAliases:
  8. - ip: "192.168.1.116"
  9. hostnames:
  10. - "api.ocp-cluster.reymota.lab"
  11. containers:
  12. - name: kubectl
  13. image: joshendriks/alpine-k8s
  14. command:
  15. - /bin/cat
  16. tty: true
  17. - name: kaniko
  18. image: gcr.io/kaniko-project/executor:debug
  19. command:
  20. - /busybox/cat
  21. tty: true
  22. volumeMounts:
  23. - name: kaniko-secret
  24. mountPath: /kaniko/.docker
  25. volumes:
  26. - name: kaniko-secret
  27. secret:
  28. secretName: regcred
  29. items:
  30. - key: .dockerconfigjson
  31. path: config.json