You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.5 KiB

  1. ---
  2. kind: "Pod"
  3. apiVersion: "v1"
  4. metadata:
  5. name: "flannel"
  6. namespace: "kube-system"
  7. labels:
  8. app: "flannel"
  9. version: "v0.1"
  10. spec:
  11. volumes:
  12. - name: "subnetenv"
  13. hostPath:
  14. path: "/run/flannel"
  15. - name: "networkconfig"
  16. hostPath:
  17. path: "/etc/flannel-network.json"
  18. containers:
  19. - name: "flannel-server-helper"
  20. image: "gcr.io/google_containers/flannel-server-helper:0.1"
  21. args:
  22. - "--network-config=/etc/flannel-network.json"
  23. - "--etcd-prefix=/{{ cluster_name }}/network"
  24. - "--etcd-server={{ etcd_endpoint }}"
  25. volumeMounts:
  26. - name: "networkconfig"
  27. mountPath: "/etc/flannel-network.json"
  28. imagePullPolicy: "Always"
  29. - name: "flannel-container"
  30. image: "quay.io/coreos/flannel:0.5.5"
  31. command:
  32. - "/bin/sh"
  33. - "-c"
  34. - "/opt/bin/flanneld -etcd-endpoints {{ etcd_access_endpoint }} -etcd-prefix /{{ cluster_name }}/network {% if flannel_interface is defined %}-iface {{ flannel_interface }}{% endif %} {% if flannel_public_ip is defined %}-public-ip {{ flannel_public_ip }}{% endif %}"
  35. ports:
  36. - hostPort: 10253
  37. containerPort: 10253
  38. resources:
  39. limits:
  40. cpu: "100m"
  41. volumeMounts:
  42. - name: "subnetenv"
  43. mountPath: "/run/flannel"
  44. securityContext:
  45. privileged: true
  46. hostNetwork: true