8

below is docker run command:

docker run --log-driver=syslog 

How to set log-driver in kubsernetes pods. Can you show examples to me? Thanks...

2 Answers 2

5

There is an open feature request for this, but it's not yet supported: https://github.com/kubernetes/kubernetes/issues/15478

Sign up to request clarification or add additional context in comments.

Comments

2

There isn't an equivalent of setting log-driver on a per-container basis in Kubernetes. Can you elaborate on what your goal is so I can help you better?

3 Comments

Thanks @Alex Robinson I have setup a cluster by k8s,now I need collect cluster logging.Have try many way,finally choose elk+logstash+kibana to collection(look like its a better way). Now I cant find logging about every container.
How did you set up your cluster and stack? I'd recommend taking a look at the guide for getting cluster level logging to elasticsearch and kibana set up in your cluster: kubernetes.io/v1.1/docs/getting-started-guides/…
I have try the "cluster level logging" solution,but its has some risk for me(Its will using many resource,will be affect my app running.). So I try other ways.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.