adding k8s resolver and updating watchtower variable
This commit is contained in:
parent
76589813a7
commit
a7a82dc679
|
@ -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_) {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue