Compare commits
1 commit
0859865755
...
4d07cd4ea7
Author | SHA1 | Date | |
---|---|---|---|
4d07cd4ea7 |
7 changed files with 2 additions and 184 deletions
kubernetes/apps
default
kube-system
|
@ -1,19 +0,0 @@
|
||||||
---
|
|
||||||
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json
|
|
||||||
apiVersion: external-secrets.io/v1beta1
|
|
||||||
kind: ExternalSecret
|
|
||||||
metadata:
|
|
||||||
name: home-assistant
|
|
||||||
spec:
|
|
||||||
secretStoreRef:
|
|
||||||
kind: ClusterSecretStore
|
|
||||||
name: onepassword-connect
|
|
||||||
target:
|
|
||||||
name: home-assistant-secret
|
|
||||||
template:
|
|
||||||
engineVersion: v2
|
|
||||||
data:
|
|
||||||
HASS_PIRATE_WEATHER_API_KEY: "{{ .HASS_PIRATE_WEATHER_API_KEY }}"
|
|
||||||
dataFrom:
|
|
||||||
- extract:
|
|
||||||
key: home-assistant
|
|
|
@ -1,125 +0,0 @@
|
||||||
---
|
|
||||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
|
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
||||||
kind: HelmRelease
|
|
||||||
metadata:
|
|
||||||
name: home-assistant
|
|
||||||
spec:
|
|
||||||
interval: 30m
|
|
||||||
chart:
|
|
||||||
spec:
|
|
||||||
chart: app-template
|
|
||||||
version: 3.4.0
|
|
||||||
sourceRef:
|
|
||||||
kind: HelmRepository
|
|
||||||
name: bjw-s
|
|
||||||
namespace: flux-system
|
|
||||||
install:
|
|
||||||
remediation:
|
|
||||||
retries: 3
|
|
||||||
upgrade:
|
|
||||||
cleanupOnFail: true
|
|
||||||
remediation:
|
|
||||||
strategy: rollback
|
|
||||||
retries: 3
|
|
||||||
dependsOn:
|
|
||||||
- name: rook-ceph-cluster
|
|
||||||
namespace: rook-ceph
|
|
||||||
- name: volsync
|
|
||||||
namespace: volsync-system
|
|
||||||
values:
|
|
||||||
controllers:
|
|
||||||
home-assistant:
|
|
||||||
annotations:
|
|
||||||
reloader.stakater.com/auto: "true"
|
|
||||||
containers:
|
|
||||||
app:
|
|
||||||
image:
|
|
||||||
repository: ghcr.io/onedr0p/home-assistant
|
|
||||||
tag: 2024.9.3@sha256:ac61cfbee43e15863570f83a76059b97a740cc97af26766541b56b5186cf2b00
|
|
||||||
env:
|
|
||||||
TZ: America/Chicago
|
|
||||||
HASS_HTTP_TRUSTED_PROXY_1: 10.1.1.40/24
|
|
||||||
HASS_HTTP_TRUSTED_PROXY_2: 10.244.0.0/16
|
|
||||||
envFrom:
|
|
||||||
- secretRef:
|
|
||||||
name: home-assistant-secret
|
|
||||||
securityContext:
|
|
||||||
allowPrivilegeEscalation: false
|
|
||||||
readOnlyRootFilesystem: true
|
|
||||||
capabilities: { drop: ["ALL"] }
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 10m
|
|
||||||
limits:
|
|
||||||
memory: 2Gi
|
|
||||||
code-server:
|
|
||||||
image:
|
|
||||||
repository: ghcr.io/coder/code-server
|
|
||||||
tag: 4.93.1@sha256:c69e398d1b64589b3b77a7becfd03f4ec524982def20e6bffbb51b1b839e72ba
|
|
||||||
args: [
|
|
||||||
"--auth", "none",
|
|
||||||
"--user-data-dir", "/config/.vscode",
|
|
||||||
"--extensions-dir", "/config/.vscode",
|
|
||||||
"--port", "12321",
|
|
||||||
"/config"
|
|
||||||
]
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 10m
|
|
||||||
limits:
|
|
||||||
memory: 512Mi
|
|
||||||
defaultPodOptions:
|
|
||||||
securityContext:
|
|
||||||
runAsNonRoot: true
|
|
||||||
runAsUser: 568
|
|
||||||
runAsGroup: 568
|
|
||||||
fsGroup: 568
|
|
||||||
fsGroupChangePolicy: OnRootMismatch
|
|
||||||
seccompProfile: { type: RuntimeDefault }
|
|
||||||
service:
|
|
||||||
app:
|
|
||||||
controller: home-assistant
|
|
||||||
ports:
|
|
||||||
http:
|
|
||||||
port: 8123
|
|
||||||
code-server:
|
|
||||||
port: 12321
|
|
||||||
ingress:
|
|
||||||
app:
|
|
||||||
annotations:
|
|
||||||
className: internal-nginx
|
|
||||||
hosts:
|
|
||||||
- host: hass.jahanson.tech
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
service:
|
|
||||||
identifier: app
|
|
||||||
port: http
|
|
||||||
code-server:
|
|
||||||
annotations:
|
|
||||||
className: internal-nginx
|
|
||||||
hosts:
|
|
||||||
- host: hass-code.jahanson.tech
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
service:
|
|
||||||
identifier: app
|
|
||||||
port: code-server
|
|
||||||
persistence:
|
|
||||||
config:
|
|
||||||
existingClaim: home-assistant
|
|
||||||
globalMounts:
|
|
||||||
- path: /config
|
|
||||||
logs:
|
|
||||||
type: emptyDir
|
|
||||||
globalMounts:
|
|
||||||
- path: /config/logs
|
|
||||||
tts:
|
|
||||||
type: emptyDir
|
|
||||||
globalMounts:
|
|
||||||
- path: /config/tts
|
|
||||||
tmp:
|
|
||||||
type: emptyDir
|
|
||||||
globalMounts:
|
|
||||||
- path: /tmp
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
|
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
resources:
|
|
||||||
- ./externalsecret.yaml
|
|
||||||
- ./helmrelease.yaml
|
|
||||||
- ../../../../templates/gatus/internal
|
|
||||||
- ../../../../templates/volsync
|
|
|
@ -1,28 +0,0 @@
|
||||||
---
|
|
||||||
# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
|
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
||||||
kind: Kustomization
|
|
||||||
metadata:
|
|
||||||
name: &app home-assistant
|
|
||||||
namespace: flux-system
|
|
||||||
spec:
|
|
||||||
targetNamespace: default
|
|
||||||
commonMetadata:
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: *app
|
|
||||||
dependsOn:
|
|
||||||
- name: external-secrets-stores
|
|
||||||
path: ./kubernetes/apps/default/home-assistant/app
|
|
||||||
prune: true
|
|
||||||
sourceRef:
|
|
||||||
kind: GitRepository
|
|
||||||
name: theshire
|
|
||||||
wait: false
|
|
||||||
interval: 30m
|
|
||||||
retryInterval: 1m
|
|
||||||
timeout: 5m
|
|
||||||
postBuild:
|
|
||||||
substitute:
|
|
||||||
APP: *app
|
|
||||||
GATUS_SUBDOMAIN: hass
|
|
||||||
VOLSYNC_CAPACITY: 5Gi
|
|
|
@ -9,7 +9,6 @@ resources:
|
||||||
- ./atuin/ks.yaml
|
- ./atuin/ks.yaml
|
||||||
- ./autobrr/ks.yaml
|
- ./autobrr/ks.yaml
|
||||||
- ./excalidraw/ks.yaml
|
- ./excalidraw/ks.yaml
|
||||||
- ./home-assistant/ks.yaml
|
|
||||||
- ./it-tools/ks.yaml
|
- ./it-tools/ks.yaml
|
||||||
- ./linkwarden/ks.yaml
|
- ./linkwarden/ks.yaml
|
||||||
- ./maintainerr/ks.yaml
|
- ./maintainerr/ks.yaml
|
||||||
|
|
|
@ -7,7 +7,7 @@ spec:
|
||||||
# nodeName: nenya
|
# nodeName: nenya
|
||||||
containers:
|
containers:
|
||||||
- name: fstrim
|
- name: fstrim
|
||||||
image: ghcr.io/onedr0p/kubanetics:2024.10.3
|
image: ghcr.io/onedr0p/kubanetics:2024.10.2
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
command: ["/bin/bash", "-c", "while true; do sleep 10; done"]
|
command: ["/bin/bash", "-c", "while true; do sleep 10; done"]
|
||||||
|
|
|
@ -33,7 +33,7 @@ spec:
|
||||||
app:
|
app:
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/onedr0p/kubanetics
|
repository: ghcr.io/onedr0p/kubanetics
|
||||||
tag: 2024.10.3@sha256:9e8e70ac686e9256686e372b27d9a39ab92d6d4c651e67aacedc8ec077a71a66
|
tag: 2024.10.2@sha256:62abb7a13d56798cc58433f01afd41a821abe8fd072a64dd4b0329f42d5d74c8
|
||||||
env:
|
env:
|
||||||
SCRIPT_NAME: fstrim.sh
|
SCRIPT_NAME: fstrim.sh
|
||||||
probes:
|
probes:
|
||||||
|
|
Reference in a new issue