This repository was archived by the owner on Apr 8, 2025. It is now read-only.
File tree 3 files changed +46
-26
lines changed
3 files changed +46
-26
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,10 @@ kubectl get all --all-namespaces
45
45
sleep 10
46
46
cd $USERSPACEDIR
47
47
48
- docker build . -f ./docker/userspacecni/Dockerfile -t userspacecni:latest
48
+ make build
49
49
# gets path for one directopry above, needed for mkdir with docker cp below
50
50
mkdir_var=$( dirname ${USERSPACEDIR} )
51
- kind load docker-image userspacecni
51
+ kind load docker-image localhost:5000/ userspacecni
52
52
docker exec -i kind-control-plane bash -c " mkdir -p $mkdir_var "
53
53
docker cp " ${USERSPACEDIR} " " kind-control-plane:${USERSPACEDIR} "
54
54
}
@@ -63,6 +63,11 @@ kubectl apply -f ./multus-daemonset.yml
63
63
}
64
64
65
65
vpp_e2e_test (){
66
+ cd $USERSPACEDIR
67
+ kubectl label nodes kind-control-plane app=userspace-cni
68
+ make deploy
69
+ kubectl get nodes
70
+ kubectl get nodes --show-labels
66
71
cd $CI_DIR /vpp_test_setup/
67
72
echo " Setting up vpp host"
68
73
./vpp_host.sh
Original file line number Diff line number Diff line change @@ -10,32 +10,32 @@ kubectl create -n vpp configmap vpp-startup-config --from-file="${USERSPACEDIR}/
10
10
worker=" kind-control-plane"
11
11
12
12
13
- rm /opt/cni/bin/userspace
13
+ # rm /opt/cni/bin/userspace
14
14
docker exec -i kind-control-plane bash -c " mkdir -p /var/run/vpp/app"
15
15
16
- cat << EOF | kubectl apply -f -
17
- ---
18
- apiVersion: v1
19
- kind: Pod
20
- metadata:
21
- name: userspacecni-$worker
22
- namespace: vpp
23
- spec:
24
- nodeSelector:
25
- kubernetes.io/hostname: $worker
26
- containers:
27
- - name: userspacecni-$worker
28
- image: userspacecni:latest
29
- imagePullPolicy: IfNotPresent
30
- volumeMounts:
31
- - name: cni
32
- mountPath: /opt/cni/bin
33
- volumes:
34
- - name: cni
35
- hostPath:
36
- path: /opt/cni/bin
37
- restartPolicy: Never
38
- EOF
16
+ # cat << EOF | kubectl apply -f -
17
+ # ---
18
+ # apiVersion: v1
19
+ # kind: Pod
20
+ # metadata:
21
+ # name: userspacecni-$worker
22
+ # namespace: vpp
23
+ # spec:
24
+ # nodeSelector:
25
+ # kubernetes.io/hostname: $worker
26
+ # containers:
27
+ # - name: userspacecni-$worker
28
+ # image: userspacecni:latest
29
+ # imagePullPolicy: IfNotPresent
30
+ # volumeMounts:
31
+ # - name: cni
32
+ # mountPath: /opt/cni/bin
33
+ # volumes:
34
+ # - name: cni
35
+ # hostPath:
36
+ # path: /opt/cni/bin
37
+ # restartPolicy: Never
38
+ # EOF
39
39
40
40
41
41
echo " sleeping for 20 to allow userspace to deploy first"
Original file line number Diff line number Diff line change 17
17
- name : userspace-cni-plugin
18
18
image : localhost:5000/userspacecni # registory:imagename
19
19
imagePullPolicy : IfNotPresent
20
+ # securityContext:
21
+ # allowPrivilegeEscalation: false
22
+ # capabilities:
23
+ # drop: [ "ALL" ]
24
+ # runAsNonRoot: true
25
+ # runAsUser: 10000
26
+ # seccompProfile:
27
+ # type: RuntimeDefault
28
+ resources :
29
+ requests :
30
+ cpu : 1m
31
+ memory : 1Mi
32
+ limits :
33
+ cpu : 100m
34
+ memory : 30Mi
20
35
volumeMounts :
21
36
- name : cnibin
22
37
mountPath : /opt/cni/bin
You can’t perform that action at this time.
0 commit comments