Commit d601a8d3 authored by Geoff Simmons's avatar Geoff Simmons

Use backend None as the "not found" sentinel, and only define it once.

parent 18fde009
......@@ -4,8 +4,4 @@
# - Defined when the Ingress is not ready (not currently implementing
# any IngressSpec), so that Varnish doesn't complain about no
# backend definition.
backend notfound {
# 192.0.2.0/24 reserved for docs & examples (RFC5737).
.host = "192.0.2.255";
.port = "80";
}
backend vk8s_notfound None;
......@@ -5,11 +5,7 @@ import directors;
import re2;
import dynamic;
backend vk8s_notfound {
# 192.0.2.0/24 reserved for docs & examples (RFC5737).
.host = "192.0.2.255";
.port = "80";
}
include "bogo_backend.vcl";
probe vk8s_coffee-svc_probe {
.request =
......
......@@ -5,11 +5,7 @@ import directors;
import re2;
import dynamic;
backend vk8s_notfound {
# 192.0.2.0/24 reserved for docs & examples (RFC5737).
.host = "192.0.2.255";
.port = "80";
}
include "bogo_backend.vcl";
backend vk8s_coffee-svc_192_0_2_4 {
.host = "192.0.2.4";
......
......@@ -5,11 +5,7 @@ import directors;
import re2;
import dynamic;
backend vk8s_notfound {
# 192.0.2.0/24 reserved for docs & examples (RFC5737).
.host = "192.0.2.255";
.port = "80";
}
include "bogo_backend.vcl";
backend vk8s_coffee-svc_192_0_2_4 {
.host = "192.0.2.4";
......
......@@ -5,11 +5,7 @@ import directors;
import re2;
import dynamic;
backend vk8s_notfound {
# 192.0.2.0/24 reserved for docs & examples (RFC5737).
.host = "192.0.2.255";
.port = "80";
}
include "bogo_backend.vcl";
probe vk8s_metaxa-svc_probe {
.request =
......
......@@ -5,11 +5,7 @@ import directors;
import re2;
import dynamic;
backend vk8s_notfound {
# 192.0.2.0/24 reserved for docs & examples (RFC5737).
.host = "192.0.2.255";
.port = "80";
}
include "bogo_backend.vcl";
probe vk8s_tea-svc_probe {
.url = "/healthz";
......
......@@ -5,11 +5,7 @@ import directors;
import re2;
import dynamic;
backend vk8s_notfound {
# 192.0.2.0/24 reserved for docs & examples (RFC5737).
.host = "192.0.2.255";
.port = "80";
}
include "bogo_backend.vcl";
probe vk8s_coffee-svc_probe {
.request =
......
......@@ -5,11 +5,7 @@ import directors;
import re2;
import dynamic;
backend vk8s_notfound {
# 192.0.2.0/24 reserved for docs & examples (RFC5737).
.host = "192.0.2.255";
.port = "80";
}
include "bogo_backend.vcl";
backend vk8s_coffee-svc_192_0_2_4 {
.host = "192.0.2.4";
......
......@@ -5,11 +5,7 @@ import directors;
import re2;
import dynamic;
backend vk8s_notfound {
# 192.0.2.0/24 reserved for docs & examples (RFC5737).
.host = "192.0.2.255";
.port = "80";
}
include "bogo_backend.vcl";
backend vk8s_coffee-svc_192_0_2_4 {
.host = "192.0.2.4";
......
......@@ -5,11 +5,7 @@ import directors;
import re2;
import dynamic;
backend vk8s_notfound {
# 192.0.2.0/24 reserved for docs & examples (RFC5737).
.host = "192.0.2.255";
.port = "80";
}
include "bogo_backend.vcl";
backend vk8s_tea-svc_192_0_2_1 {
.host = "192.0.2.1";
......
......@@ -5,11 +5,7 @@ import directors;
import re2;
import dynamic;
backend vk8s_notfound {
# 192.0.2.0/24 reserved for docs & examples (RFC5737).
.host = "192.0.2.255";
.port = "80";
}
include "bogo_backend.vcl";
backend vk8s_coffee-svc_192_0_2_4 {
.host = "192.0.2.4";
......
......@@ -5,11 +5,7 @@ import directors;
import re2;
import dynamic;
backend vk8s_notfound {
# 192.0.2.0/24 reserved for docs & examples (RFC5737).
.host = "192.0.2.255";
.port = "80";
}
include "bogo_backend.vcl";
backend vk8s_coffee-svc_192_0_2_4 {
.host = "192.0.2.4";
......
......@@ -5,11 +5,7 @@ import directors;
import re2;
import dynamic;
backend vk8s_notfound {
# 192.0.2.0/24 reserved for docs & examples (RFC5737).
.host = "192.0.2.255";
.port = "80";
}
include "bogo_backend.vcl";
......
......@@ -40,11 +40,7 @@ import directors;
import re2;
import dynamic;
backend vk8s_notfound {
# 192.0.2.0/24 reserved for docs & examples (RFC5737).
.host = "192.0.2.255";
.port = "80";
}
include "bogo_backend.vcl";
{{- define "ProbeDef"}}
{{- range $name, $svc := .}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment