mirror of
https://github.com/outbackdingo/Biohazard.git
synced 2026-01-27 18:18:26 +00:00
fix(home-assistant): existingClaim controller, netpols
This commit is contained in:
@@ -21,6 +21,7 @@ spec:
|
||||
type: deployment
|
||||
replicas: 1
|
||||
pod:
|
||||
hostname: "home-assistant"
|
||||
labels:
|
||||
ingress.home.arpa/nginx-internal: "allow"
|
||||
ingress.home.arpa/world: "allow"
|
||||
@@ -111,6 +112,8 @@ spec:
|
||||
ports:
|
||||
http:
|
||||
port: 8123
|
||||
protocol: TCP
|
||||
appProtocol: http
|
||||
vscode:
|
||||
primary: false
|
||||
controller: "vscode"
|
||||
@@ -157,7 +160,7 @@ spec:
|
||||
enabled: true
|
||||
existingClaim: "home-assistant-data"
|
||||
advancedMounts:
|
||||
main:
|
||||
home-assistant:
|
||||
main:
|
||||
- subPath: "config"
|
||||
path: "/config"
|
||||
|
||||
26
kube/deploy/apps/home-assistant/app/netpol.yaml
Normal file
26
kube/deploy/apps/home-assistant/app/netpol.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://crds.jank.ing/cilium.io/ciliumnetworkpolicy_v2.json
|
||||
apiVersion: cilium.io/v2
|
||||
kind: CiliumNetworkPolicy
|
||||
metadata:
|
||||
name: &app home-assistant
|
||||
namespace: *app
|
||||
spec:
|
||||
endpointSelector: {}
|
||||
ingress:
|
||||
- fromCIDR: &privIPv4
|
||||
- "10.0.0.0/8"
|
||||
- "172.16.0.0/12"
|
||||
- "192.168.0.0/16"
|
||||
- "100.64.0.0/10"
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "21061"
|
||||
protocol: TCP
|
||||
ingressDeny: # only ingress can hit HTTP port
|
||||
- fromEntities: [world]
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "8123"
|
||||
protocol: ANY
|
||||
|
||||
Reference in New Issue
Block a user