pod.yaml 754 B

1234567891011121314151617181920212223242526272829
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: kaniko
  5. spec:
  6. containers:
  7. - name: kaniko
  8. image: gcr.io/kaniko-project/executor:latest
  9. args: ["--dockerfile=/workspace/dockerfile",
  10. "--context=dir://workspace",
  11. "--destination=docker-registry.intr/webservices/apache2-php82",
  12. "--skip-tls-verify"]
  13. volumeMounts:
  14. - name: kaniko-secret
  15. mountPath: /kaniko/.docker
  16. - name: dockerfile-storage
  17. mountPath: /workspace
  18. restartPolicy: Never
  19. volumes:
  20. - name: kaniko-secret
  21. secret:
  22. secretName: regcred
  23. items:
  24. - key: .dockerconfigjson
  25. path: config.json
  26. - name: dockerfile-storage
  27. persistentVolumeClaim:
  28. claimName: dockerfile-claim