Version: v1.1

Raw Template

Use raw Kubernetes resources directly. For example, a Job.

How to use

  1. apiVersion: core.oam.dev/v1beta1
  2. kind: Application
  3. metadata:
  4. name: app-raw
  5. spec:
  6. components:
  7. - name: myjob
  8. type: raw
  9. properties:
  10. apiVersion: batch/v1
  11. kind: Job
  12. metadata:
  13. name: pi
  14. spec:
  15. template:
  16. spec:
  17. containers:
  18. - name: pi
  19. image: perl
  20. command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
  21. restartPolicy: Never
  22. backoffLimit: 4

Attributes

Just write the whole Kubernetes Resource in properties.