Updates (fixes) app deploy.
This commit is contained in:
@@ -6,7 +6,7 @@ metadata:
|
||||
namespace: example-admin
|
||||
spec:
|
||||
rules:
|
||||
- host: example-admin.{{ (ds "config").cloud.internalDomain }}
|
||||
- host: example-admin.{{ .cloud.internalDomain }}
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
@@ -18,5 +18,5 @@ spec:
|
||||
number: 80
|
||||
tls:
|
||||
- hosts:
|
||||
- example-admin.{{ (ds "config").cloud.internalDomain }}
|
||||
- example-admin.{{ .cloud.internalDomain }}
|
||||
secretName: wildcard-internal-wild-cloud-tls
|
||||
|
@@ -4,7 +4,7 @@ kind: Ingress
|
||||
metadata:
|
||||
name: example-app
|
||||
annotations:
|
||||
external-dns.alpha.kubernetes.io/target: {{ (ds "config").cloud.domain }}
|
||||
external-dns.alpha.kubernetes.io/target: {{ .cloud.domain }}
|
||||
external-dns.alpha.kubernetes.io/cloudflare-proxied: false
|
||||
|
||||
# Optional: Enable HTTPS redirection
|
||||
@@ -15,7 +15,7 @@ metadata:
|
||||
# traefik.ingress.kubernetes.io/auth-secret: basic-auth
|
||||
spec:
|
||||
rules:
|
||||
- host: example-app.{{ (ds "config").cloud.domain }}
|
||||
- host: example-app.{{ .cloud.domain }}
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
@@ -27,5 +27,5 @@ spec:
|
||||
number: 80
|
||||
tls:
|
||||
- hosts:
|
||||
- example-app.{{ (ds "config").cloud.domain }}
|
||||
- example-app.{{ .cloud.domain }}
|
||||
secretName: wildcard-wild-cloud-tls
|
||||
|
@@ -55,11 +55,11 @@ spec:
|
||||
name: postgres-secrets
|
||||
key: password
|
||||
- name: DB_HOSTNAME
|
||||
value: "{{ .config.apps.immich.dbHostname }}"
|
||||
value: "{{ .apps.immich.dbHostname }}"
|
||||
- name: DB_DATABASE_NAME
|
||||
value: "{{ .config.apps.immich.dbUsername }}"
|
||||
value: "{{ .apps.immich.dbUsername }}"
|
||||
- name: DB_USERNAME
|
||||
value: "{{ .config.apps.immich.dbUsername }}"
|
||||
value: "{{ .apps.immich.dbUsername }}"
|
||||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
|
@@ -15,14 +15,14 @@ spec:
|
||||
component: machine-learning
|
||||
spec:
|
||||
containers:
|
||||
- image: "{{ .config.apps.immich.mlImage }}"
|
||||
- image: "{{ .apps.immich.mlImage }}"
|
||||
name: immich-machine-learning
|
||||
ports:
|
||||
- containerPort: {{ .config.apps.immich.mlPort }}
|
||||
- containerPort: {{ .apps.immich.mlPort }}
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: TZ
|
||||
value: "{{ .config.apps.immich.timezone }}"
|
||||
value: "{{ .apps.immich.timezone }}"
|
||||
volumeMounts:
|
||||
- mountPath: /cache
|
||||
name: immich-cache
|
||||
|
@@ -20,22 +20,22 @@ spec:
|
||||
component: microservices
|
||||
spec:
|
||||
containers:
|
||||
- image: "{{ .config.apps.immich.serverImage }}"
|
||||
- image: "{{ .apps.immich.serverImage }}"
|
||||
name: immich-microservices
|
||||
env:
|
||||
- name: REDIS_HOSTNAME
|
||||
value: "{{ .config.apps.immich.redisHostname }}"
|
||||
value: "{{ .apps.immich.redisHostname }}"
|
||||
- name: DB_HOSTNAME
|
||||
value: "{{ .config.apps.immich.dbHostname }}"
|
||||
value: "{{ .apps.immich.dbHostname }}"
|
||||
- name: DB_USERNAME
|
||||
value: "{{ .config.apps.immich.dbUsername }}"
|
||||
value: "{{ .apps.immich.dbUsername }}"
|
||||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: immich-secrets
|
||||
key: dbPassword
|
||||
- name: TZ
|
||||
value: "{{ .config.apps.immich.timezone }}"
|
||||
value: "{{ .apps.immich.timezone }}"
|
||||
- name: IMMICH_WORKERS_EXCLUDE
|
||||
value: api
|
||||
volumeMounts:
|
||||
|
@@ -20,25 +20,25 @@ spec:
|
||||
component: server
|
||||
spec:
|
||||
containers:
|
||||
- image: "{{ .config.apps.immich.serverImage }}"
|
||||
- image: "{{ .apps.immich.serverImage }}"
|
||||
name: immich-server
|
||||
ports:
|
||||
- containerPort: {{ .config.apps.immich.serverPort }}
|
||||
- containerPort: {{ .apps.immich.serverPort }}
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: REDIS_HOSTNAME
|
||||
value: "{{ .config.apps.immich.redisHostname }}"
|
||||
value: "{{ .apps.immich.redisHostname }}"
|
||||
- name: DB_HOSTNAME
|
||||
value: "{{ .config.apps.immich.dbHostname }}"
|
||||
value: "{{ .apps.immich.dbHostname }}"
|
||||
- name: DB_USERNAME
|
||||
value: "{{ .config.apps.immich.dbUsername }}"
|
||||
value: "{{ .apps.immich.dbUsername }}"
|
||||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: immich-secrets
|
||||
key: dbPassword
|
||||
- name: TZ
|
||||
value: "{{ .config.apps.immich.timezone }}"
|
||||
value: "{{ .apps.immich.timezone }}"
|
||||
- name: IMMICH_WORKERS_EXCLUDE
|
||||
value: microservices
|
||||
volumeMounts:
|
||||
|
@@ -4,11 +4,11 @@ kind: Ingress
|
||||
metadata:
|
||||
name: immich-public
|
||||
annotations:
|
||||
external-dns.alpha.kubernetes.io/target: "{{ .config.apps.immich.domain }}"
|
||||
external-dns.alpha.kubernetes.io/target: "{{ .apps.immich.domain }}"
|
||||
external-dns.alpha.kubernetes.io/cloudflare-proxied: "false"
|
||||
spec:
|
||||
rules:
|
||||
- host: "{{ .config.apps.immich.domain }}"
|
||||
- host: "{{ .apps.immich.domain }}"
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
@@ -19,6 +19,6 @@ spec:
|
||||
port:
|
||||
number: 3001
|
||||
tls:
|
||||
- secretName: wildcard-internal-wild-cloud-tls
|
||||
- secretName: wildcard-wild-cloud-tls
|
||||
hosts:
|
||||
- "{{ .config.apps.immich.domain }}"
|
||||
- "{{ .apps.immich.domain }}"
|
||||
|
@@ -9,7 +9,7 @@ spec:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .config.apps.immich.storage }}
|
||||
storage: {{ .apps.immich.storage }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
@@ -21,4 +21,4 @@ spec:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .config.apps.immich.cacheStorage }}
|
||||
storage: {{ .apps.immich.cacheStorage }}
|
||||
|
@@ -9,7 +9,7 @@ metadata:
|
||||
spec:
|
||||
ports:
|
||||
- port: 3001
|
||||
targetPort: {{ .config.apps.immich.serverPort }}
|
||||
targetPort: {{ .apps.immich.serverPort }}
|
||||
selector:
|
||||
app: immich
|
||||
component: server
|
||||
@@ -25,7 +25,7 @@ metadata:
|
||||
app: immich-machine-learning
|
||||
spec:
|
||||
ports:
|
||||
- port: {{ .config.apps.immich.mlPort }}
|
||||
- port: {{ .apps.immich.mlPort }}
|
||||
selector:
|
||||
app: immich
|
||||
component: machine-learning
|
||||
|
@@ -15,7 +15,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: postgres
|
||||
image: "{{ .config.apps.postgres.image }}"
|
||||
image: "{{ .apps.postgres.image }}"
|
||||
args:
|
||||
[
|
||||
"-c",
|
||||
@@ -35,11 +35,11 @@ spec:
|
||||
- name: PGDATA
|
||||
value: /var/lib/postgresql/data/pgdata
|
||||
- name: TZ
|
||||
value: "{{ .config.apps.postgres.timezone }}"
|
||||
value: "{{ .apps.postgres.timezone }}"
|
||||
- name: POSTGRES_DB
|
||||
value: "{{ .config.apps.postgres.database }}"
|
||||
value: "{{ .apps.postgres.database }}"
|
||||
- name: POSTGRES_USER
|
||||
value: "{{ .config.apps.postgres.user }}"
|
||||
value: "{{ .apps.postgres.user }}"
|
||||
- name: POSTGRES_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
|
@@ -9,4 +9,4 @@ spec:
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ (ds "config").apps.postgres.storage | default "10Gi" }}
|
||||
storage: {{ .apps.postgres.storage | default "10Gi" }}
|
||||
|
@@ -14,11 +14,11 @@ spec:
|
||||
app: redis
|
||||
spec:
|
||||
containers:
|
||||
- image: "{{ .config.apps.redis.image }}"
|
||||
- image: "{{ .apps.redis.image }}"
|
||||
name: redis
|
||||
ports:
|
||||
- containerPort: {{ .config.apps.redis.port }}
|
||||
- containerPort: {{ .apps.redis.port }}
|
||||
env:
|
||||
- name: TZ
|
||||
value: "{{ .config.apps.redis.timezone }}"
|
||||
value: "{{ .apps.redis.timezone }}"
|
||||
restartPolicy: Always
|
||||
|
@@ -2,12 +2,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: redis-service
|
||||
name: redis
|
||||
labels:
|
||||
app: redis
|
||||
spec:
|
||||
ports:
|
||||
- port: {{ .config.apps.redis.port }}
|
||||
targetPort: {{ .config.apps.redis.port }}
|
||||
- port: {{ .apps.redis.port }}
|
||||
targetPort: {{ .apps.redis.port }}
|
||||
selector:
|
||||
app: redis
|
||||
|
Reference in New Issue
Block a user