Skip to content

Commit

Permalink
fix(piped): netpols
Browse files Browse the repository at this point in the history
  • Loading branch information
JJGadgets committed Aug 14, 2024
1 parent 034d846 commit 54ad85a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions kube/deploy/apps/piped/app/hr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
podLabels:
ingress.home.arpa/nginx-internal: "allow"
ingress.home.arpa/nginx-external: "allow"
ingress.home.arpa/cloudflare: "allow"
egress.home.arpa/nginx-internal: "allow"
egress.home.arpa/nginx-external: "allow"
db.home.arpa/pg: "pg-default"
Expand Down
29 changes: 29 additions & 0 deletions kube/deploy/apps/piped/app/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: excalidraw
namespace: excalidraw
annotations:
external-dns.alpha.kubernetes.io/target: "${DNS_CF}"
nginx.ingress.kubernetes.io/whitelist-source-range: 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,100.64.0.0/10
spec:
ingressClassName: nginx-external
rules:
- host: &host "${APP_DNS_PIPED_BACKEND:=piped-backend}"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: piped-backend
port:
number: 8080
tls:
- hosts:
- draw.jjg.gg
status:
loadBalancer:
ingress:
- ip: 10.12.34.80
1 change: 0 additions & 1 deletion kube/deploy/apps/piped/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ metadata:
spec:
path: ./kube/deploy/apps/piped/app
dependsOn:
- name: 1-core-ingress-nginx-app
- name: 1-core-db-pg-clusters-default
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
Expand Down

0 comments on commit 54ad85a

Please sign in to comment.