* Deploy Virtual Bussiness card.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
761 B

  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: virtualcard
  5. spec:
  6. containers:
  7. - name: kaniko
  8. image: gcr.io/kaniko-project/executor:latest
  9. args: [
  10. "--dockerfile=./Dockerfile",
  11. "--context=dir:///workspace/",
  12. "--destination=phamduchongan93/virtualporfolio"] # replace with your dockerhub account
  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-virtualporfolio-claim