diff --git a/apps/ignis/chart/templates/deployment.yaml b/apps/ignis/chart/templates/deployment.yaml index c1e42bf..6aa108f 100644 --- a/apps/ignis/chart/templates/deployment.yaml +++ b/apps/ignis/chart/templates/deployment.yaml @@ -14,6 +14,14 @@ spec: labels: app: {{ .Release.Name }} spec: + # Default ndots:5 forces every external FQDN lookup (npm registry, GitHub + # releases) through 4 failed cluster-search-domain attempts before the + # bare name resolves — observed 6-12s DNS delays that broke the + # obsidian-headless install (its own request timeout is shorter than that). + dnsConfig: + options: + - name: ndots + value: "1" containers: - name: ignis image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/apps/ignis/chart/templates/service.yaml b/apps/ignis/chart/templates/service.yaml index f63576a..3e653ab 100644 --- a/apps/ignis/chart/templates/service.yaml +++ b/apps/ignis/chart/templates/service.yaml @@ -3,6 +3,7 @@ kind: Service metadata: name: {{ .Release.Name }} spec: + type: {{ .Values.service.type }} selector: app: {{ .Release.Name }} ports: diff --git a/apps/ignis/chart/values.yaml b/apps/ignis/chart/values.yaml index 0cd16a1..b9731d0 100644 --- a/apps/ignis/chart/values.yaml +++ b/apps/ignis/chart/values.yaml @@ -8,6 +8,7 @@ image: replicaCount: 1 service: + type: ClusterIP port: 8080 env: diff --git a/apps/ignis/docker-compose.yml b/apps/ignis/docker-compose.yml new file mode 100644 index 0000000..24a11b3 --- /dev/null +++ b/apps/ignis/docker-compose.yml @@ -0,0 +1,16 @@ +services: + ignis: + image: nobbe/ignis:latest + ports: + - "8080:8080" + environment: + - PUID=1000 + - PGID=1000 + volumes: + - ./vaults:/vaults + - ./data:/app/data + - obsidian-app:/app/obsidian-app + restart: unless-stopped + +volumes: + obsidian-app: