-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathTiltfile.kafka
More file actions
38 lines (30 loc) · 816 Bytes
/
Tiltfile.kafka
File metadata and controls
38 lines (30 loc) · 816 Bytes
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
load('./Tiltfile.global', 'getAbsoluteDir', 'getNested', 'getConfig')
load('ext://helm_remote', 'helm_remote')
allow_k8s_contexts('kind-admin@mk')
### Config Start ###
config = getConfig()
### Config End ###
### Main Start ###
def main():
provisionstrimzi()
provisionkafka()
# Back out of actual provisioning for debugging purposes by uncommenting below
# fail('NOT YET ;)')
### Main End ###
def provisionstrimzi():
# Deploy and watch the helm charts
helm_remote('strimzi-kafka-operator',
repo_name='strimzi',
repo_url='https://strimzi.io/charts/',
namespace='default',
set=['resources.limits.memory=1024Mi', 'resources.requests.memory=Mi']
)
def provisionkafka():
k8s_yaml(
[
'./tools/kafka/kafka.yaml',
'./tools/kafka/kafkauser.yaml'
]
)
# Unleash the beast
main()