Add complete sysctl example

This commit is contained in:
Nico Schottelius 2023-02-11 20:14:10 +01:00
parent 877860fc23
commit 644a356212
1 changed files with 24 additions and 16 deletions

View File

@ -1,16 +1,24 @@
apiVersion: v1
kind: Pod
metadata:
name: pod-sysctl-tests
spec:
containers: containers:
- name: bird - name: bird
image: "ungleich/bird:{{ .Chart.AppVersion }}" image: "ungleich/bird:3.17-2.0.10"
command: command:
- /usr/sbin/bird - /bin/sh
- -f - -c
# - /bin/sh - "sleep 100000"
# - -c
# - "sleep 100000"
securityContext: securityContext:
sysctls: sysctls:
- name: "net.ipv4.conf.all.rp_filter" # - name: "net.ipv4.conf.all.rp_filter"
value: "0" # value: "0"
- name: "net.ipv4.conf.default.rp_filter"
value: "0"
# - name: "net.ipv4.conf.default.rp_filter" # - name: "net.ipv4.conf.default.rp_filter"
# value: "0"
- name: "net.ipv6.conf.all.forwarding"
value: "1"
- name: "net.ipv6.conf.default.forwarding"
value: "1"
- name: "net.ipv4.ip_forward"
value: "1"