Skip to content

Instantly share code, notes, and snippets.

@nithu0115
Created May 8, 2020 17:33
Show Gist options
  • Save nithu0115/4d90d012ac4c6014b59853921893af22 to your computer and use it in GitHub Desktop.
Save nithu0115/4d90d012ac4c6014b59853921893af22 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: startup-script
labels:
app: startup-script
spec:
template:
metadata:
labels:
app: startup-script
spec:
hostPID: true
containers:
- name: startup-script
image: gcr.io/google-containers/startup-script:v1
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
env:
- name: STARTUP_SCRIPT
value: |
#! /bin/bash
echo 340 > /proc/sys/net/ipv4/tcp_keepalive_time
echo done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment