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