Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Automated Configuration Management - ACM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Research Labs
CODECO Project
Automated Configuration Management - ACM
Compare revisions
main to 5-usage-of-another-cni-plugin-in-the-testing-cluster-2
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
eclipse-research-labs/codeco-project/acm
Select target project
No results found
5-usage-of-another-cni-plugin-in-the-testing-cluster-2
Select Git revision
Swap
Target
eclipse-research-labs/codeco-project/acm
Select target project
eclipse-research-labs/codeco-project/acm
sferlin/acm
josecastillolema/acm
deankel1000/acm
alnixon/acm
alnixon/automated-configuration-management-acm-copy
deankel1000/dean-acm
deankel1000/automated-configuration-management-dean
deankel1000/automated-configuration-management-acm-swm-update
alnixon/acm-test
deankel1000/automated-configuration-management-mcd
11 results
main
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
cluster config: added configuration to use flannel cni
· abe235a1
Alex de Cock Buning
authored
9 months ago
abe235a1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/cluster/kind-config.yaml
+11
-3
11 additions, 3 deletions
config/cluster/kind-config.yaml
scripts/post_deploy.sh
+6
-2
6 additions, 2 deletions
scripts/post_deploy.sh
scripts/pre_cluster.sh
+8
-0
8 additions, 0 deletions
scripts/pre_cluster.sh
with
25 additions
and
5 deletions
config/cluster/kind-config.yaml
View file @
abe235a1
...
...
@@ -5,17 +5,22 @@ containerdConfigPatches:
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost:5001"]
endpoint = ["http://kind-registry:5000"]
networking
:
podSubnet
:
"
10.100.0.0/16"
#
disableDefaultCNI: true
disableDefaultCNI
:
true
# Disable Kindnet, we will use Flannel as the primary CNI plugin
podSubnet
:
"
10.244.0.0/16"
# Flannel requires this CIDR
nodes
:
-
role
:
control-plane
image
:
kindest/node:v1.26.6
labels
:
siemens.com.qosscheduler.master
:
true
dedicated
:
master
# Add this line to assign the dedicated=master label
dedicated
:
control-plane
# No post_script.sh modification needed for control-plane
extraMounts
:
-
hostPath
:
/tmp/plugins/bin
containerPath
:
/opt/cni/bin
# Mount CNI plugins inside the container
-
role
:
worker
image
:
kindest/node:v1.26.6
extraMounts
:
-
hostPath
:
/tmp/plugins/bin
containerPath
:
/opt/cni/bin
-
hostPath
:
/tmp/nwapidb
containerPath
:
/nwapidb
kubeadmConfigPatches
:
...
...
@@ -27,6 +32,9 @@ nodes:
node-labels: "mac-address=5e0d.6660.a485,siemens.com.qosscheduler.c1=true"
-
role
:
worker
image
:
kindest/node:v1.26.6
extraMounts
:
-
hostPath
:
/tmp/plugins/bin
containerPath
:
/opt/cni/bin
kubeadmConfigPatches
:
-
|
kind: JoinConfiguration
...
...
This diff is collapsed.
Click to expand it.
scripts/post_deploy.sh
View file @
abe235a1
...
...
@@ -3,19 +3,23 @@
## components and to perform any other post-deployment tasks.
echo
"Executing post deployment tasks..."
##TODO(user): Add your post deployment tasks here
echo
"........................................Installing Primary CNI: Flannel..............................................."
kubectl apply
-f
https://github.com/flannel-io/flannel/releases/latest/download/kube-flannel.yml
sleep
20
cd
..
echo
"........................................Installing NetMA..............................................."
cd
secure-connectivity
kubectl apply
-f
https://github.com/cert-manager/cert-manager/releases/download/v1.15.3/cert-manager.yaml
kubectl apply
-f
https://raw.githubusercontent.com/k8snetworkplumbingwg/multus-cni/master/deployments/multus-daemonset-thick.yml
cat
../multus-cni/deployments/multus-daemonset-thick.yml | kubectl apply
-f
-
kubectl taint nodes kind-control-plane node-role.kubernetes.io/control-plane:NoSchedule-
# kubectl taint nodes --all node-role.kubernetes.io/control-plane- node-role.kubernetes.io/master-
kubectl create namespace he-codeco-netma
kubectl get nodes
kubectl label nodes kind-control-plane
dedicated
=
control-plane
--overwrite
sleep
60
kubectl create
-f
./deployments/l2sm-deployment.yaml
-n
=
he-codeco-netma
cd
..
echo
"........................................Finished installing NetMA..............................................."
cd
..
## kubectl apply -f network-exposure/kuberfiles/01_netma-topology-crd.yaml
## chmod 755 network-exposure/ejecutar_mon.sh
...
...
This diff is collapsed.
Click to expand it.
scripts/pre_cluster.sh
0 → 100644
View file @
abe235a1
#!/bin/bash
## Prerequisites: git and go
## This script downloads the CNI plugins and compiles them, so they can later be accessed by the kind cluster in the tmp directory
git clone https://github.com/containernetworking/plugins /tmp/plugins
/tmp/plugins/build_linux.sh
This diff is collapsed.
Click to expand it.