104 lines
2.1 KiB
YAML
104 lines
2.1 KiB
YAML
# Default values for conntrack-adjuster
|
|
|
|
global:
|
|
imageRegistry: ""
|
|
imagePullSecrets: []
|
|
|
|
# Image settings
|
|
image:
|
|
repository: alpine
|
|
tag: "3.6"
|
|
pullPolicy: IfNotPresent
|
|
|
|
# DaemonSet configuration
|
|
daemonSet:
|
|
name: conntrack-adjuster
|
|
namespace: kube-system
|
|
labels: {}
|
|
annotations: {}
|
|
|
|
# Container configuration
|
|
container:
|
|
name: sysctl
|
|
command: ["sh", "-c"]
|
|
args:
|
|
- "while true; do sysctl -w net.netfilter.nf_conntrack_max=2097152 > /dev/null; echo 524288 > /sys/module/nf_conntrack/parameters/hashsize; sleep 30; done;"
|
|
|
|
# Security context
|
|
securityContext:
|
|
privileged: true
|
|
|
|
# Resource limits and requests
|
|
resources:
|
|
requests:
|
|
cpu: "10m"
|
|
memory: "16Mi"
|
|
limits:
|
|
cpu: "50m"
|
|
memory: "32Mi"
|
|
|
|
# Pod configuration
|
|
pod:
|
|
hostNetwork: true
|
|
hostPID: true
|
|
hostIPC: true
|
|
|
|
# Pod labels
|
|
labels: {}
|
|
|
|
# Pod annotations
|
|
annotations: {}
|
|
|
|
# Pod tolerations
|
|
tolerations:
|
|
- operator: "Exists"
|
|
effect: "NoSchedule"
|
|
- operator: "Exists"
|
|
effect: "NoExecute"
|
|
- operator: "Exists"
|
|
effect: "PreferNoSchedule"
|
|
|
|
# Volume configuration
|
|
volumes:
|
|
- name: sys
|
|
hostPath:
|
|
path: /sys
|
|
|
|
# Volume mounts
|
|
volumeMounts:
|
|
- name: sys
|
|
mountPath: /sys
|
|
|
|
# Node affinity configuration
|
|
# Each cluster should define its own nodeSelectorTerms in custom-values.yaml
|
|
nodeAffinity:
|
|
# Set to true to enable node affinity
|
|
enabled: false
|
|
# Define all nodeSelectorTerms for this cluster
|
|
# Each item creates a separate nodeSelectorTerm (OR logic between terms)
|
|
# matchExpressions within a term use AND logic
|
|
nodeSelectorTerms: []
|
|
# Example:
|
|
# nodeSelectorTerms:
|
|
# - matchExpressions:
|
|
# - key: dedicated
|
|
# operator: In
|
|
# values:
|
|
# - "contour-internal-0"
|
|
# - "contour-internal-1"
|
|
# - "contour-external"
|
|
# - matchExpressions:
|
|
# - key: dedicated
|
|
# operator: In
|
|
# values:
|
|
# - "megaquad"
|
|
|
|
# Conntrack configuration
|
|
conntrack:
|
|
# Maximum number of conntrack entries
|
|
max: 2097152
|
|
# Hash size for conntrack
|
|
hashsize: 524288
|
|
# Sleep interval between adjustments (seconds)
|
|
sleepInterval: 30
|