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 PMgorgeous-egg-16927
03/06/2020, 4:20 PMcool-egg-852
03/06/2020, 4:21 PMcool-egg-852
03/06/2020, 4:21 PMgorgeous-egg-16927
03/06/2020, 4:21 PMgorgeous-egg-16927
03/06/2020, 4:22 PMcool-egg-852
03/06/2020, 4:22 PMcool-egg-852
03/06/2020, 4:23 PMindex.ts
which doesn’t seem like a real world scenario.gorgeous-egg-16927
03/06/2020, 4:24 PMgorgeous-egg-16927
03/06/2020, 4:25 PMcool-egg-852
03/06/2020, 4:27 PMcool-egg-852
03/06/2020, 4:28 PMcool-egg-852
03/06/2020, 4:32 PMswift-painter-31084
03/06/2020, 4:48 PMcool-egg-852
03/06/2020, 4:52 PMcool-egg-852
03/06/2020, 4:52 PMcool-egg-852
03/06/2020, 4:53 PMoptions
? parameter of every resource:
new Resource('name', {}, {
'namespace': 'namespaceName'
}
cool-egg-852
03/06/2020, 4:54 PMparent: this
, the constructor, etc., etc. Much easier to just work with raw resources.cool-egg-852
03/06/2020, 4:56 PM