Skip to content

Commit c65c077

Browse files
committed
Keep the big k8s bundle as an example/test
1 parent c39f47b commit c65c077

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
"""
2+
This example:
3+
4+
1. Connects to the current model
5+
2. Deploy a bundle and waits until it reports itself active
6+
3. Destroys the units and applications
7+
8+
"""
9+
from juju import jasyncio
10+
from juju.model import Model
11+
12+
13+
async def main():
14+
model = Model()
15+
print('Connecting to model')
16+
# Connect to current model with current user, per Juju CLI
17+
await model.connect()
18+
19+
try:
20+
print('Deploying bundle')
21+
await model.deploy(
22+
'./examples/k8s-local-bundle/big-k8s-bundle.yaml',
23+
channel='edge',
24+
trust=True,
25+
)
26+
finally:
27+
print('Disconnecting from model')
28+
await model.disconnect()
29+
print("Success")
30+
31+
32+
if __name__ == '__main__':
33+
jasyncio.run(main())
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
bundle: kubernetes
2+
name: magma-orc8r
3+
description: |
4+
Orchestrator is a Magma service that provides a simple and consistent way to
5+
configure and monitor the wireless network securely. The metrics acquired through the platform
6+
allows you to see the analytics and traffic flows of the wireless users through the Magma web UI.
7+
applications:
8+
nms-magmalte:
9+
charm: magma-nms-magmalte
10+
channel: edge
11+
scale: 1
12+
trust: true

0 commit comments

Comments
 (0)