generated from wittdennis/repo-template-yaml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb76bff
commit d83716f
Showing
3 changed files
with
85 additions
and
76 deletions.
There are no files selected for viewing
36 changes: 15 additions & 21 deletions
36
cloud/networking/network-policies/allow-kube-apiserver-traffic.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
# --- | ||
# apiVersion: cilium.io/v2 | ||
# kind: CiliumNetworkPolicy | ||
# metadata: | ||
# name: allow-kube-apiserver-traffic | ||
# spec: | ||
# endpointSelector: | ||
# matchLabels: | ||
# network-policy/allow-kube-apiserver-traffic: apply | ||
# ingress: | ||
# - fromEntities: | ||
# - kube-apiserver | ||
# egress: | ||
# - toEntities: | ||
# - kube-apiserver | ||
# toPorts: | ||
# - ports: | ||
# - port: "443" | ||
# protocol: TCP | ||
# rules: | ||
# http: [{}] | ||
--- | ||
apiVersion: cilium.io/v2 | ||
kind: CiliumNetworkPolicy | ||
metadata: | ||
name: allow-kube-apiserver-traffic | ||
spec: | ||
endpointSelector: | ||
matchLabels: | ||
network-policy/allow-kube-apiserver-traffic: apply | ||
ingress: | ||
- fromEntities: | ||
- kube-apiserver | ||
egress: | ||
- toEntities: | ||
- kube-apiserver |
69 changes: 42 additions & 27 deletions
69
cloud/networking/network-policies/allow-minio-traffic.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,42 @@ | ||
# --- | ||
# apiVersion: cilium.io/v2 | ||
# kind: CiliumNetworkPolicy | ||
# metadata: | ||
# name: allow-minio-traffic | ||
# spec: | ||
# endpointSelector: | ||
# matchLabels: | ||
# network-policy/allow-minio-traffic: apply | ||
# ingress: | ||
# - fromEndpoints: | ||
# - matchLabels: | ||
# app: minio | ||
# v1.min.io/tenant: default | ||
# io.kubernetes.pod.namespace: storage | ||
# egress: | ||
# - toEndpoints: | ||
# - matchLabels: | ||
# app: minio | ||
# v1.min.io/tenant: default | ||
# io.kubernetes.pod.namespace: storage | ||
# toPorts: | ||
# - ports: | ||
# - port: "9000" | ||
# protocol: TCP | ||
# rules: | ||
# http: [{}] | ||
--- | ||
apiVersion: cilium.io/v2 | ||
kind: CiliumNetworkPolicy | ||
metadata: | ||
name: allow-minio-traffic | ||
spec: | ||
endpointSelector: | ||
matchLabels: | ||
network-policy/allow-minio-traffic: apply | ||
ingress: | ||
- fromEndpoints: | ||
- matchLabels: | ||
app: minio | ||
v1.min.io/tenant: default | ||
io.kubernetes.pod.namespace: storage | ||
egress: | ||
- toEndpoints: | ||
- matchLabels: | ||
app: minio | ||
v1.min.io/tenant: default | ||
io.kubernetes.pod.namespace: storage | ||
toPorts: | ||
- ports: | ||
- port: "9000" | ||
protocol: TCP | ||
rules: | ||
http: [{}] | ||
- ports: | ||
- port: "9443" | ||
protocol: TCP | ||
rules: | ||
http: [{}] | ||
- ports: | ||
- port: "443" | ||
protocol: TCP | ||
rules: | ||
http: [{}] | ||
- ports: | ||
- port: "80" | ||
protocol: TCP | ||
rules: | ||
http: [{}] |
56 changes: 28 additions & 28 deletions
56
cloud/networking/network-policies/default-deny-egress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
# --- | ||
# apiVersion: cilium.io/v2 | ||
# kind: CiliumNetworkPolicy | ||
# metadata: | ||
# name: default-deny-egress | ||
# namespace: foundry | ||
# spec: | ||
# endpointSelector: {} | ||
# egress: | ||
# # DNS | ||
# - toEndpoints: | ||
# - matchLabels: | ||
# io.kubernetes.pod.namespace: kube-system | ||
# k8s-app: kube-dns | ||
# toPorts: | ||
# - ports: | ||
# - port: "53" | ||
# protocol: UDP | ||
# rules: | ||
# dns: | ||
# - matchPattern: "*" | ||
# # ingress-nginx | ||
# - toEndpoints: | ||
# - matchLabels: | ||
# app.kubernetes.io/name: ingress-nginx | ||
# app.kubernetes.io/instance: ingress-nginx | ||
# app.kubernetes.io/component: controller | ||
# io.kubernetes.pod.namespace: ingress-nginx | ||
--- | ||
apiVersion: cilium.io/v2 | ||
kind: CiliumNetworkPolicy | ||
metadata: | ||
name: default-deny-egress | ||
namespace: foundry | ||
spec: | ||
endpointSelector: {} | ||
egress: | ||
# DNS | ||
- toEndpoints: | ||
- matchLabels: | ||
io.kubernetes.pod.namespace: kube-system | ||
k8s-app: kube-dns | ||
toPorts: | ||
- ports: | ||
- port: "53" | ||
protocol: UDP | ||
rules: | ||
dns: | ||
- matchPattern: "*" | ||
# ingress-nginx | ||
- toEndpoints: | ||
- matchLabels: | ||
app.kubernetes.io/name: ingress-nginx | ||
app.kubernetes.io/instance: ingress-nginx | ||
app.kubernetes.io/component: controller | ||
io.kubernetes.pod.namespace: ingress-nginx |