Updated init container port range to avoid port confilict.

We need to udpate the port range to make sure it does not confilict
with either Kubernetes NodePort or default ephemeral port.
This commit is contained in:
Guangya Liu 2018-02-09 15:58:27 +08:00
parent d8efd39694
commit 653db76cf3
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ spec:
- command:
- sh
- -c
- sysctl -w net.core.somaxconn=32768; sysctl -w net.ipv4.ip_local_port_range="1024 65535"
- sysctl -w net.core.somaxconn=32768; sysctl -w net.ipv4.ip_local_port_range="32768 65535"
image: alpine:3.6
imagePullPolicy: IfNotPresent
name: sysctl

View file

@ -20,7 +20,7 @@ spec:
- command:
- sh
- -c
- sysctl -w net.core.somaxconn=32768; sysctl -w net.ipv4.ip_local_port_range="1024 65535"
- sysctl -w net.core.somaxconn=32768; sysctl -w net.ipv4.ip_local_port_range="32768 65535"
image: alpine:3.6
imagePullPolicy: IfNotPresent
name: sysctl