The following code will create one yaml file dist/clusterip.k8s.yaml
contains all my defines of deployment and statefulset, is there way to separate different files in output such as dist/clusterip.k8s.yaml
and dist/statefulset.k8s.yaml
?
class MyChart(Chart):
def __init__(self, scope: Construct, id: str):
super().__init__(scope, id)
ClusterIp(self, 'clusterip')
StateFulSet(self, 'statefulset')
app = App()
MyChart(app, "clusterip")