1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-12 12:13:25 +00:00

Add weave loopback binary

This commit is contained in:
galal-hussein 2018-05-17 02:27:47 +02:00 committed by Alena Prokharchyk
parent 80b88f9d32
commit 08358c85cd
2 changed files with 20 additions and 9 deletions

View File

@ -80,6 +80,7 @@ const (
NodeImage = "NodeImage"
ControllersImage = "ControllersImage"
CanalFlannelImg = "CanalFlannelImg"
WeaveLoopbackImage = "WeaveLoopbackImage"
Calicoctl = "Calicoctl"
@ -177,6 +178,7 @@ func (c *Cluster) doWeaveDeploy(ctx context.Context) error {
ClusterCIDR: c.ClusterCIDR,
Image: c.SystemImages.WeaveNode,
CNIImage: c.SystemImages.WeaveCNI,
WeaveLoopbackImage: c.SystemImages.Alpine,
RBACConfig: c.Authorization.Mode,
}
pluginYaml, err := c.getNetworkPluginManifest(weaveConfig)

View File

@ -80,6 +80,15 @@ items:
volumeMounts:
- name: xtables-lock
mountPath: /run/xtables.lock
- name: weave-loopback
command:
- /opt/rke/weave-loopback-cni.sh
image: {{.WeaveLoopbackImage}}
securityContext:
privileged: true
volumeMounts:
- name: cni-bin
mountPath: /opt
hostNetwork: true
hostPID: true
restartPolicy: Always