Skip to content

Commit

Permalink
chore: enable CiliumEndpointSlice in testing (#3347)
Browse files Browse the repository at this point in the history
update templates
  • Loading branch information
jshr-w authored Jan 16, 2025
1 parent a67b2f8 commit 6199e9f
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .pipelines/cni/cilium/cilium-overlay-load-test-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ stages:
echo "Deploy Azure-CNS"
sudo -E env "PATH=$PATH" make test-integration AZURE_IPAM_VERSION=$(make azure-ipam-version) CNS_VERSION=$(make cns-version) INSTALL_CNS=true INSTALL_OVERLAY=true CNS_IMAGE_REPO=$(CNS_IMAGE_REPO)
kubectl get po -owide -A
kubectl get crd -A
- ${{if eq(parameters.hubbleEnabled, true)}}:
- job: deploy_cilium_components
displayName: Deploy Cilium with Hubble
Expand Down Expand Up @@ -154,6 +155,7 @@ stages:
echo "Deploy Azure-CNS"
sudo -E env "PATH=$PATH" make test-integration AZURE_IPAM_VERSION=$(make azure-ipam-version) CNS_VERSION=$(make cns-version) INSTALL_CNS=true INSTALL_OVERLAY=true CNS_IMAGE_REPO=$(CNS_IMAGE_REPO)
kubectl get po -owide -A
kubectl get crd -A
- job: deploy_pods
condition: and( and( not(canceled()), not(failed()) ), or( contains(variables.CONTROL_SCENARIO, 'scaleTest') , contains(variables.CONTROL_SCENARIO, 'all') ) )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ steps:
echo "Waiting < 2 minutes for cilium to be ready"
# Ensure Cilium is ready Xm\Xs
cilium status --wait --wait-duration 2m
kubectl get crd -A
retryCountOnTaskFailure: 3
name: "CiliumStatus"
displayName: "Cilium Status"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ steps:
envsubst '${CILIUM_VERSION_TAG},${CILIUM_IMAGE_REGISTRY},${IPV6_HP_BPF_VERSION}' < test/integration/manifests/cilium/v${DIR}/cilium-agent/templates/daemonset-dualstack.yaml | kubectl apply -f -
envsubst '${CILIUM_VERSION_TAG},${CILIUM_IMAGE_REGISTRY}' < test/integration/manifests/cilium/v${DIR}/cilium-operator/templates/deployment.yaml | kubectl apply -f -
kubectl get po -owide -A
kubectl get crd -A
name: "installCilium"
displayName: "Install Cilium on AKS Dualstack Overlay"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ steps:
envsubst '${CILIUM_VERSION_TAG},${CILIUM_IMAGE_REGISTRY}' < test/integration/manifests/cilium/v${DIR}/cilium-agent/templates/daemonset.yaml | kubectl apply -f -
envsubst '${CILIUM_VERSION_TAG},${CILIUM_IMAGE_REGISTRY}' < test/integration/manifests/cilium/v${DIR}/cilium-operator/templates/deployment.yaml | kubectl apply -f -
kubectl get po -owide -A
kubectl get crd -A
name: "installCilium"
displayName: "Install Cilium"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ steps:
echo "Waiting < 2 minutes for cilium to be ready"
# Ensure Cilium is ready Xm\Xs
cilium status --wait --wait-duration 2m
kubectl get crd -A
retryCountOnTaskFailure: 3
name: "CiliumStatus"
displayName: "Cilium Status"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ steps:
echo "Waiting < 2 minutes for cilium to be ready"
# Ensure Cilium is ready Xm\Xs
cilium status --wait --wait-duration 2m
kubectl get crd -A
retryCountOnTaskFailure: 3
name: "CiliumStatus"
displayName: "Cilium Status"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ steps:
echo "Waiting < 2 minutes for cilium to be ready"
# Ensure Cilium is ready Xm\Xs
cilium status --wait --wait-duration 2m
kubectl get crd -A
retryCountOnTaskFailure: 3
name: "CiliumStatus"
displayName: "Cilium Status"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ steps:
echo "Waiting < 2 minutes for cilium to be ready"
# Ensure Cilium is ready Xm\Xs
cilium status --wait --wait-duration 2m
kubectl get crd -A
retryCountOnTaskFailure: 3
name: "CiliumStatus"
displayName: "Cilium Status"
Expand Down
1 change: 1 addition & 0 deletions .pipelines/singletenancy/cilium/cilium-e2e.steps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ steps:
echo "Waiting < 2 minutes for cilium to be ready"
# Ensure Cilium is ready Xm\Xs
cilium status --wait --wait-duration 2m
kubectl get crd -A
retryCountOnTaskFailure: 3
name: "CiliumStatus"
displayName: "Cilium Status"
Expand Down
1 change: 1 addition & 0 deletions .pipelines/templates/cilium-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ steps:
echo "Waiting < 2 minutes for cilium to be ready"
# Ensure Cilium is ready Xm\Xs
cilium status --wait --wait-duration 2m
kubectl get crd -A
retryCountOnTaskFailure: 3
name: "CiliumStatus"
displayName: "Cilium Status"
Expand Down
2 changes: 2 additions & 0 deletions test/integration/manifests/cilium/cilium-nightly-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ data:
bpf-map-dynamic-size-ratio: "0.0025"
bpf-policy-map-max: "16384"
bpf-root: /sys/fs/bpf
ces-slice-mode: fcfs
cgroup-root: /run/cilium/cgroupv2
cilium-endpoint-gc-interval: 5m0s
cluster-id: "0"
Expand All @@ -19,6 +20,7 @@ data:
enable-auto-protect-node-port-range: "true"
enable-bgp-control-plane: "false"
enable-bpf-clock-probe: "true"
enable-cilium-endpoint-slice: "true"
enable-endpoint-health-checking: "false"
enable-endpoint-routes: "true"
enable-health-check-nodeport: "true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ spec:
- --debug=$(CILIUM_DEBUG)
- --identity-gc-interval=0m20s
- --identity-heartbeat-timeout=0m20s
- --enable-cilium-endpoint-slice=true
- --ces-slice-mode=cesSliceModeFCFS
env:
- name: K8S_NODE_NAME
valueFrom:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ spec:
- --debug=$(CILIUM_DEBUG)
- --identity-gc-interval=0m20s
- --identity-heartbeat-timeout=0m20s
- --enable-cilium-endpoint-slice=true
- --ces-slice-mode=cesSliceModeFCFS
env:
- name: K8S_NODE_NAME
valueFrom:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ spec:
- --debug=$(CILIUM_DEBUG)
- --identity-gc-interval=0m20s
- --identity-heartbeat-timeout=0m20s
- --enable-cilium-endpoint-slice=true
- --ces-slice-mode=cesSliceModeFCFS
env:
- name: K8S_NODE_NAME
valueFrom:
Expand Down

0 comments on commit 6199e9f

Please sign in to comment.