|
| 1 | +MLSysOpsApp: |
| 2 | + name: mlsysops-hackathon-app |
| 3 | + cluster_placement: |
| 4 | + cluster_id: |
| 5 | + - "groupX-cluster" # Please change the X for your group number |
| 6 | + components: |
| 7 | + - metadata: |
| 8 | + name: detector-app |
| 9 | + uid: detector-app-v1 |
| 10 | + node_placement: |
| 11 | + node: groupX-node1 # Please change the X for your group number |
| 12 | + containers: |
| 13 | + - image: harbor.nbfc.io/mlsysops/hackathon/detector:0.1.3 |
| 14 | + command: [ "python3", "detector.py", "--output", "./", "--mode", "stream", "--input", "rtsp://camera-app.mlsysops.svc.cluster.local:8554/video_stream", "--tcp-forward" ] |
| 15 | + env: |
| 16 | + - name: OTEL_RESOURCE_ATTRIBUTES |
| 17 | + value: "service.name=detector-app, service.version=0.3.3" |
| 18 | + - name: OTEL_SERVICE_NAME |
| 19 | + value: "detector-app" |
| 20 | + - name: TCP_IP |
| 21 | + value: "classifier-app.mlsysops.svc.cluster.local" |
| 22 | + # value: "10.64.83.10" |
| 23 | + - name: NODE_IP |
| 24 | + value_from: |
| 25 | + field_ref: |
| 26 | + field_path: status.hostIP |
| 27 | + - name: TELEMETRY_ENDPOINT |
| 28 | + value: "$(NODE_IP):43170" |
| 29 | + - metadata: |
| 30 | + name: classifier-app |
| 31 | + uid: classifier-app-v1 |
| 32 | + node_placement: |
| 33 | + node: groupX-node1 # Please change the X for your group number |
| 34 | + containers: |
| 35 | + - image: harbor.nbfc.io/mlsysops/hackathon/classifier:0.1.3 |
| 36 | + command: [ "python3","main.py" ] |
| 37 | + env: |
| 38 | + - name: OTEL_SERVICE_NAME |
| 39 | + value: "classifier-app" |
| 40 | + - name: NODE_IP |
| 41 | + value_from: |
| 42 | + field_ref: |
| 43 | + field_path: status.hostIP |
| 44 | + - name: TIMM_MODE |
| 45 | + value: resnet18 |
| 46 | + - name: NODE_HOSTNAME # Custom environment variable |
| 47 | + value_from: |
| 48 | + field_ref: |
| 49 | + field_path: spec.nodeName # Retrieves the node hostname |
| 50 | + - name: TELEMETRY_ENDPOINT |
| 51 | + value: "$(NODE_IP):43170" |
| 52 | + - name: OTEL_RESOURCE_ATTRIBUTES |
| 53 | + value: "service.name=classifier-app_$(NODE_HOSTNAME), service.version=0.1.0, service.experimentid=test, service.hostname=$(NODE_HOSTNAME)" |
| 54 | + ports: |
| 55 | + - container_port: 5005 |
| 56 | + protocol: TCP |
| 57 | + qos_metrics: |
| 58 | + - application_metric_id: frame_classify_latency |
| 59 | + target: 50 |
| 60 | + relation: lower_or_equal |
| 61 | + component_interactions: |
| 62 | + - component_name1: detector-app |
| 63 | + type: egress |
| 64 | + component_name2: classifier-app |
0 commit comments