coreos/flannel-cni

Name: flannel-cni

Owner: CoreOS

Description: Image for sidecar container that installs cni related assets for flannel

Created: 2017-06-13 22:55:24.0

Updated: 2018-04-24 10:43:14.0

Pushed: 2017-09-12 20:02:54.0

Homepage: null

Size: 11

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Example for deploying flannel daemonset:

flannel-configmap:

ersion: v1
: ConfigMap
data:
me: kube-flannel-cfg
mespace: kube-system
bels:
tier: node
k8s-app: flannel
:
i-conf.json: |
{
  "name": "cbr0",
  "type": "flannel",
  "delegate": {
    "isDefaultGateway": true
  }
}
t-conf.json: |
{
  "Network": "{{ .PodCIDR }}",
  "Backend": {
    "Type": "vxlan"
  }
}

flannel-daemonset:

ersion: extensions/v1beta1
: DaemonSet
data:
me: kube-flannel
mespace: kube-system
bels:
tier: node
k8s-app: flannel
:
mplate:
metadata:
  labels:
    tier: node
    k8s-app: flannel
spec:
  containers:
  - name: kube-flannel
    image: quay.io/coreos/flannel:v0.7.1-amd64
    command: [ "/opt/bin/flanneld", "--ip-masq", "--kube-subnet-mgr", "--iface=$(POD_IP)"]
    securityContext:
      privileged: true
    env:
    - name: POD_NAME
      valueFrom:
        fieldRef:
          fieldPath: metadata.name
    - name: POD_NAMESPACE
      valueFrom:
        fieldRef:
          fieldPath: metadata.namespace
    - name: POD_IP
      valueFrom:
        fieldRef:
          fieldPath: status.podIP
    volumeMounts:
    - name: run
      mountPath: /run
    - name: cni
      mountPath: /etc/cni/net.d
    - name: flannel-cfg
      mountPath: /etc/kube-flannel/
  - name: install-cni
    image: quay.io/coreos/flannel-cni:0.1
    command: ["/install-cni.sh"]
    env:
    # The CNI network config to install on each node.
    - name: CNI_NETWORK_CONFIG
        valueFrom:
        configMapKeyRef:
            name: kube-flannel-cfg
            key: cni-conf.json
    volumeMounts:
    - name: cni
      mountPath: /etc/cni/net.d
    - name: host-cni-bin
      mountPath: /host/opt/cni/bin/
  hostNetwork: true
  tolerations:
  - key: node-role.kubernetes.io/master
    operator: Exists
    effect: NoSchedule
  volumes:
    - name: run
      hostPath:
        path: /run
    - name: cni
      hostPath:
        path: /etc/kubernetes/cni/net.d
    - name: flannel-cfg
      configMap:
        name: kube-flannel-cfg
    - name: host-cni-bin
      hostPath:
        path: /opt/cni/bin
dateStrategy:
rollingUpdate:
  maxUnavailable: 1
type: RollingUpdate

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.