blob: 9e081a300ff95ff3f565938524ffde839a69a687 [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Richard Jankowskid7921b72018-02-20 16:55:12 -050014apiVersion: v1
15kind: List
16items:
17 - apiVersion: v1
18 kind: ServiceAccount
19 metadata:
20 name: weave-net
21 annotations:
22 cloud.weave.works/launcher-info: |-
23 {
24 "original-request": {
25 "url": "/k8s/v1.8/net.yaml",
26 "date": "Mon Feb 12 2018 15:44:36 GMT+0000 (UTC)"
27 },
28 "email-address": "support@weave.works"
29 }
30 labels:
31 name: weave-net
32 namespace: kube-system
33 - apiVersion: rbac.authorization.k8s.io/v1beta1
34 kind: ClusterRole
35 metadata:
36 name: weave-net
37 annotations:
38 cloud.weave.works/launcher-info: |-
39 {
40 "original-request": {
41 "url": "/k8s/v1.8/net.yaml",
42 "date": "Mon Feb 12 2018 15:44:36 GMT+0000 (UTC)"
43 },
44 "email-address": "support@weave.works"
45 }
46 labels:
47 name: weave-net
48 namespace: kube-system
49 rules:
50 - apiGroups:
51 - ''
52 resources:
53 - pods
54 - namespaces
55 - nodes
56 verbs:
57 - get
58 - list
59 - watch
60 - apiGroups:
61 - networking.k8s.io
62 resources:
63 - networkpolicies
64 verbs:
65 - get
66 - list
67 - watch
68 - apiVersion: rbac.authorization.k8s.io/v1beta1
69 kind: ClusterRoleBinding
70 metadata:
71 name: weave-net
72 annotations:
73 cloud.weave.works/launcher-info: |-
74 {
75 "original-request": {
76 "url": "/k8s/v1.8/net.yaml",
77 "date": "Mon Feb 12 2018 15:44:36 GMT+0000 (UTC)"
78 },
79 "email-address": "support@weave.works"
80 }
81 labels:
82 name: weave-net
83 namespace: kube-system
84 roleRef:
85 kind: ClusterRole
86 name: weave-net
87 apiGroup: rbac.authorization.k8s.io
88 subjects:
89 - kind: ServiceAccount
90 name: weave-net
91 namespace: kube-system
92 - apiVersion: rbac.authorization.k8s.io/v1beta1
93 kind: Role
94 metadata:
95 name: weave-net
96 annotations:
97 cloud.weave.works/launcher-info: |-
98 {
99 "original-request": {
100 "url": "/k8s/v1.8/net.yaml",
101 "date": "Mon Feb 12 2018 15:44:36 GMT+0000 (UTC)"
102 },
103 "email-address": "support@weave.works"
104 }
105 labels:
106 name: weave-net
107 namespace: kube-system
108 rules:
109 - apiGroups:
110 - ''
111 resourceNames:
112 - weave-net
113 resources:
114 - configmaps
115 verbs:
116 - get
117 - update
118 - apiGroups:
119 - ''
120 resources:
121 - configmaps
122 verbs:
123 - create
124 - apiVersion: rbac.authorization.k8s.io/v1beta1
125 kind: RoleBinding
126 metadata:
127 name: weave-net
128 annotations:
129 cloud.weave.works/launcher-info: |-
130 {
131 "original-request": {
132 "url": "/k8s/v1.8/net.yaml",
133 "date": "Mon Feb 12 2018 15:44:36 GMT+0000 (UTC)"
134 },
135 "email-address": "support@weave.works"
136 }
137 labels:
138 name: weave-net
139 namespace: kube-system
140 roleRef:
141 kind: Role
142 name: weave-net
143 apiGroup: rbac.authorization.k8s.io
144 subjects:
145 - kind: ServiceAccount
146 name: weave-net
147 namespace: kube-system
148 - apiVersion: extensions/v1beta1
149 kind: DaemonSet
150 metadata:
151 name: weave-net
152 annotations:
153 cloud.weave.works/launcher-info: |-
154 {
155 "original-request": {
156 "url": "/k8s/v1.8/net.yaml",
157 "date": "Mon Feb 12 2018 15:44:36 GMT+0000 (UTC)"
158 },
159 "email-address": "support@weave.works"
160 }
161 labels:
162 name: weave-net
163 namespace: kube-system
164 spec:
165 template:
166 metadata:
167 labels:
168 name: weave-net
169 spec:
170 containers:
171 - name: weave
172 command:
173 - /home/weave/launch.sh
174 env:
175 - name: HOSTNAME
176 valueFrom:
177 fieldRef:
178 apiVersion: v1
179 fieldPath: spec.nodeName
180 image: 'weaveworks/weave-kube:2.2.0'
181 livenessProbe:
182 httpGet:
183 host: 127.0.0.1
184 path: /status
185 port: 6784
186 initialDelaySeconds: 30
187 resources:
188 requests:
189 cpu: 10m
190 securityContext:
191 privileged: true
192 volumeMounts:
193 - name: weavedb
194 mountPath: /weavedb
195 - name: cni-bin
196 mountPath: /host/opt
197 - name: cni-bin2
198 mountPath: /host/home
199 - name: cni-conf
200 mountPath: /host/etc
201 - name: dbus
202 mountPath: /host/var/lib/dbus
203 - name: lib-modules
204 mountPath: /lib/modules
205 - name: xtables-lock
206 mountPath: /run/xtables.lock
207 - name: weave-npc
208 args: []
209 env:
210 - name: HOSTNAME
211 valueFrom:
212 fieldRef:
213 apiVersion: v1
214 fieldPath: spec.nodeName
215 image: 'weaveworks/weave-npc:2.2.0'
216 resources:
217 requests:
218 cpu: 10m
219 securityContext:
220 privileged: true
221 volumeMounts:
222 - name: xtables-lock
223 mountPath: /run/xtables.lock
224 hostNetwork: true
225 hostPID: true
226 restartPolicy: Always
227 securityContext:
228 seLinuxOptions: {}
229 serviceAccountName: weave-net
230 tolerations:
231 - effect: NoSchedule
232 operator: Exists
233 volumes:
234 - name: weavedb
235 hostPath:
236 path: /var/lib/weave
237 - name: cni-bin
238 hostPath:
239 path: /opt
240 - name: cni-bin2
241 hostPath:
242 path: /home
243 - name: cni-conf
244 hostPath:
245 path: /etc
246 - name: dbus
247 hostPath:
248 path: /var/lib/dbus
249 - name: lib-modules
250 hostPath:
251 path: /lib/modules
252 - name: xtables-lock
253 hostPath:
254 path: /run/xtables.lock
255 updateStrategy:
256 type: RollingUpdate