Richard Jankowski | d7921b7 | 2018-02-20 16:55:12 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: List |
| 3 | items: |
| 4 | - apiVersion: v1 |
| 5 | kind: ServiceAccount |
| 6 | metadata: |
| 7 | name: weave-net |
| 8 | annotations: |
| 9 | cloud.weave.works/launcher-info: |- |
| 10 | { |
| 11 | "original-request": { |
| 12 | "url": "/k8s/v1.8/net.yaml", |
| 13 | "date": "Mon Feb 12 2018 15:44:36 GMT+0000 (UTC)" |
| 14 | }, |
| 15 | "email-address": "support@weave.works" |
| 16 | } |
| 17 | labels: |
| 18 | name: weave-net |
| 19 | namespace: kube-system |
| 20 | - apiVersion: rbac.authorization.k8s.io/v1beta1 |
| 21 | kind: ClusterRole |
| 22 | metadata: |
| 23 | name: weave-net |
| 24 | annotations: |
| 25 | cloud.weave.works/launcher-info: |- |
| 26 | { |
| 27 | "original-request": { |
| 28 | "url": "/k8s/v1.8/net.yaml", |
| 29 | "date": "Mon Feb 12 2018 15:44:36 GMT+0000 (UTC)" |
| 30 | }, |
| 31 | "email-address": "support@weave.works" |
| 32 | } |
| 33 | labels: |
| 34 | name: weave-net |
| 35 | namespace: kube-system |
| 36 | rules: |
| 37 | - apiGroups: |
| 38 | - '' |
| 39 | resources: |
| 40 | - pods |
| 41 | - namespaces |
| 42 | - nodes |
| 43 | verbs: |
| 44 | - get |
| 45 | - list |
| 46 | - watch |
| 47 | - apiGroups: |
| 48 | - networking.k8s.io |
| 49 | resources: |
| 50 | - networkpolicies |
| 51 | verbs: |
| 52 | - get |
| 53 | - list |
| 54 | - watch |
| 55 | - apiVersion: rbac.authorization.k8s.io/v1beta1 |
| 56 | kind: ClusterRoleBinding |
| 57 | metadata: |
| 58 | name: weave-net |
| 59 | annotations: |
| 60 | cloud.weave.works/launcher-info: |- |
| 61 | { |
| 62 | "original-request": { |
| 63 | "url": "/k8s/v1.8/net.yaml", |
| 64 | "date": "Mon Feb 12 2018 15:44:36 GMT+0000 (UTC)" |
| 65 | }, |
| 66 | "email-address": "support@weave.works" |
| 67 | } |
| 68 | labels: |
| 69 | name: weave-net |
| 70 | namespace: kube-system |
| 71 | roleRef: |
| 72 | kind: ClusterRole |
| 73 | name: weave-net |
| 74 | apiGroup: rbac.authorization.k8s.io |
| 75 | subjects: |
| 76 | - kind: ServiceAccount |
| 77 | name: weave-net |
| 78 | namespace: kube-system |
| 79 | - apiVersion: rbac.authorization.k8s.io/v1beta1 |
| 80 | kind: Role |
| 81 | metadata: |
| 82 | name: weave-net |
| 83 | annotations: |
| 84 | cloud.weave.works/launcher-info: |- |
| 85 | { |
| 86 | "original-request": { |
| 87 | "url": "/k8s/v1.8/net.yaml", |
| 88 | "date": "Mon Feb 12 2018 15:44:36 GMT+0000 (UTC)" |
| 89 | }, |
| 90 | "email-address": "support@weave.works" |
| 91 | } |
| 92 | labels: |
| 93 | name: weave-net |
| 94 | namespace: kube-system |
| 95 | rules: |
| 96 | - apiGroups: |
| 97 | - '' |
| 98 | resourceNames: |
| 99 | - weave-net |
| 100 | resources: |
| 101 | - configmaps |
| 102 | verbs: |
| 103 | - get |
| 104 | - update |
| 105 | - apiGroups: |
| 106 | - '' |
| 107 | resources: |
| 108 | - configmaps |
| 109 | verbs: |
| 110 | - create |
| 111 | - apiVersion: rbac.authorization.k8s.io/v1beta1 |
| 112 | kind: RoleBinding |
| 113 | metadata: |
| 114 | name: weave-net |
| 115 | annotations: |
| 116 | cloud.weave.works/launcher-info: |- |
| 117 | { |
| 118 | "original-request": { |
| 119 | "url": "/k8s/v1.8/net.yaml", |
| 120 | "date": "Mon Feb 12 2018 15:44:36 GMT+0000 (UTC)" |
| 121 | }, |
| 122 | "email-address": "support@weave.works" |
| 123 | } |
| 124 | labels: |
| 125 | name: weave-net |
| 126 | namespace: kube-system |
| 127 | roleRef: |
| 128 | kind: Role |
| 129 | name: weave-net |
| 130 | apiGroup: rbac.authorization.k8s.io |
| 131 | subjects: |
| 132 | - kind: ServiceAccount |
| 133 | name: weave-net |
| 134 | namespace: kube-system |
| 135 | - apiVersion: extensions/v1beta1 |
| 136 | kind: DaemonSet |
| 137 | metadata: |
| 138 | name: weave-net |
| 139 | annotations: |
| 140 | cloud.weave.works/launcher-info: |- |
| 141 | { |
| 142 | "original-request": { |
| 143 | "url": "/k8s/v1.8/net.yaml", |
| 144 | "date": "Mon Feb 12 2018 15:44:36 GMT+0000 (UTC)" |
| 145 | }, |
| 146 | "email-address": "support@weave.works" |
| 147 | } |
| 148 | labels: |
| 149 | name: weave-net |
| 150 | namespace: kube-system |
| 151 | spec: |
| 152 | template: |
| 153 | metadata: |
| 154 | labels: |
| 155 | name: weave-net |
| 156 | spec: |
| 157 | containers: |
| 158 | - name: weave |
| 159 | command: |
| 160 | - /home/weave/launch.sh |
| 161 | env: |
| 162 | - name: HOSTNAME |
| 163 | valueFrom: |
| 164 | fieldRef: |
| 165 | apiVersion: v1 |
| 166 | fieldPath: spec.nodeName |
| 167 | image: 'weaveworks/weave-kube:2.2.0' |
| 168 | livenessProbe: |
| 169 | httpGet: |
| 170 | host: 127.0.0.1 |
| 171 | path: /status |
| 172 | port: 6784 |
| 173 | initialDelaySeconds: 30 |
| 174 | resources: |
| 175 | requests: |
| 176 | cpu: 10m |
| 177 | securityContext: |
| 178 | privileged: true |
| 179 | volumeMounts: |
| 180 | - name: weavedb |
| 181 | mountPath: /weavedb |
| 182 | - name: cni-bin |
| 183 | mountPath: /host/opt |
| 184 | - name: cni-bin2 |
| 185 | mountPath: /host/home |
| 186 | - name: cni-conf |
| 187 | mountPath: /host/etc |
| 188 | - name: dbus |
| 189 | mountPath: /host/var/lib/dbus |
| 190 | - name: lib-modules |
| 191 | mountPath: /lib/modules |
| 192 | - name: xtables-lock |
| 193 | mountPath: /run/xtables.lock |
| 194 | - name: weave-npc |
| 195 | args: [] |
| 196 | env: |
| 197 | - name: HOSTNAME |
| 198 | valueFrom: |
| 199 | fieldRef: |
| 200 | apiVersion: v1 |
| 201 | fieldPath: spec.nodeName |
| 202 | image: 'weaveworks/weave-npc:2.2.0' |
| 203 | resources: |
| 204 | requests: |
| 205 | cpu: 10m |
| 206 | securityContext: |
| 207 | privileged: true |
| 208 | volumeMounts: |
| 209 | - name: xtables-lock |
| 210 | mountPath: /run/xtables.lock |
| 211 | hostNetwork: true |
| 212 | hostPID: true |
| 213 | restartPolicy: Always |
| 214 | securityContext: |
| 215 | seLinuxOptions: {} |
| 216 | serviceAccountName: weave-net |
| 217 | tolerations: |
| 218 | - effect: NoSchedule |
| 219 | operator: Exists |
| 220 | volumes: |
| 221 | - name: weavedb |
| 222 | hostPath: |
| 223 | path: /var/lib/weave |
| 224 | - name: cni-bin |
| 225 | hostPath: |
| 226 | path: /opt |
| 227 | - name: cni-bin2 |
| 228 | hostPath: |
| 229 | path: /home |
| 230 | - name: cni-conf |
| 231 | hostPath: |
| 232 | path: /etc |
| 233 | - name: dbus |
| 234 | hostPath: |
| 235 | path: /var/lib/dbus |
| 236 | - name: lib-modules |
| 237 | hostPath: |
| 238 | path: /lib/modules |
| 239 | - name: xtables-lock |
| 240 | hostPath: |
| 241 | path: /run/xtables.lock |
| 242 | updateStrategy: |
| 243 | type: RollingUpdate |