mirror of
https://github.com/rancher/rke.git
synced 2025-08-14 13:03:06 +00:00
Add weave loopback binary
This commit is contained in:
parent
80b88f9d32
commit
08358c85cd
@ -80,6 +80,7 @@ const (
|
|||||||
NodeImage = "NodeImage"
|
NodeImage = "NodeImage"
|
||||||
ControllersImage = "ControllersImage"
|
ControllersImage = "ControllersImage"
|
||||||
CanalFlannelImg = "CanalFlannelImg"
|
CanalFlannelImg = "CanalFlannelImg"
|
||||||
|
WeaveLoopbackImage = "WeaveLoopbackImage"
|
||||||
|
|
||||||
Calicoctl = "Calicoctl"
|
Calicoctl = "Calicoctl"
|
||||||
|
|
||||||
@ -177,6 +178,7 @@ func (c *Cluster) doWeaveDeploy(ctx context.Context) error {
|
|||||||
ClusterCIDR: c.ClusterCIDR,
|
ClusterCIDR: c.ClusterCIDR,
|
||||||
Image: c.SystemImages.WeaveNode,
|
Image: c.SystemImages.WeaveNode,
|
||||||
CNIImage: c.SystemImages.WeaveCNI,
|
CNIImage: c.SystemImages.WeaveCNI,
|
||||||
|
WeaveLoopbackImage: c.SystemImages.Alpine,
|
||||||
RBACConfig: c.Authorization.Mode,
|
RBACConfig: c.Authorization.Mode,
|
||||||
}
|
}
|
||||||
pluginYaml, err := c.getNetworkPluginManifest(weaveConfig)
|
pluginYaml, err := c.getNetworkPluginManifest(weaveConfig)
|
||||||
|
@ -80,6 +80,15 @@ items:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: xtables-lock
|
- name: xtables-lock
|
||||||
mountPath: /run/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
|
hostNetwork: true
|
||||||
hostPID: true
|
hostPID: true
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
|
Loading…
Reference in New Issue
Block a user