-
Notifications
You must be signed in to change notification settings - Fork 11
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
98a246c
commit 857ad14
Showing
113 changed files
with
2,008 additions
and
126 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: k8s.ovn.org/v1 | ||
kind: EgressFirewall | ||
metadata: | ||
name: default | ||
namespace: argocd | ||
spec: | ||
egress: | ||
# Control Plane | ||
- type: Allow | ||
to: | ||
nodeSelector: | ||
matchLabels: | ||
node-role.kubernetes.io/control-plane: "" | ||
# MicroShift | ||
- type: Allow | ||
to: | ||
cidrSelector: 10.0.0.99/32 | ||
- type: Allow | ||
to: | ||
dnsName: microshift.arthurvardevanyan.com | ||
# https://api.github.com/meta | ||
- type: Allow | ||
to: | ||
dnsName: github.com | ||
- type: Allow | ||
to: | ||
dnsName: api.github.com | ||
- type: Allow | ||
to: | ||
cidrSelector: 140.82.112.0/20 | ||
- type: Deny | ||
to: | ||
cidrSelector: 0.0.0.0/0 |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: k8s.ovn.org/v1 | ||
kind: EgressFirewall | ||
metadata: | ||
name: default | ||
namespace: bitwarden | ||
spec: | ||
egress: | ||
- type: Deny | ||
to: | ||
cidrSelector: 0.0.0.0/0 |
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
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
50 changes: 50 additions & 0 deletions
50
kubernetes/blackbox-exporter/overlays/okd/egress-firewall.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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
apiVersion: k8s.ovn.org/v1 | ||
kind: EgressFirewall | ||
metadata: | ||
name: default | ||
namespace: blackbox-exporter | ||
spec: | ||
egress: | ||
# Cloudflare DNS | ||
- type: Allow | ||
to: | ||
cidrSelector: 1.1.1.1/32 | ||
- type: Allow | ||
to: | ||
cidrSelector: 1.0.0.1/32 | ||
# Cloudflare API Ips (arthurvardevanyan.com) | ||
# https://www.cloudflare.com/ips/ | ||
- type: Allow | ||
to: | ||
cidrSelector: 104.16.0.0/13 | ||
- type: Allow | ||
to: | ||
cidrSelector: 172.64.0.0/13 | ||
# Modem | ||
- type: Allow | ||
to: | ||
cidrSelector: 192.168.100.1/32 | ||
- type: Allow | ||
to: | ||
dnsName: truenas.arthurvardevanyan.com | ||
- type: Allow | ||
to: | ||
dnsName: www.arthurvardevanyan.com | ||
- type: Allow | ||
to: | ||
dnsName: truenas.arthurvardevanyan.com | ||
- type: Allow | ||
to: | ||
dnsName: unifi.arthurvardevanyan.com | ||
- type: Allow | ||
to: | ||
dnsName: pihole.arthurvardevanyan.com | ||
- type: Allow | ||
to: | ||
dnsName: api.okd.arthurvardevanyan.com | ||
- type: Allow | ||
to: | ||
dnsName: apps.okd.arthurvardevanyan.com | ||
- type: Deny | ||
to: | ||
cidrSelector: 0.0.0.0/0 |
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: k8s.ovn.org/v1 | ||
kind: EgressFirewall | ||
metadata: | ||
name: default | ||
namespace: rook-ceph | ||
spec: | ||
egress: | ||
# Control Plane | ||
- type: Allow | ||
to: | ||
nodeSelector: | ||
matchLabels: | ||
node-role.kubernetes.io/control-plane: "" | ||
- type: Deny | ||
to: | ||
cidrSelector: 0.0.0.0/0 |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 | |
kind: Kustomization | ||
resources: | ||
- ../../base | ||
- ./egress-firewall.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 |
---|---|---|
|
@@ -4,3 +4,4 @@ resources: | |
- ./gcp-credentials-request.yaml | ||
- ./cluster-issuer.yaml | ||
- ./kyverno.yaml | ||
- ./network-policy.yaml |
26 changes: 26 additions & 0 deletions
26
kubernetes/cert-manager/components/cloud-dns/network-policy.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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: allow-google-cloud-egress | ||
namespace: cert-manager | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "0" | ||
labels: | ||
app.kubernetes.io/instance: certificate-manager | ||
spec: | ||
policyTypes: | ||
- Egress | ||
podSelector: {} | ||
egress: | ||
# Google Range | ||
# https://support.google.com/a/answer/10026322?hl=en | ||
# https://www.gstatic.com/ipranges/goog.json | ||
# Cloud DNS API? | ||
- to: | ||
- ipBlock: | ||
cidr: 172.217.0.0/16 | ||
# Cloud DNS DNS LookUp? | ||
- to: | ||
- ipBlock: | ||
cidr: 216.239.32.0/19 |
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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
apiVersion: k8s.ovn.org/v1 | ||
kind: EgressFirewall | ||
metadata: | ||
name: default | ||
namespace: cert-manager | ||
spec: | ||
egress: | ||
# Control Plane | ||
- type: Allow | ||
to: | ||
nodeSelector: | ||
matchLabels: | ||
node-role.kubernetes.io/control-plane: "" | ||
# Cloudflare API Ips | ||
# https://www.cloudflare.com/ips/ | ||
- type: Allow | ||
to: | ||
dnsName: api.cloudflare.com | ||
- type: Allow | ||
to: | ||
cidrSelector: 104.16.0.0/13 | ||
- type: Allow | ||
to: | ||
cidrSelector: 172.64.0.0/13 | ||
# Google Range | ||
# https://support.google.com/a/answer/10026322?hl=en | ||
# https://www.gstatic.com/ipranges/goog.json | ||
# Cloud DNS API? | ||
- type: Allow | ||
to: | ||
dnsName: dns.googleapis.com | ||
- type: Allow | ||
to: | ||
cidrSelector: 172.217.0.0/16 | ||
# Cloud DNS DNS LookUp? | ||
- type: Allow | ||
to: | ||
cidrSelector: 216.239.32.0/19 | ||
- type: Deny | ||
to: | ||
cidrSelector: 0.0.0.0/0 |
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
28 changes: 28 additions & 0 deletions
28
kubernetes/cloudflare-ddns/overlays/okd/egress-firewall.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apiVersion: k8s.ovn.org/v1 | ||
kind: EgressFirewall | ||
metadata: | ||
name: default | ||
namespace: cloudflare-ddns | ||
spec: | ||
egress: | ||
# Cloudflare DNS | ||
- type: Allow | ||
to: | ||
cidrSelector: 1.1.1.1/32 | ||
- type: Allow | ||
to: | ||
cidrSelector: 1.0.0.1/32 | ||
# Cloudflare API Ips | ||
# https://www.cloudflare.com/ips/ | ||
- type: Allow | ||
to: | ||
dnsName: api.cloudflare.com | ||
- type: Allow | ||
to: | ||
cidrSelector: 104.16.0.0/13 | ||
- type: Allow | ||
to: | ||
cidrSelector: 172.64.0.0/13 | ||
- type: Deny | ||
to: | ||
cidrSelector: 0.0.0.0/0 |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 | |
kind: Kustomization | ||
resources: | ||
- ../../base | ||
- ./egress-firewall.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: k8s.ovn.org/v1 | ||
kind: EgressFirewall | ||
metadata: | ||
name: default | ||
namespace: cockroach-operator-system | ||
spec: | ||
egress: | ||
# Control Plane | ||
- type: Allow | ||
to: | ||
nodeSelector: | ||
matchLabels: | ||
node-role.kubernetes.io/control-plane: "" | ||
- type: Deny | ||
to: | ||
cidrSelector: 0.0.0.0/0 |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 | |
kind: Kustomization | ||
resources: | ||
- ../../base | ||
- ./egress-firewall.yaml |
Oops, something went wrong.