1
0
Fork 0
mirror of synced 2024-07-01 04:21:06 +12:00

adding k8s resolver and updating watchtower variable

This commit is contained in:
Martin McKeaveney 2022-02-16 15:33:57 +01:00
parent 76589813a7
commit a7a82dc679
2 changed files with 6 additions and 1 deletions

View file

@ -21,6 +21,9 @@ http {
{{#if compose}}
resolver 127.0.0.11 ipv6=off;
{{/if}}
{{#if k8s}}
resolver kube-dns.kube-system.svc.cluster.local valid=10s;
{{/if}}
# buffering
@ -73,7 +76,7 @@ http {
{{#if watchtower}}
location = /v1/update {
proxy_pass http://watchtower-service:8080;
proxy_pass http://$watchtower:8080;
}
{{/if}}
location ~ ^/(builder|app_) {

View file

@ -5,12 +5,14 @@ const { processStringSync } = require("@budibase/string-templates")
const Configs = {
prod: {
k8s: true,
apps: "app-service.budibase.svc.cluster.local",
worker: "worker-service.budibase.svc.cluster.local",
minio: "minio-service.budibase.svc.cluster.local",
couchdb: "budibase-prod-svc-couchdb",
},
preprod: {
k8s: true,
apps: "app-service.budibase.svc.cluster.local",
worker: "worker-service.budibase.svc.cluster.local",
minio: "minio-service.budibase.svc.cluster.local",