Created
April 7, 2017 02:12
-
-
Save allanlei/0590f5857eff8a43d9ad696a848cbfbf 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
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