Role-based resources are your main project’s resources. Kubes groups resources together under a “role”.
Here’s an example structure to help explain how role-based resources work.
.kubes/resources ├── clock │ └── deployment.yaml ├── web │ ├── deployment.yaml │ └── service.yaml └── worker └── deployment.yaml
Here the resource roles are:
You can freely add more roles if needed. This structure is flexible enough to account for most use-cases.
You can deploy specific roles like so:
kubes deploy clock kubes deploy web kubes deploy worker
Or you can deploy all roles at once: