Skip to content

Commit

Permalink
add otbr
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfrey committed Jul 29, 2024
1 parent 2810e0b commit 380418d
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 0 deletions.
1 change: 1 addition & 0 deletions kubernetes/apps/home/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ resources:
- ./home-assistant/ks.yaml
- ./matter-server/ks.yaml
- ./matterbridge/ks.yaml
- ./openthread/ks.yaml
- ./wyoming-services/ks.yaml
- ./zigbee2mqtt/ks.yaml
- ./esphome/ks.yaml
80 changes: 80 additions & 0 deletions kubernetes/apps/home/openthread/app/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app homeassistant-addon-otbr
spec:

interval: 15m

chart:
spec:
chart: app-template
version: 3.2.1
interval: 15m
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system

maxHistory: 3

install:
createNamespace: true
remediation:
retries: 3

upgrade:
crds: CreateReplace
cleanupOnFail: true
remediation:
retries: 3
strategy: uninstall

uninstall:
keepHistory: false

values:

controllers:

*app :

annotations:
reloader.stakater.com/auto: "true"

containers:
*app :
image:
repository: openthread/otbr
tag: latest
pullPolicy: IfNotPresent

env:
TZ: "${TIMEZONE}"

resources:
requests:
memory: "100M"
limits:
memory: "500M"

defaultPodOptions:
securityContext:
runAsUser: 0
runAsGroup: 0
runAsNonRoot: false
fsGroup: 0
fsGroupChangePolicy: "OnRootMismatch"
supplementalGroups:
- 34

service:
*app :
controller: *app
ports:
http:
port: 8080
primary: true
rest:
port: 8081
8 changes: 8 additions & 0 deletions kubernetes/apps/home/openthread/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.dmfrey.com/kustomize.toolkit.fluxcd.io/kustomization_v1beta1.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
# - ../../../../templates/volsync
# - ../../../../templates/gatus/external
28 changes: 28 additions & 0 deletions kubernetes/apps/home/openthread/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app otbr
namespace: flux-system
spec:
targetNamespace: home
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: "./kubernetes/apps/home/openthread/app"
prune: true
sourceRef:
kind: GitRepository
name: home-gitops
wait: false
interval: 10m
retryInterval: 1m
timeout: 5m
postBuild:
substitute:
APP: *app
substituteFrom: []
decryption:
provider: sops
dependsOn: []

0 comments on commit 380418d

Please sign in to comment.