mirror of https://github.com/dapr/docs.git
add localforwarder docker and deployment yamls
This commit is contained in:
parent
f3a3dc5c9b
commit
4f3eb33ced
|
@ -0,0 +1,8 @@
|
|||
FROM mcr.microsoft.com/dotnet/core/runtime:2.1
|
||||
RUN mkdir /lf
|
||||
WORKDIR /lf
|
||||
RUN curl -LsO https://github.com/microsoft/ApplicationInsights-LocalForwarder/releases/download/v0.1-beta1/LF-ConsoleHost-linux-x64.tar.gz
|
||||
RUN tar xzf LF-ConsoleHost-linux-x64.tar.gz
|
||||
RUN rm -f LF-ConsoleHost-linux-x64.tar.gz
|
||||
EXPOSE 6789
|
||||
ENTRYPOINT ["/lf/Microsoft.LocalForwarder.ConsoleHost", "noninteractive"]
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
apiVersion: dapr.io/v1alpha1
|
||||
kind: Configuration
|
||||
metadata:
|
||||
name: tracing
|
||||
spec:
|
||||
tracing:
|
||||
enabled: true
|
||||
expandParams: true
|
||||
includeBody: true
|
||||
---
|
||||
apiVersion: dapr.io/v1alpha1
|
||||
kind: Component
|
||||
metadata:
|
||||
name: native
|
||||
spec:
|
||||
type: exporters.native
|
||||
metadata:
|
||||
- name: enabled
|
||||
value: "true"
|
||||
- name: agentEndpoint
|
||||
value: "dapr-localforwarder.monitoring.svc.cluster.local:6789"
|
||||
---
|
|
@ -0,0 +1,43 @@
|
|||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: dapr-localforwarder
|
||||
labels:
|
||||
app: dapr-localforwarder
|
||||
spec:
|
||||
selector:
|
||||
app: dapr-localforwarder
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 6789
|
||||
targetPort: 6789
|
||||
type: ClusterIP
|
||||
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: dapr-localforwarder
|
||||
labels:
|
||||
app: dapr-localforwarder
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: dapr-localforwarder
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: dapr-localforwarder
|
||||
spec:
|
||||
containers:
|
||||
- name: dapr-localforwarder
|
||||
image: docker.io/daprio/dapr-localforwarder:0.1-beta1
|
||||
ports:
|
||||
- containerPort: 6789
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: APPINSIGHTS_INSTRUMENTATIONKEY
|
||||
value: "<APPINSIGHT INSTRUMENTATIONKEY>"
|
||||
- name: APPINSIGHTS_LIVEMETRICSSTREAMAUTHENTICATIONAPIKEY
|
||||
value: "<APPINSIGHT API KEY>"
|
Loading…
Reference in New Issue