Skip to content

Instantly share code, notes, and snippets.

@mstrzele
Created March 7, 2016 14:49
Show Gist options
  • Save mstrzele/89e7885bd0c2551028ac to your computer and use it in GitHub Desktop.
Save mstrzele/89e7885bd0c2551028ac to your computer and use it in GitHub Desktop.
Create kube-system Namespace
[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