-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for StatefulSets and Manual Sidecar Config #944
Comments
StatefulSets are not supported yet. I thought we had an example in the documentation, but looks like we don't. Here's how a sidecar in a deployment looks like: jaeger-operator/deploy/examples/operator-with-tracing.yaml Lines 41 to 53 in c9147e7
Would you be open to improving our documentation by adding this? Perhaps a new section close to the auto-inject part, called "Manually adding sidecars"? |
Thanks very much! I'll look to update the documentation later today. |
You might also want to deploy the following example, and compare the deployment's state after the operator injects the sidecar:
That sidecar should be the one used in the documentation, as it's more general purpose (it opens more ports). The one from my previous comment uses only one port, which is OK when you know the client that is being used. |
So I gathered this sidecar definition from using the annotation with a deployment: - name: jaeger-agent
image: jaegertracing/jaeger-agent:1.17.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5775
name: zk-compact-trft
protocol: UDP
- containerPort: 5778
name: config-rest
protocol: TCP
- containerPort: 6831
name: jg-compact-trft
protocol: UDP
- containerPort: 6832
name: jg-binary-trft
protocol: UDP
- containerPort: 14271
name: admin-http
protocol: TCP
resources: {}
env:
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: HOST_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.hostIP
args:
- --jaeger.tags=cluster=undefined,deployment.name=[myDeployment],pod.namespace=[myNamespace],pod.name=${POD_NAME:},host.ip=${HOST_IP:},container.name=[myContainer]
- --reporter.grpc.host-port=dns:///jaeger-collector-headless.observability:14250
- --reporter.type=grpc Should the documentation include everything except the Should I also change the image field to Is there anything else that should be included? Thanks! |
I think Not sure about the image. @pavolloffay mentioned in a comment that it would be best to keep the right versions on the versioned doc and master for the |
PRs opened to include a full |
My question has been answered and documentation has been updated. Thanks again! |
Hello!
Does
jaeger-operator
have support for injecting sidecars into StatefulSets yet? Not sure if I am doing my annotation wrong, or ifjaeger-operator
still only supports deployments (I looked through other issues and documentation but it wasn't super clear to me).If StatefulSets are not yet supported, could the documentation include an example on how to manually add the sidecar config and be clear that only Deployments are currently supported?
Thanks!
The text was updated successfully, but these errors were encountered: