Kubernetes: Difference between revisions
imported>Fundur m There were to many Codeblocks |
imported>Fundur |
||
Line 274: | Line 274: | ||
Create a new volumeMount for your Deployment: | Create a new volumeMount for your Deployment: | ||
<syntaxhighlight lang=bash></syntaxhighlight> | <syntaxhighlight lang=bash></syntaxhighlight> | ||
<syntaxhighlight lang=bash> | |||
volumeMounts: | volumeMounts: | ||
- mountPath: /dev/shm | - mountPath: /dev/shm | ||
name: dshm | name: dshm | ||
</syntaxhighlight> | |||
<syntaxhighlight lang=bash></syntaxhighlight> | <syntaxhighlight lang=bash></syntaxhighlight> | ||
and mark its <code>medium</code> as <code>Memory</code>: | and mark its <code>medium</code> as <code>Memory</code>: | ||
<syntaxhighlight lang=bash></syntaxhighlight> | <syntaxhighlight lang=bash></syntaxhighlight> | ||
<syntaxhighlight lang=bash> | |||
volumes: | volumes: | ||
- name: dshm | - name: dshm | ||
emptyDir: | emptyDir: | ||
medium: Memory | medium: Memory | ||
</syntaxhighlight> | |||
<syntaxhighlight lang=bash></syntaxhighlight> | <syntaxhighlight lang=bash></syntaxhighlight> | ||