Skip to content

Commit 7d4c903

Browse files
committed
Allow traffic to kubedns
1 parent 931dea0 commit 7d4c903

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

2-kubernetes-cluster/local/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ cilium-start:
2222

2323

2424
stop:
25-
@kubectl delete -k ../../3-continuous-deployment/flux
26-
@flux uninstall --namespace=flux-system
2725
@kind delete cluster
2826

2927
start: kind-start cilium-start
@@ -37,3 +35,6 @@ start: kind-start cilium-start
3735
--path="./3-continuous-deployment/flux" \
3836
--interval=10m \
3937
--health-check-timeout=2m
38+
39+
kubefwd:
40+
sudo kubefwd svc -n filhodanuvem-services

3-continuous-deployment/flux/services/producer/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ RUN go build main.go
77

88

99
FROM alpine:3.8 AS run
10+
WORKDIR /the/workdir/path
1011
COPY --from=build /gowork/main ./main
1112

1213
CMD ./main

7-service-mesh/flux/infrastructure/default-policy.yaml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@ kind: CiliumNetworkPolicy
33
metadata:
44
name: allow-outside-cluster
55
namespace: filhodanuvem-services
6-
spec:
7-
endpointSelector: {}
8-
ingress:
9-
- fromEntities:
10-
- world
11-
egress:
12-
- toEntities:
13-
- world
6+
specs:
7+
- endpointSelector: {}
8+
ingress:
9+
- fromEntities:
10+
- world
11+
egress:
12+
- toEntities:
13+
- world
14+
- endpointSelector: {}
15+
egress:
16+
- toEndpoints:
17+
- matchLabels:
18+
"k8s:io.kubernetes.pod.namespace": kube-system
19+
"k8s:k8s-app": kube-dns

0 commit comments

Comments
 (0)