Skip to content

Commit

Permalink
Add Jaeger setup to local development environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskorn committed Dec 15, 2023
1 parent 35dc88c commit e791aef
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 1 deletion.
3 changes: 2 additions & 1 deletion development/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ To use it:
* Make the image available to your Kubernetes cluster (not required for use with Docker Desktop)
* Apply the Kubernetes manifests: `./apply.sh`
* Port forward to the operator service: `kubectl --namespace=rollout-operator-development port-forward svc/rollout-operator 8080:80`
* Port forward to the Jaeger UI: `kubectl --namespace=rollout-operator-development port-forward svc/jaeger 16686:16686`

You'll then be able to access the rollout operator at `http://localhost:8080`.
You'll then be able to access the rollout operator at `http://localhost:8080`, and the Jaeger tracing UI at `http://localhost:16686`.
13 changes: 13 additions & 0 deletions development/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,17 @@ spec:
httpGet:
port: 8001
path: /ready
env:
- name: JAEGER_AGENT_HOST
value: jaeger.rollout-operator-development.svc.cluster.local
- name: JAEGER_AGENT_PORT
value: "6831"
- name: JAEGER_SAMPLER_TYPE
value: const
- name: JAEGER_SAMPLER_PARAM
value: "1"
- name: JAEGER_TAGS
value: app=rollout-operator
- name: JAEGER_REPORTER_MAX_QUEUE_SIZE
value: "1000"
restartPolicy: Always
21 changes: 21 additions & 0 deletions development/jaeger-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: jaeger
namespace: rollout-operator-development
spec:
replicas: 1
selector:
matchLabels:
name: jaeger
template:
metadata:
name: jaeger
labels:
name: jaeger
spec:
containers:
- name: jaeger
image: jaegertracing/all-in-one:1.52
imagePullPolicy: IfNotPresent
restartPolicy: Always
18 changes: 18 additions & 0 deletions development/jaeger-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v1
kind: Service
metadata:
name: jaeger
namespace: rollout-operator-development
spec:
selector:
name: jaeger
ports:
- protocol: TCP
port: 16686
targetPort: 16686
name: http
- protocol: UDP
port: 6831
targetPort: 6831
name: thrift-compact-udp
type: ClusterIP

0 comments on commit e791aef

Please sign in to comment.