cool-egg-852
03/06/2020, 4:15 PMDeployment
, several `CronJob`s, Service
, VirtualService
(istio), HorizontalPodAutoscaler
, PodDisruptionBudget
, a CloudSql database, database users, etc.
Would you recommend:
* app.ts (contains the resources deployed to kubernetes, AKA, the “application”)
* database.ts (contains the resources to create the database and the users
* index.ts (requires the other 2
Or would you recommend:
* app/deployment.ts
* app/virtualService.ts
* app/podDisruptionBudget.ts
* cronJobs/cronJob1.ts
* database/instance.ts
* database/user1.tsgorgeous-egg-16927
03/06/2020, 4:19 PMcool-egg-852
03/06/2020, 4:21 PMgorgeous-egg-16927
03/06/2020, 4:21 PMcool-egg-852
03/06/2020, 4:22 PMindex.ts
which doesn’t seem like a real world scenario.gorgeous-egg-16927
03/06/2020, 4:24 PMcool-egg-852
03/06/2020, 4:27 PMswift-painter-31084
03/06/2020, 4:48 PMcool-egg-852
03/06/2020, 4:52 PMoptions
? parameter of every resource:
new Resource('name', {}, {
'namespace': 'namespaceName'
}
parent: this
, the constructor, etc., etc. Much easier to just work with raw resources.