Remove initContainer from default deployment (#2077)
This commit is contained in:
parent
98213efee3
commit
80462ecdad
4 changed files with 25 additions and 20 deletions
9
docs/examples/customization/sysctl/README.md
Normal file
9
docs/examples/customization/sysctl/README.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Sysctl tuning
|
||||
|
||||
This example aims to demonstrate the use of an Init Container to adjust sysctl default values
|
||||
using `kubectl patch`
|
||||
|
||||
```console
|
||||
kubectl patch deployment -n ingress-nginx nginx-ingress-controller --patch="$(cat patch.json)"
|
||||
```
|
||||
|
||||
16
docs/examples/customization/sysctl/patch.json
Normal file
16
docs/examples/customization/sysctl/patch.json
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"spec": {
|
||||
"template": {
|
||||
"spec": {
|
||||
"initContainers": [{
|
||||
"name": "sysctl",
|
||||
"image": "alpine:3.6",
|
||||
"securityContext": {
|
||||
"privileged": true
|
||||
},
|
||||
"command": ["sh", "-c", "sysctl -w net.core.somaxconn=32768; sysctl -w net.ipv4.ip_local_port_range=1024 65535"]
|
||||
}]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue