Skip to content

Instantly share code, notes, and snippets.

@metral
Created January 27, 2017 23:46
Show Gist options
  • Save metral/d3449bfd934daab4fb3ab1cb7af7f03a to your computer and use it in GitHub Desktop.
Save metral/d3449bfd934daab4fb3ab1cb7af7f03a to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: calicoctl
namespace: kube-system
spec:
hostNetwork: true
containers:
- name: calicoctl
image: calico/ctl:v1.0.1
command: ["/bin/sh", "-c", "while true; do sleep 3600; done"]
env:
- name: ETCD_ENDPOINTS
valueFrom:
configMapKeyRef:
name: calico-config
key: etcd_endpoints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment