Skip to content

Commit

Permalink
Add Dashboard exercise files
Browse files Browse the repository at this point in the history
  • Loading branch information
SudKul committed Nov 3, 2021
1 parent c840d6b commit 52e2d12
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Exercise_Starter_Files/sampleapp/k8s/jaeger-app-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-sample-app
labels:
name: my-sample-app
annotations:
"sidecar.jaegertracing.io/inject": "true"
spec:
replicas: 1
selector:
matchLabels:
app: my-sample-app
template:
metadata:
labels:
app: my-sample-app
spec:
containers:
- name: my-sample-app
image: ghcr.io/thejaysmith/my-sample-app:v1
imagePullPolicy: Always
ports:
- name: frontend
containerPort: 8888
protocol: TCP
43 changes: 43 additions & 0 deletions Exercise_Starter_Files/sampleapp/k8s/jaeger-app-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
name: secondtest
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: second-sample-app
labels:
name: second-sample-app
annotations:
"sidecar.jaegertracing.io/inject": "true"
spec:
replicas: 1
selector:
matchLabels:
app: second-sample-app
template:
metadata:
labels:
app: second-sample-app
spec:
containers:
- name: second-sample-app
image: ghcr.io/thejaysmith/my-sample-app:v2
imagePullPolicy: Always
ports:
- name: backend-port
containerPort: 8000
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: backend
spec:
selector:
app: second-sample-app
ports:
- protocol: TCP
port: 8000
targetPort: 8000
4 changes: 4 additions & 0 deletions Exercise_Starter_Files/sampleapp/k8s/jaeger-instance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
name: simpletest

0 comments on commit 52e2d12

Please sign in to comment.