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

View File

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