# Pinning pod to a CPU socket

**URL:** <https://discuss.kubernetes.io/t/pinning-pod-to-a-cpu-socket/11898>\
**Category:** General Discussions\
**Created:** [July 16, 2020, 8:13pm UTC](https://discuss.kubernetes.io/t/pinning-pod-to-a-cpu-socket/11898 "2020-07-16T20:13:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dzungductran](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@dzungductran](https://discuss.kubernetes.io/u/dzungductran)\
**Post date:** [July 16, 2020, 8:13pm UTC](https://discuss.kubernetes.io/t/pinning-pod-to-a-cpu-socket/11898/1 "2020-07-16T20:13:49Z")

</div>

Does anyone know how to pin a pod to a socket on the node? I have a pod with one container running on a 2 sockets CPU node, I would like 2 pods running with each pin to each socket.

Thanks

### Cluster information:

Kubernetes version: v1.17.4  
Cloud being used: bare-metal  
Installation method: Rancher  
Host OS: Ubuntu 18.04.4  
CNI and version:  
CRI and version:

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.
