-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathkafka.clab.yaml
More file actions
62 lines (55 loc) · 1.92 KB
/
kafka.clab.yaml
File metadata and controls
62 lines (55 loc) · 1.92 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# © 2022 Nokia.
#
# This code is a Contribution to the gNMIc project (“Work”) made under the Google Software Grant and Corporate Contributor License Agreement (“CLA”) and governed by the Apache License 2.0.
# No other rights or licenses in or to any of Nokia’s intellectual property are granted for any other purpose.
# This code is provided on an “as is” basis without any warranties of any kind.
#
# SPDX-License-Identifier: Apache-2.0
name: lab12
topology:
defaults:
kind: nokia_srlinux
kinds:
nokia_srlinux:
image: ghcr.io/nokia/srlinux
nodes:
spine1:
spine2:
leaf1:
leaf2:
leaf3:
leaf4:
gnmic:
kind: linux
image: ghcr.io/openconfig/gnmic:latest
binds:
- ./gnmic.yaml:/app/gnmic.yaml:ro
- /var/run/docker.sock:/var/run/docker.sock
cmd: '--config /app/gnmic.yaml --log subscribe'
kafka-server:
kind: linux
image: bitnami/kafka:latest
ports:
- 9092:9092
- 9093:9093
env:
KAFKA_ENABLE_KRAFT: yes
ALLOW_PLAINTEXT_LISTENER: yes
KAFKA_CFG_NODE_ID: 0
KAFKA_CFG_PROCESS_ROLES: broker,controller
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://clab-lab12-kafka-server:9092
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 0@clab-lab12-kafka-server:9093
links:
# spine1 links
- endpoints: ["spine1:e1-1", "leaf1:e1-1"]
- endpoints: ["spine1:e1-2", "leaf2:e1-1"]
- endpoints: ["spine1:e1-3", "leaf3:e1-1"]
- endpoints: ["spine1:e1-4", "leaf4:e1-1"]
# spine2 links
- endpoints: ["spine2:e1-1", "leaf1:e1-2"]
- endpoints: ["spine2:e1-2", "leaf2:e1-2"]
- endpoints: ["spine2:e1-3", "leaf3:e1-2"]
- endpoints: ["spine2:e1-4", "leaf4:e1-2"]