Can I combine multiple yaml definitions files into one yaml file for example: cr . . .

Anil:
Can I combine multiple yaml definitions files into one yaml file for example: creating a yaml file for persistent volume, persistent volume claim and pod referencing to claim in the CKAD exam. please advise

Tharanath:
yes… you can create…

Anton Botov:
Yes, you can. Just use three dashes as a separator:

apiVersion: v1
kind: Service
metadata:

---
apiVersion: apps/v1
kind: Deployment
metadata:

Anil:
Thank you guys