-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.py
executable file
·48 lines (35 loc) · 1.18 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env python
from constructs import Construct
from cdk8s import App, Chart
from clusterip import ClusterIp
from statefulset import StateFulSet
from readinesslivenessprobes import ReadinessLivenesProbes
from secret import Secrete
from docClean import DocCronjob
class MyChart(Chart):
def __init__(self, scope: Construct, id: str):
super().__init__(scope, id)
ClusterIp(self, 'clusterip')
class MyStateful(Chart):
def __init__(self, scope: Construct, id: str):
super().__init__(scope, id)
StateFulSet(self, 'statefulset')
class MyReadyLiveProbes(Chart):
def __init__(self, scope: Construct, id: str):
super().__init__(scope, id)
ReadinessLivenesProbes(self, 'readliveprobes')
class MySecret(Chart):
def __init__(self, scope: Construct, id: str):
super().__init__(scope, id)
Secrete(self, 'secret')
class MyCronJob(Chart):
def __init__(self, scope: Construct, id: str):
super().__init__(scope, id)
DocCronjob(self, 'secret')
app = App()
MyChart(app, "clusterip")
MyStateful(app, "stateful")
MyReadyLiveProbes(app, 'readliveprobes')
MySecret(app, 'secret')
MyCronJob(app, 'cronjob')
app.synth()