Skip to content

Commit

Permalink
Tc
Browse files Browse the repository at this point in the history
  • Loading branch information
msune committed Dec 1, 2024
1 parent 1c26fcb commit aff1402
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ jobs:
while [[ "$(minikube kubectl -- get pods | grep client | grep -v Running)" != "" ]]; do
echo "Not ready, waiting..."
minikube kubectl -- get pods -o wide
for POD in $(minikube kubectl -- get pods | grep client | awk '{print $1}'); do
minikube kubectl -- logs ${POD} --all-containers --previous || true
done
sleep 1;
done
Expand Down
4 changes: 2 additions & 2 deletions example/k8s/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
imagePullPolicy: IfNotPresent
env:
- name: SFUNNEL_RULESET
value: ip tcp sport 80 dport 540 actions unfunnel tcp
value: ip tcp sport 80 dport 540 actions unfunnel decap tcp
securityContext:
privileged: false #Set to true for some public clouds (e.g. GKE standard)
capabilities:
Expand All @@ -89,7 +89,7 @@ spec:
- name: DIRECTION
value: egress
- name: SFUNNEL_RULESET
value: ip tcp dport 8080 actions funnel tcp dport 80 sport 540
value: ip tcp dport 8080 actions funnel encap tcp dport 80 sport 540
securityContext:
privileged: false #Set to true for some public clouds (e.g. GKE standard)
capabilities:
Expand Down
12 changes: 12 additions & 0 deletions test/cni/example-client-patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-web-client
spec:
template:
spec:
initContainers:
- name: sfunnel-init
image: sfunnel
- name: sfunnel-init-egress
image: sfunnel
File renamed without changes.
6 changes: 5 additions & 1 deletion test/cni/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ resources:
- ../../example/k8s/

patches:
- path: example-patch.yaml
- path: example-svc-patch.yaml
target:
kind: Deployment
name: my-nginx-deployment
- path: example-client-patch.yaml
target:
kind: Deployment
name: my-web-client

0 comments on commit aff1402

Please sign in to comment.