Skip to content

Commit

Permalink
help test_sysctl not revert a bad value for net.ipv4.conf.all.rp_filt…
Browse files Browse the repository at this point in the history
…er (#1409)
  • Loading branch information
addyess committed Aug 21, 2023
1 parent a626fb7 commit d2c49fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jobs/validate/cilium-spec
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ applications:
options:
channel: $SNAP_VERSION
allow-privileged: "true"
sysctl: $SYSCTL
kubernetes-worker:
constraints: $constraints
channel: $JUJU_DEPLOY_CHANNEL
options:
channel: $SNAP_VERSION
sysctl: $SYSCTL
calico: null
containerd:
options:
Expand All @@ -50,6 +52,7 @@ EOF
# ENV
###############################################################################
SNAP_VERSION=${1:-1.26/stable}
SYSCTL='"{net.ipv4.conf.all.forwarding: 1, net.ipv4.conf.all.rp_filter: 0, net.ipv4.neigh.default.gc_thresh1: 128, net.ipv4.neigh.default.gc_thresh2: 28672, net.ipv4.neigh.default.gc_thresh3: 32768, net.ipv6.neigh.default.gc_thresh1: 128, net.ipv6.neigh.default.gc_thresh2: 28672, net.ipv6.neigh.default.gc_thresh3: 32768, fs.inotify.max_user_instances: 8192, fs.inotify.max_user_watches: 1048576, kernel.panic: 10, kernel.panic_on_oops: 1, vm.overcommit_memory: 1}"'
SERIES=${2:-jammy}
JUJU_DEPLOY_BUNDLE=charmed-kubernetes
JUJU_DEPLOY_CHANNEL=${3:-edge}
Expand Down

0 comments on commit d2c49fe

Please sign in to comment.