Created
March 7, 2016 14:49
-
-
Save mstrzele/89e7885bd0c2551028ac to your computer and use it in GitHub Desktop.
Create kube-system Namespace
This file contains 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
[Unit] | |
After=kubelet.service | |
Requires=kubelet.service | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/sh -c 'while true; do curl -XPOST -d\'{"apiVersion":"v1","kind":"Namespace","metadata":{"name":"kube-system"}}\' -sS "http://127.0.0.1:8080/api/v1/namespaces" && break || sleep 20; done' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment