~narindergupta/opnfv/stable-R2

« back to all changes in this revision

Viewing changes to ci/kubernetes/kube_cni_multus.yml

  • Committer: Aric Gardner
  • Date: 2015-06-10 17:51:44 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: git-v1:be443e888dc2d068dfb9629d11d4ae3883ebd431
Adding LICENSE and INFO file

Change-Id: Ibb6b6063c2a61d838dbce73c574d11b8166bbfa9
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
---
2
 
apiVersion: v1
3
 
kind: ServiceAccount
4
 
metadata:
5
 
  name: cnimultus
6
 
  namespace: kube-system
7
 
---
8
 
kind: ConfigMap
9
 
apiVersion: v1
10
 
metadata:
11
 
  name: kube-cnimultus-cfg
12
 
  namespace: kube-system
13
 
  labels:
14
 
    tier: node
15
 
    app: cnimultus
16
 
data:
17
 
  cni-conf.json: |
18
 
    {
19
 
      "name": "multus",
20
 
      "type": "multus",
21
 
      "delegates": [
22
 
        {
23
 
          "name": "CDK-flannel-network",
24
 
          "type": "flannel",
25
 
          "masterplugin": true
26
 
          "delegate": {
27
 
              "isDefaultGateway": true
28
 
            }
29
 
          }
30
 
        },
31
 
        {
32
 
          "name": "mynet",
33
 
          "type": "bridge",
34
 
          "bridge": "cni0",
35
 
          "isGateway": true,
36
 
          "ipMasq": true,
37
 
          "ipam": {
38
 
            "type": "host-local",
39
 
            "subnet": "10.22.0.0/16",
40
 
            "routes": [
41
 
              { "dst": "0.0.0.0/0" }
42
 
            ]
43
 
          }
44
 
        }
45
 
      ]
46
 
    }
47
 
---
48
 
apiVersion: extensions/v1beta1
49
 
kind: DaemonSet
50
 
metadata:
51
 
  name: kube-cnimultus-ds
52
 
  namespace: kube-system
53
 
  labels:
54
 
    tier: node
55
 
    app: cnimultus
56
 
spec:
57
 
  template:
58
 
    metadata:
59
 
      labels:
60
 
        tier: node
61
 
        app: cnimultus
62
 
    spec:
63
 
      hostNetwork: true
64
 
      nodeSelector:
65
 
        beta.kubernetes.io/arch: amd64
66
 
      tolerations:
67
 
      - key: node-role.kubernetes.io/master
68
 
        operator: Exists
69
 
        effect: NoSchedule
70
 
      serviceAccountName: cnimultus
71
 
      containers:
72
 
      - name: install-cni
73
 
        image: openretriever/cnimultus
74
 
        command: [ "/bin/bash", "/cni/install_cni.sh" ]
75
 
        volumeMounts:
76
 
        - name: cni-bin
77
 
          mountPath: /opt/cni/bin
78
 
        - name: cni-cfg
79
 
          mountPath: /etc/cni/net.d
80
 
        - name: cnimultus-cfg
81
 
          mountPath: /etc/kube-cnimultus
82
 
      volumes:
83
 
        - name: cni-bin
84
 
          hostPath:
85
 
            path: /opt/cni/bin
86
 
        - name: cni-cfg
87
 
          hostPath:
88
 
            path: /etc/cni/net.d
89
 
        - name: cnimultus-cfg
90
 
          configMap:
91
 
            name: kube-cnimultus-cfg