@@ -25,7 +25,7 @@ CHART_UPGRADE_RESTART_OVS=$(shell echo $${CHART_UPGRADE_RESTART_OVS:-false})
25
25
MULTUS_IMAGE = ghcr.io/k8snetworkplumbingwg/multus-cni:snapshot-thick
26
26
MULTUS_YAML = https://raw.githubusercontent.com/k8snetworkplumbingwg/multus-cni/master/deployments/multus-daemonset-thick.yml
27
27
28
- KUBEVIRT_VERSION = v0.58.1
28
+ KUBEVIRT_VERSION = v0.59.2
29
29
KUBEVIRT_OPERATOR_IMAGE = quay.io/kubevirt/virt-operator:$(KUBEVIRT_VERSION )
30
30
KUBEVIRT_API_IMAGE = quay.io/kubevirt/virt-api:$(KUBEVIRT_VERSION )
31
31
KUBEVIRT_CONTROLLER_IMAGE = quay.io/kubevirt/virt-controller:$(KUBEVIRT_VERSION )
@@ -36,23 +36,31 @@ KUBEVIRT_OPERATOR_YAML = https://github.com/kubevirt/kubevirt/releases/download/
36
36
KUBEVIRT_CR_YAML = https://github.com/kubevirt/kubevirt/releases/download/$(KUBEVIRT_VERSION ) /kubevirt-cr.yaml
37
37
KUBEVIRT_TEST_YAML = https://kubevirt.io/labs/manifests/vm.yaml
38
38
39
- CILIUM_VERSION = 1.12.9
39
+ CILIUM_VERSION = 1.13.4
40
40
CILIUM_IMAGE_REPO = quay.io/cilium/cilium
41
41
42
- CERT_MANAGER_VERSION = v1.11.1
42
+ CERT_MANAGER_VERSION = v1.12.2
43
43
CERT_MANAGER_CONTROLLER = quay.io/jetstack/cert-manager-controller:$(CERT_MANAGER_VERSION )
44
44
CERT_MANAGER_CAINJECTOR = quay.io/jetstack/cert-manager-cainjector:$(CERT_MANAGER_VERSION )
45
45
CERT_MANAGER_WEBHOOK = quay.io/jetstack/cert-manager-webhook:$(CERT_MANAGER_VERSION )
46
46
CERT_MANAGER_YAML = https://github.com/cert-manager/cert-manager/releases/download/$(CERT_MANAGER_VERSION ) /cert-manager.yaml
47
47
48
- SUBMARINER_VERSION = $(shell echo $${SUBMARINER_VERSION:-0.14.3 })
48
+ SUBMARINER_VERSION = $(shell echo $${SUBMARINER_VERSION:-0.14.6 })
49
49
SUBMARINER_OPERATOR = quay.io/submariner/submariner-operator:$(SUBMARINER_VERSION )
50
50
SUBMARINER_GATEWAY = quay.io/submariner/submariner-gateway:$(SUBMARINER_VERSION )
51
51
SUBMARINER_LIGHTHOUSE_AGENT = quay.io/submariner/lighthouse-agent:$(SUBMARINER_VERSION )
52
52
SUBMARINER_LIGHTHOUSE_COREDNS = quay.io/submariner/lighthouse-coredns:$(SUBMARINER_VERSION )
53
53
SUBMARINER_ROUTE_AGENT = quay.io/submariner/submariner-route-agent:$(SUBMARINER_VERSION )
54
54
SUBMARINER_NETTEST = quay.io/submariner/nettest:$(SUBMARINER_VERSION )
55
55
56
+ DEEPFLOW_CHART_VERSION = 6.2.6
57
+ DEEPFLOW_CHART_REPO = https://deepflow-ce.oss-cn-beijing.aliyuncs.com/chart/stable
58
+ DEEPFLOW_IMAGE_REPO = registry.cn-beijing.aliyuncs.com/deepflow-ce
59
+ DEEPFLOW_GRAFANA_PORT = 30080
60
+
61
+ KWOK_VERSION = v0.3.0
62
+ KWOK_IMAGE = registry.k8s.io/kwok/kwok:$(KWOK_VERSION )
63
+
56
64
VPC_NAT_GW_IMG = $(REGISTRY ) /vpc-nat-gateway:$(VERSION )
57
65
58
66
E2E_NETWORK = bridge
@@ -245,8 +253,10 @@ endef
245
253
246
254
define kind_create_cluster
247
255
kind create cluster --config $(1 ) --name $(2 )
248
- kubectl delete --ignore-not-found sc standard
249
- kubectl delete --ignore-not-found -n local-path-storage deploy local-path-provisioner
256
+ @if [ "x$(3 ) " = "x1" ]; then \
257
+ kubectl delete --ignore-not-found sc standard; \
258
+ kubectl delete --ignore-not-found -n local-path-storage deploy local-path-provisioner; \
259
+ fi
250
260
kubectl describe no
251
261
endef
252
262
@@ -266,6 +276,10 @@ define kind_load_submariner_images
266
276
$(call kind_load_image,$(1 ) ,$(SUBMARINER_NETTEST ) ,1)
267
277
endef
268
278
279
+ define kind_load_kwok_image
280
+ $(call kind_load_image,$(1 ) ,$(KWOK_IMAGE ) ,1)
281
+ endef
282
+
269
283
define kubectl_wait_exist_and_ready
270
284
@echo "Waiting for $(2 ) $(1 ) /$(3 ) to exist..."
271
285
@n=0; while ! kubectl -n $(1 ) get $(2 ) -o name | awk -F / '{print $$2}' | grep -q ^$(3 ) $$; do \
@@ -317,7 +331,7 @@ kind-enable-hairpin:
317
331
318
332
.PHONY : kind-create
319
333
kind-create :
320
- $(call kind_create_cluster,yamls/kind.yaml,kube-ovn)
334
+ $(call kind_create_cluster,yamls/kind.yaml,kube-ovn,1 )
321
335
322
336
.PHONY : kind-init
323
337
kind-init : kind-init-ipv4
@@ -333,22 +347,27 @@ kind-init-ovn-ic: kind-init-ovn-ic-ipv4
333
347
.PHONY : kind-init-ovn-ic-ipv4
334
348
kind-init-ovn-ic-ipv4 : kind-clean-ovn-ic kind-init
335
349
@$(MAKE ) kind-generate-config
336
- $(call kind_create_cluster,yamls/kind.yaml,kube-ovn1)
350
+ $(call kind_create_cluster,yamls/kind.yaml,kube-ovn1,1 )
337
351
338
352
.PHONY : kind-init-ovn-ic-ipv6
339
353
kind-init-ovn-ic-ipv6 : kind-clean-ovn-ic kind-init-ipv6
340
354
@ip_family=ipv6 $(MAKE ) kind-generate-config
341
- $(call kind_create_cluster,yamls/kind.yaml,kube-ovn1)
355
+ $(call kind_create_cluster,yamls/kind.yaml,kube-ovn1,1 )
342
356
343
357
.PHONY : kind-init-ovn-ic-dual
344
358
kind-init-ovn-ic-dual : kind-clean-ovn-ic kind-init-dual
345
359
@ip_family=dual $(MAKE ) kind-generate-config
346
- $(call kind_create_cluster,yamls/kind.yaml,kube-ovn1)
360
+ $(call kind_create_cluster,yamls/kind.yaml,kube-ovn1,1 )
347
361
348
362
.PHONY : kind-init-ovn-submariner
349
363
kind-init-ovn-submariner : kind-clean-ovn-submariner kind-init
350
364
@pod_cidr_v4=10.18.0.0/16 svc_cidr_v4=10.112.0.0/12 $(MAKE ) kind-generate-config
351
- $(call kind_create_cluster,yamls/kind.yaml,kube-ovn1)
365
+ $(call kind_create_cluster,yamls/kind.yaml,kube-ovn1,1)
366
+
367
+ .PHONY : kind-init-deepflow
368
+ kind-init-deepflow : kind-clean
369
+ @port_mapping=$(DEEPFLOW_GRAFANA_PORT ) :$(DEEPFLOW_GRAFANA_PORT ) $(MAKE ) kind-generate-config
370
+ $(call kind_create_cluster,yamls/kind.yaml,kube-ovn,0)
352
371
353
372
.PHONY : kind-init-iptables
354
373
kind-init-iptables :
@@ -510,7 +529,7 @@ kind-install-ovn-ic-dual: kind-install-dual
510
529
sed -e ' s/10.16.0/10.18.0/g' \
511
530
-e ' s/10.96.0/10.98.0/g' \
512
531
-e ' s/100.64.0/100.68.0/g' \
513
- -e ' s/fd00:10:16:/fd00:10:18:/g' \
532
+ -e ' s/fd00:10:16:/fd00:10:18:/g' \
514
533
-e ' s/fd00:10:96:/fd00:10:98:/g' \
515
534
-e ' s/fd00:100:64:/fd00:100:68:/g' \
516
535
-e ' s/VERSION=.*/VERSION=$(VERSION)/' \
@@ -745,6 +764,34 @@ kind-install-cilium-chaining: kind-load-image kind-untaint-control-plane
745
764
ENABLE_LB=false ENABLE_NP=false CNI_CONFIG_PRIORITY=10 bash
746
765
kubectl describe no
747
766
767
+ .PHONY : kind-install-deepflow
768
+ kind-install-deepflow : kind-install
769
+ helm repo add deepflow $(DEEPFLOW_CHART_REPO )
770
+ helm repo update deepflow
771
+ $(eval CLICKHOUSE_PERSISTENCE = $(shell helm show values --version $(DEEPFLOW_CHART_VERSION ) --jsonpath '{.clickhouse.storageConfig.persistence}' deepflow/deepflow | sed 's/0Gi/Gi/g') )
772
+ helm install deepflow -n deepflow deepflow/deepflow \
773
+ --create-namespace --version $(DEEPFLOW_CHART_VERSION ) \
774
+ --set global.image.repository=$(DEEPFLOW_IMAGE_REPO ) \
775
+ --set grafana.image.repository=$(DEEPFLOW_IMAGE_REPO ) /grafana \
776
+ --set deepflow-agent.sysctlInitContainer.enabled=false \
777
+ --set ' mysql.storageConfig.persistence.size=5Gi' \
778
+ --set-json ' clickhouse.storageConfig.persistence=$(CLICKHOUSE_PERSISTENCE)'
779
+ kubectl -n deepflow patch svc deepflow-grafana --type=json \
780
+ -p ' [{"op": "replace", "path": "/spec/ports/0/nodePort", "value": $(DEEPFLOW_GRAFANA_PORT)}]'
781
+ echo -e " \nGrafana URL: http://127.0.0.1:$( DEEPFLOW_GRAFANA_PORT) \nGrafana auth: admin:deepflow\n"
782
+
783
+ .PHONY : kind-install-kwok
784
+ kind-install-kwok : kind-install-underlay
785
+ kwok_version=$(KWOK_VERSION ) j2 yamls/kwok-kustomization.yaml.j2 -o kustomization.yaml
786
+ kubectl kustomize ./ > kwok.yaml
787
+ $(call kind_load_kwok_image,kube-ovn)
788
+ kubectl apply -f kwok.yaml
789
+ kubectl -n kube-system rollout status deploy kwok-controller --timeout 60s
790
+ for i in {1..20}; do \
791
+ kwok_node_name=fake-node-$$ i j2 yamls/kwok-node.yaml.j2 -o kwok-node.yaml; \
792
+ kubectl apply -f kwok-node.yaml; \
793
+ done
794
+
748
795
.PHONY : kind-reload
749
796
kind-reload : kind-reload-ovs
750
797
kubectl delete pod -n kube-system -l app=kube-ovn-controller
@@ -809,6 +856,7 @@ clean:
809
856
$(RM ) yamls/kind.yaml
810
857
$(RM ) ovn.yaml kube-ovn.yaml kube-ovn-crd.yaml
811
858
$(RM ) ovn-ic-0.yaml ovn-ic-1.yaml
859
+ $(RM ) kustomization.yaml kwok.yaml kwok-node.yaml
812
860
$(RM ) kube-ovn.tar vpc-nat-gateway.tar image-amd64.tar image-arm64.tar
813
861
814
862
.PHONY : changelog
0 commit comments