Skip to content

Instantly share code, notes, and snippets.

@joaopgrassi
Created September 8, 2021 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joaopgrassi/8eb001d94310effef038364e4f6994ab to your computer and use it in GitHub Desktop.
Save joaopgrassi/8eb001d94310effef038364e4f6994ab to your computer and use it in GitHub Desktop.
Deploy an all-in-one Jaeger in k8s

Deploying a Jaeger "all-in-one" in a k8s cluster

Note: This is just for local development/trying it out. The all-in-one is not recommended for production scenarios.

The commands below are taken from the official documentation: https://www.jaegertracing.io/docs/1.25/operator/#quick-start---deploying-the-allinone-image

  1. Deploy the operator
kubectl create namespace observability # <1>
kubectl create -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/crds/jaegertracing.io_jaegers_crd.yaml # <2>
kubectl create -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/service_account.yaml
kubectl create -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/role.yaml
kubectl create -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/role_binding.yaml
kubectl create -n observability -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/operator.yaml
  1. Deploy the all-in-one instance
kubectl apply -n observability -f - <<EOF
apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
  name: simplest
EOF
  1. (Optional) Expose the Jaeger UI (using istio)
kubectl apply -f - <<EOF
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: istio
  name: jaeger-ingress
  namespace: observability
spec:
  rules:
  - host: jaeger.127.0.0.1.nip.io
    http:
      paths:
      - pathType: Prefix
        path: /
        backend:
          service:
            name: simplest-query
            port:
              number: 16686
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment