jhunt / k8s-boshrelease

A BOSH Release for deploying Kubernetes clusters
MIT License
13 stars 9 forks source link

Add weavenet cni option #44

Closed obeyler closed 4 years ago

obeyler commented 4 years ago

This Pr allows to replace flannel by weavenet. Weave-net plugin allows NetworkPodPolicy.

Tested on hugernetes.yml with this operator :

 - type: remove
  path: /instance_groups/name=node/jobs/name=net-flannel
- type: remove
  path: /instance_groups/name=control/jobs/name=net-flannel

- type: replace
  path: /instance_groups/name=control/jobs/name=runtime-runc/properties/cni
  value: weavenet
- type: replace
  path: /instance_groups/name=node/jobs/name=runtime-runc/properties/cni
  value: weavenet

- type: replace
  path: /instance_groups/name=control/jobs/-
  value:
    name: net-weavenet
    release: k8s

- type: replace
  path: /instance_groups/name=job/jobs/-
  value:
    name: net-weavenet
    release: k8s
jhunt commented 4 years ago

This one looks okay from a cursory review of the code changes; I will try to take this for a spin in my lab this week to suss out any issues.

obeyler commented 4 years ago

it works fine