diff --git a/development/README.md b/development/README.md index 0ba09117d..ba9ba33a1 100644 --- a/development/README.md +++ b/development/README.md @@ -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`. diff --git a/development/deployment.yaml b/development/deployment.yaml index 3a0b20813..05ac7dd30 100644 --- a/development/deployment.yaml +++ b/development/deployment.yaml @@ -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 diff --git a/development/jaeger-deployment.yaml b/development/jaeger-deployment.yaml new file mode 100644 index 000000000..f4f7b8e89 --- /dev/null +++ b/development/jaeger-deployment.yaml @@ -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 diff --git a/development/jaeger-service.yaml b/development/jaeger-service.yaml new file mode 100644 index 000000000..0a9325a75 --- /dev/null +++ b/development/jaeger-service.yaml @@ -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