Skip to content

Instantly share code, notes, and snippets.

@bogdanalbei
Created September 21, 2017 10:28
Show Gist options
  • Save bogdanalbei/a6f219fb0a2f653b7339dcd8256ce24d to your computer and use it in GitHub Desktop.
Save bogdanalbei/a6f219fb0a2f653b7339dcd8256ce24d to your computer and use it in GitHub Desktop.
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: ubuntu-test
spec:
replicas: 1
template:
metadata:
labels:
app: ubuntu-test
spec:
containers:
- name: ubuntu
image: ubuntu-test-image
imagePullPolicy: Never
initContainers:
- name: init-sysctl
image: busybox
command:
- /bin/sh
- -c
- |
sysctl -w net.core.somaxconn=10000
sysctl -w net.ipv4.ip_local_port_range='1024 65535'
securityContext:
privileged: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment