From c6f4f48572b3e24c474008d1309df5671ea53b56 Mon Sep 17 00:00:00 2001 From: chrislovecnm Date: Tue, 28 Feb 2017 12:23:05 -0700 Subject: [PATCH] bumping weave to 1.9.2 --- .../addons/networking.weave/v1.9.2.yaml | 89 +++++++++++++++++++ .../pkg/fi/cloudup/bootstrapchannelbuilder.go | 2 +- 2 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 upup/models/cloudup/resources/addons/networking.weave/v1.9.2.yaml diff --git a/upup/models/cloudup/resources/addons/networking.weave/v1.9.2.yaml b/upup/models/cloudup/resources/addons/networking.weave/v1.9.2.yaml new file mode 100644 index 0000000000..109435690d --- /dev/null +++ b/upup/models/cloudup/resources/addons/networking.weave/v1.9.2.yaml @@ -0,0 +1,89 @@ +apiVersion: extensions/v1beta1 +kind: DaemonSet +metadata: + name: weave-net + namespace: kube-system + labels: + role.kubernetes.io/networking: "1" +spec: + template: + metadata: + labels: + name: weave-net + role.kubernetes.io/networking: "1" + annotations: + scheduler.alpha.kubernetes.io/tolerations: | + [ + { + "key": "dedicated", + "operator": "Equal", + "value": "master", + "effect": "NoSchedule" + } + ] + spec: + hostNetwork: true + hostPID: true + containers: + - name: weave + image: weaveworks/weave-kube:1.9.2 + command: + - /home/weave/launch.sh + livenessProbe: + initialDelaySeconds: 30 + httpGet: + host: 127.0.0.1 + path: /status + port: 6784 + securityContext: + privileged: true + volumeMounts: + - name: weavedb + mountPath: /weavedb + - name: cni-bin + mountPath: /host/opt + - name: cni-bin2 + mountPath: /host/home + - name: cni-conf + mountPath: /host/etc + - name: dbus + mountPath: /host/var/lib/dbus + - name: lib-modules + mountPath: /lib/modules + resources: + requests: + cpu: 100m + memory: 200Mi + limits: + cpu: 100m + memory: 200Mi + - name: weave-npc + image: weaveworks/weave-npc:1.9.2 + resources: + requests: + cpu: 100m + memory: 200Mi + limits: + cpu: 100m + memory: 200Mi + securityContext: + privileged: true + restartPolicy: Always + volumes: + - name: weavedb + emptyDir: {} + - name: cni-bin + hostPath: + path: /opt + - name: cni-bin2 + hostPath: + path: /home + - name: cni-conf + hostPath: + path: /etc + - name: dbus + hostPath: + path: /var/lib/dbus + - name: lib-modules + hostPath: + path: /lib/modules diff --git a/upup/pkg/fi/cloudup/bootstrapchannelbuilder.go b/upup/pkg/fi/cloudup/bootstrapchannelbuilder.go index b418279b54..9b14a71e38 100644 --- a/upup/pkg/fi/cloudup/bootstrapchannelbuilder.go +++ b/upup/pkg/fi/cloudup/bootstrapchannelbuilder.go @@ -190,7 +190,7 @@ func (b *BootstrapChannelBuilder) buildManifest() (*channelsapi.Addons, map[stri if b.cluster.Spec.Networking.Weave != nil { key := "networking.weave" - version := "1.9.0" + version := "1.9.2" // TODO: Create configuration object for cni providers (maybe create it but orphan it)? location := key + "/v" + version + ".yaml"