Role-Based Resources
Role-based resources are your main project’s resources. Kubes groups resources together under a “role”.
Example Structure
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
Resource Roles
Here the resource roles are:
- clock
- web
- worker
You can freely add more roles if needed. This structure is flexible enough to account for most use-cases.
Deploy
You can deploy specific roles like so:
kubes deploy clock
kubes deploy web
kubes deploy worker
Or you can deploy all roles at once:
kubes deploy