Created
September 21, 2017 10:28
-
-
Save bogdanalbei/a6f219fb0a2f653b7339dcd8256ce24d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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