Skip to content

Commit

Permalink
feat: try update to new version
Browse files Browse the repository at this point in the history
  • Loading branch information
mchestr committed Oct 5, 2023
1 parent 64836a9 commit f88e561
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 68 deletions.
4 changes: 2 additions & 2 deletions kubernetes/apps/default/appdaemon/app/externalsecret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: &app appdaemon
name: appdaemon
namespace: default
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: *app
name: appdaemon-secret
creationPolicy: Owner
template:
engineVersion: v2
Expand Down
124 changes: 59 additions & 65 deletions kubernetes/apps/default/appdaemon/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
chart:
spec:
chart: app-template
version: 1.5.1
version: 2.0.2
sourceRef:
kind: HelmRepository
name: bjw-s-charts
Expand All @@ -26,30 +26,55 @@ spec:
uninstall:
keepHistory: false
values:
controller:
type: statefulset
annotations:
reloader.stakater.com/auto: "true"
controllers:
main:
type: statefulset
annotations:
reloader.stakater.com/auto: "true"

containers:
main:
image:
repository: ghcr.io/mchestr/appdaemon
tag: 4.4.2
env:
TZ: ${TZ}
DASH_URL: http://$HOSTNAME:5050
HA_URL: http://home-assistant.default.svc.cluster.local:8123
code-server:
image:
repository: ghcr.io/coder/code-server
tag: 4.17.1
args:
- --auth
- "none"
- --user-data-dir
- /config/.vscode
- --extensions-dir
- /config/.vscode
- /config

image:
repository: ghcr.io/mchestr/appdaemon
tag: 4.4.2

env:
TZ: ${TZ}
DASH_URL: http://$HOSTNAME:5050
HA_URL: http://home-assistant:8123
statefulset:
volumeClaimTemplates:
- name: config
mountPath: /config
accessMode: ReadWriteOnce
size: 1Gi
storageClass: ceph-block

service:
main:
ports:
http:
port: 5050
code-server:
port: 8080

ingress:
main:
enabled: true
ingressClassName: internal
className: internal
annotations:
auth.home.arpa/enabled: "true"
gethomepage.dev/enabled: "true"
Expand All @@ -61,68 +86,37 @@ spec:
paths:
- path: /
pathType: Prefix
service:
name: main
port: http
- host: "{{ .Release.Name }}-code.chestr.dev"
paths:
- path: /
pathType: Prefix
service:
name: main
port: code-server
tls:
- hosts:
- *host

persistence:
config:
enabled: true
existingClaim: appdaemon-config-v1
mountPath: /conf
secrets:
enabled: true
type: secret
name: *app
mountPath: /conf/secrets.yaml
name: appdaemon-secret
subPath: secrets.yaml
globalMounts:
- path: /conf/secrets.yaml

addons:
codeserver:
enabled: true
image:
repository: ghcr.io/coder/code-server
tag: 4.17.1

workingDir: /config

git:
deployKeySecret: appdaemon-deploykey

args:
- --auth
- "none"
- --user-data-dir
- /config/.vscode
- --extensions-dir
- /config/.vscode
- /config
# addons:
# codeserver:

ingress:
enabled: true
ingressClassName: internal
annotations:
auth.home.arpa/enabled: "true"
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Automation
gethomepage.dev/name: AppDaemon Code
gethomepage.dev/icon: vscode.png
hosts:
- host: &code-host "{{ .Release.Name }}-code.chestr.dev"
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- *code-host
# workingDir: /config

volumeMounts:
- name: config
mountPath: /config
# git:
# deployKeySecret: appdaemon-deploykey

volumeClaimTemplates:
- name: config
mountPath: /config
accessMode: ReadWriteOnce
size: 1Gi
storageClass: ceph-block
# volumeMounts:
# - name: config
# mountPath: /config
2 changes: 1 addition & 1 deletion kubernetes/apps/default/appdaemon/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-appdaemon-app
name: cluster-apps-appdaemon
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: 'true'
Expand Down

0 comments on commit f88e561

Please sign in to comment.