This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "ServiceA API", | |
"port": 5000, | |
"request": "attach", | |
"type": "node", | |
"restart": true, | |
"remoteRoot": "/app", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
servicea-api: | |
# Using a Dockerfile is optional, but included for completeness. | |
build: | |
context: serviceA/ | |
dockerfile: Dockerfile | |
# [Optional] You can use build args to set options. e.g. 'VARIANT' below affects the image in the Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const app = express() | |
const request = require('request') | |
const port = 3000 | |
app.get('/result', (req, res) => { | |
var response = 'Service A ' | |
request('http://localhost:3001/play', { json: true }, (err, res, body) => { | |
response = response + body |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const app = express() | |
const port = 3001 | |
app.get('/play', (req, res) => { | |
res.send('Service B') | |
}) | |
app.listen(port, () => { | |
console.log(`Service B is listening at http://localhost:${port}`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KubePodInventory | |
| where ClusterName == "prod-aks-cluster" | |
| where isnotempty(Computer) // eliminate unscheduled pods | |
| where PodStatus in ('Running') | |
| extend podLabels = parse_json (PodLabel) | |
| where podLabels[0]['app.kubernetes.io/instance'] == "payment-service" | |
| where Namespace == "payment-ns" | |
| extend ActualContainerName=tostring(split(ContainerName, '/')[1]) | |
| extend InstanceName=strcat(ClusterId, '/', PodUid, '/', ActualContainerName) | |
| distinct Name, InstanceName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KubePodInventory | |
| where ClusterName == 'prod-aks-cluster' | |
| where isnotempty(Computer) // eliminate unscheduled pods | |
| where PodStatus in ('Running') | |
| extend podLabels = parse_json (PodLabel) | |
| where podLabels[0]['app.kubernetes.io/instance'] == "payments-service" | |
| where Namespace == "payment-ns" | |
| where $__timeFilter(TimeGenerated) | |
| extend ActualContainerName=tostring(split(ContainerName, '/')[1]) | |
| extend InstanceName=strcat(ClusterId, '/', PodUid, '/', ActualContainerName) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KubePodInventory | |
| where ClusterName == 'prod-aks-cluster' | |
| where isnotempty(Computer) // eliminate unscheduled pods | |
| where PodStatus in ('Running') | |
| extend podLabels = parse_json (PodLabel) | |
| where podLabels[0]['app.kubernetes.io/instance'] == "payment-service" | |
| where Namespace == "payments-ns" | |
| where $__timeFilter(TimeGenerated) | |
| extend JustContainerName=tostring(split(ContainerName, '/')[1]) | |
| extend InstanceName=strcat(ClusterId, '/', PodUid, '/', JustContainerName) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: dapr.io/v1alpha1 | |
kind: Component | |
metadata: | |
name: pubsub | |
spec: | |
type: pubsub.azure.eventhubs | |
version: v1 | |
metadata: | |
- name: connectionString | |
secretKeyRef: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEBU[0000] found component. name: envvar-secret-store, type: secretstores.local.env/v1 app_id=publisher-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=log ver=1.2.2 | |
DEBU[0000] found component. name: pubsub, type: pubsub.azure.eventhubs/v1 app_id=publisher-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=log ver=1.2.2 | |
DEBU[0000] loading component. name: envvar-secret-store, type: secretstores.local.env/v1 app_id=publisher-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=log ver=1.2.2 | |
INFO[0000] component loaded. name: envvar-secret-store, type: secretstores.local.env/v1 app_id=publisher-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=log ver=1.2.2 | |
DEBU[0000] loading component. name: pubsub, type: pubsub.azure.eventhubs/v1 app_id=publisher-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=log ver=1.2.2 | |
INFO[0000] waiting for all outstanding components to be processed app_id=publisher-service instance=Kshitijs- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: dapr.io/v1alpha1 | |
kind: Component | |
metadata: | |
name: envvar-secret-store | |
namespace: default | |
spec: | |
type: secretstores.local.env | |
version: v1 |
OlderNewer