mirror of
https://github.com/rancher/rke.git
synced 2025-04-28 03:31:24 +00:00
Add weave loopback binary
This commit is contained in:
parent
80b88f9d32
commit
08358c85cd
@ -75,11 +75,12 @@ const (
|
||||
ClusterCIDR = "ClusterCIDR"
|
||||
// Images key names
|
||||
|
||||
Image = "Image"
|
||||
CNIImage = "CNIImage"
|
||||
NodeImage = "NodeImage"
|
||||
ControllersImage = "ControllersImage"
|
||||
CanalFlannelImg = "CanalFlannelImg"
|
||||
Image = "Image"
|
||||
CNIImage = "CNIImage"
|
||||
NodeImage = "NodeImage"
|
||||
ControllersImage = "ControllersImage"
|
||||
CanalFlannelImg = "CanalFlannelImg"
|
||||
WeaveLoopbackImage = "WeaveLoopbackImage"
|
||||
|
||||
Calicoctl = "Calicoctl"
|
||||
|
||||
@ -174,10 +175,11 @@ func (c *Cluster) doCanalDeploy(ctx context.Context) error {
|
||||
|
||||
func (c *Cluster) doWeaveDeploy(ctx context.Context) error {
|
||||
weaveConfig := map[string]string{
|
||||
ClusterCIDR: c.ClusterCIDR,
|
||||
Image: c.SystemImages.WeaveNode,
|
||||
CNIImage: c.SystemImages.WeaveCNI,
|
||||
RBACConfig: c.Authorization.Mode,
|
||||
ClusterCIDR: c.ClusterCIDR,
|
||||
Image: c.SystemImages.WeaveNode,
|
||||
CNIImage: c.SystemImages.WeaveCNI,
|
||||
WeaveLoopbackImage: c.SystemImages.Alpine,
|
||||
RBACConfig: c.Authorization.Mode,
|
||||
}
|
||||
pluginYaml, err := c.getNetworkPluginManifest(weaveConfig)
|
||||
if err != nil {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user