<p>I wanted to host a TDengine cluster in Kubernetes, then met an error when I enabled coredump in the container.</p>
<p>I've searched Stack Overflow and found the Docker solution, <a href="https://stackoverflow.com/questions/60574458/how-to-modify-the-core-pattern-when-building-docker-image">How to modify the `core_pattern` when building docker image</a>, but not the Kubernetes one.</p>

zitsen
<p>Here's an example:</p>
<pre><code>apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: my-app
spec:
  template: 
    spec:
      containers:
      - image: my-image
        name: my-app
        ...
        securityContext:
          allowPrivilegeEscalation: false
          runAsUser: 0
</code></pre>
