mirror of
https://github.com/outbackdingo/Biohazard.git
synced 2026-01-28 10:18:26 +00:00
feat: add ESPHome
This commit is contained in:
@@ -24,6 +24,7 @@ spec:
|
||||
labels:
|
||||
ingress.home.arpa/nginx-internal: allow
|
||||
egress.home.arpa/iot: allow
|
||||
egress.home.arpa/esp: allow
|
||||
# authentik.home.arpa/https: allow
|
||||
egress.home.arpa/internet: allow
|
||||
containers:
|
||||
@@ -39,6 +40,7 @@ spec:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
add: ["NET_"]
|
||||
resources:
|
||||
requests:
|
||||
cpu: "5m"
|
||||
@@ -76,8 +78,17 @@ spec:
|
||||
globalMounts:
|
||||
- subPath: data
|
||||
path: /config
|
||||
cache:
|
||||
type: emptyDir
|
||||
misc:
|
||||
existingClaim: esphome-misc
|
||||
globalMounts:
|
||||
- subPath: cache
|
||||
path: /cache
|
||||
- subPath: dot-cache
|
||||
path: /config/.cache
|
||||
- subPath: dot-local
|
||||
path: /config/.local
|
||||
- subPath: dot-esphome
|
||||
path: /config/.esphome
|
||||
config:
|
||||
type: configMap
|
||||
name: esphome-config
|
||||
|
||||
18
kube/deploy/apps/esphome/app/pvc.yaml
Normal file
18
kube/deploy/apps/esphome/app/pvc.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: "esphome-misc"
|
||||
namespace: &app "esphome"
|
||||
annotations:
|
||||
description: "PVC for ESPHome cache etc"
|
||||
labels:
|
||||
app.kubernetes.io/name: *app
|
||||
snapshot.home.arpa/enabled: "true"
|
||||
kustomize.toolkit.fluxcd.io/prune: "Disabled"
|
||||
spec:
|
||||
storageClassName: "file-ec-2-1"
|
||||
accessModes: ["ReadWriteMany"]
|
||||
resources:
|
||||
requests:
|
||||
storage: "10Gi"
|
||||
@@ -26,6 +26,7 @@ spec:
|
||||
ingress.home.arpa/nginx-internal: allow
|
||||
ingress.home.arpa/world: allow
|
||||
egress.home.arpa/iot: allow
|
||||
egress.home.arpa/esp: allow
|
||||
egress.home.arpa/appletv: allow
|
||||
egress.home.arpa/r2: allow
|
||||
egress.home.arpa/pypi: allow # entrypoint does a `uv pip install uv` in the venv
|
||||
|
||||
@@ -518,6 +518,19 @@ spec:
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/cilium.io/ciliumclusterwidenetworkpolicy_v2.json
|
||||
apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: labelled-allow-egress-esp
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
egress.home.arpa/esp: "allow"
|
||||
egress:
|
||||
- toCIDRSet:
|
||||
- cidr: "${IP_VLAN_ESP_CIDR}"
|
||||
---
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/cilium.io/ciliumclusterwidenetworkpolicy_v2.json
|
||||
apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: labelled-allow-egress-appletv
|
||||
spec:
|
||||
|
||||
Reference in New Issue
Block a user