2.5. 自定义调整示例
以下 CR 对运行带有标签 tuned.openshift.io/ingress-pod-label=ingress-pod-label-value 的一个 ingress pod 的OpenShift Container Platform 节点应用自定义节点级别调整。作为管理员,使用以下命令创建一个自定义的 CR。
示例
oc create -f- <<_EOF_
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
name: ingress
namespace: openshift-cluster-node-tuning-operator
spec:
profile:
- data: |
[main]
summary=A custom OpenShift ingress profile
include=openshift-control-plane
[sysctl]
net.ipv4.ip_local_port_range="1024 65535"
net.ipv4.tcp_tw_reuse=1
name: openshift-ingress
recommend:
- match:
- label: tuned.openshift.io/ingress-pod-label
value: "ingress-pod-label-value"
type: pod
priority: 10
profile: openshift-ingress
_EOF_