mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Set GOMAXPROCS for etcd
This commit is contained in:
parent
58962100db
commit
7e8bde53dd
@ -1,3 +1,5 @@
|
|||||||
|
{% set num_cpus = salt['grains.get']('num_cpus', '') %}
|
||||||
|
|
||||||
{
|
{
|
||||||
"apiVersion": "v1beta3",
|
"apiVersion": "v1beta3",
|
||||||
"kind": "Pod",
|
"kind": "Pod",
|
||||||
@ -29,6 +31,10 @@
|
|||||||
{ "name": "varetcd",
|
{ "name": "varetcd",
|
||||||
"mountPath": "/var/etcd",
|
"mountPath": "/var/etcd",
|
||||||
"readOnly": false}
|
"readOnly": false}
|
||||||
|
],
|
||||||
|
"env": [
|
||||||
|
{ "name": "GOMAXPROCS",
|
||||||
|
"value": "{{num_cpus}}"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user