Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@allanlei
Created April 7, 2017 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allanlei/0590f5857eff8a43d9ad696a848cbfbf to your computer and use it in GitHub Desktop.
Save allanlei/0590f5857eff8a43d9ad696a848cbfbf to your computer and use it in GitHub Desktop.
kind: DaemonSet
apiVersion: extensions/v1beta1
metadata:
name: startup-script
namespace: kube-system
labels:
app: startup-script
spec:
template:
metadata:
labels:
app: startup-script
spec:
hostPID: true
containers:
- name: startup-script
image: k8s-startup-script
securityContext:
privileged: true
env:
- name: STARTUP_SCRIPT
value: |
#! /bin/bash
set -o errexit
set -o pipefail
set -o nounset
apt-get update || true
apt-get install -y xfsprogs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment