Skip to content

Commit e1208e7

Browse files
Andrey-mpalexey-mr
authored andcommitted
use huge pages for k8s-manifests deploymennt
Change-Id: I84aa865137b0403ac9e374a010fdcc764e0b6b1c
1 parent aedd55d commit e1208e7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

kubernetes/manifests/contrail-standalone-kubernetes.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ data:
3535
RABBITMQ_NODES: {{ RABBITMQ_NODES }}
3636
RABBITMQ_NODE_PORT: "{{ RABBITMQ_NODE_PORT }}"
3737
VROUTER_GATEWAY: {{ VROUTER_GATEWAY }}
38+
HUGE_PAGES_2MB: "128"
3839
WEBUI_NODES: {{ WEBUI_NODES }}
3940
WEBUI_VIP: "{{ WEBUI_VIP }}"
4041
---
@@ -1468,6 +1469,13 @@ spec:
14681469
# e.g. https://github.com/Juniper/contrail-controller/blob/master/src/vnsw/agent/contrail/linux/pkt0_interface.cc: 48.
14691470
securityContext:
14701471
privileged: true
1472+
resources:
1473+
limits:
1474+
hugepages-2Mi: 256Mi
1475+
memory: 256Mi
1476+
requests:
1477+
hugepages-2Mi: 256Mi
1478+
memory: 256Mi
14711479
envFrom:
14721480
- configMapRef:
14731481
name: env
@@ -1478,6 +1486,8 @@ spec:
14781486
volumeMounts:
14791487
- mountPath: /dev
14801488
name: dev
1489+
- mountPath: /var/run
1490+
name: var-run
14811491
- mountPath: /etc/sysconfig/network-scripts
14821492
name: network-scripts
14831493
- mountPath: /host/bin
@@ -1541,6 +1551,9 @@ spec:
15411551
- name: dev
15421552
hostPath:
15431553
path: /dev
1554+
- name: var-run
1555+
hostPath:
1556+
path: /var/run
15441557
- name: network-scripts
15451558
hostPath:
15461559
path: /etc/sysconfig/network-scripts

0 commit comments

Comments
 (0)