Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
k8s-ingress
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
uplex-varnish
k8s-ingress
Commits
49b65bba
Commit
49b65bba
authored
Apr 30, 2020
by
Geoff Simmons
Committed by
Tim Leers
Jul 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the "multiple Varnish/Ingresses in one namespace" example.
parent
a098993d
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
172 additions
and
14 deletions
+172
-14
adm-secret-coffee.yaml
...les/architectures/multi-varnish-ns/adm-secret-coffee.yaml
+1
-0
adm-secret-tea.yaml
examples/architectures/multi-varnish-ns/adm-secret-tea.yaml
+1
-0
admin-svc-coffee.yaml
...ples/architectures/multi-varnish-ns/admin-svc-coffee.yaml
+29
-0
admin-svc-tea.yaml
examples/architectures/multi-varnish-ns/admin-svc-tea.yaml
+29
-0
coffee-ingress.yaml
examples/architectures/multi-varnish-ns/coffee-ingress.yaml
+1
-1
deploy.sh
examples/architectures/multi-varnish-ns/deploy.sh
+6
-0
nodeport-coffee.yaml
examples/architectures/multi-varnish-ns/nodeport-coffee.yaml
+4
-4
nodeport-tea.yaml
examples/architectures/multi-varnish-ns/nodeport-tea.yaml
+4
-4
tea-ingress.yaml
examples/architectures/multi-varnish-ns/tea-ingress.yaml
+1
-1
tls-cert-secret.yaml
examples/architectures/multi-varnish-ns/tls-cert-secret.yaml
+8
-0
undeploy.sh
examples/architectures/multi-varnish-ns/undeploy.sh
+6
-0
varnish-coffee.yaml
examples/architectures/multi-varnish-ns/varnish-coffee.yaml
+41
-2
varnish-tea.yaml
examples/architectures/multi-varnish-ns/varnish-tea.yaml
+41
-2
No files found.
examples/architectures/multi-varnish-ns/adm-secret-coffee.yaml
View file @
49b65bba
...
@@ -8,3 +8,4 @@ metadata:
...
@@ -8,3 +8,4 @@ metadata:
type
:
Opaque
type
:
Opaque
data
:
data
:
admin
:
BhjBhxjqrbCnW2eYLoUL+C2TN51a8sWQIfL9oRWPY2E=
admin
:
BhjBhxjqrbCnW2eYLoUL+C2TN51a8sWQIfL9oRWPY2E=
dataplaneapi
:
MjgzYWI1MWYtMzYzOC00M2IxLTllZmItZGI1M2VlOGY1Yzg4
examples/architectures/multi-varnish-ns/adm-secret-tea.yaml
View file @
49b65bba
...
@@ -8,3 +8,4 @@ metadata:
...
@@ -8,3 +8,4 @@ metadata:
type
:
Opaque
type
:
Opaque
data
:
data
:
admin
:
IZqtwnccuVoCblGaTq8yK8mOk8gtLwWmbZq17tpcdwo=
admin
:
IZqtwnccuVoCblGaTq8yK8mOk8gtLwWmbZq17tpcdwo=
dataplaneapi
:
NjFhNzE3NTgtMTJjNS00ZWQ1LWJmNzEtMTRiM2Q3OTExYWE0
examples/architectures/multi-varnish-ns/admin-svc-coffee.yaml
0 → 100644
View file @
49b65bba
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
varnish-coffee-admin
namespace
:
cafe
labels
:
app
:
varnish-ingress
spec
:
clusterIP
:
None
ports
:
-
port
:
6081
targetPort
:
6081
protocol
:
TCP
name
:
varnishadm
-
port
:
5555
targetPort
:
5555
protocol
:
TCP
name
:
dataplane
-
port
:
5556
targetPort
:
5556
protocol
:
TCP
name
:
faccess
-
port
:
9443
targetPort
:
9443
protocol
:
TCP
name
:
stats
selector
:
app
:
varnish-ingress
ingress
:
coffee
examples/architectures/multi-varnish-ns/admin-svc-tea.yaml
0 → 100644
View file @
49b65bba
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
varnish-tea-admin
namespace
:
cafe
labels
:
app
:
varnish-ingress
spec
:
clusterIP
:
None
ports
:
-
port
:
6081
targetPort
:
6081
protocol
:
TCP
name
:
varnishadm
-
port
:
5555
targetPort
:
5555
protocol
:
TCP
name
:
dataplane
-
port
:
5556
targetPort
:
5556
protocol
:
TCP
name
:
faccess
-
port
:
9443
targetPort
:
9443
protocol
:
TCP
name
:
stats
selector
:
app
:
varnish-ingress
ingress
:
tea
examples/architectures/multi-varnish-ns/coffee-ingress.yaml
View file @
49b65bba
...
@@ -5,7 +5,7 @@ metadata:
...
@@ -5,7 +5,7 @@ metadata:
namespace
:
cafe
namespace
:
cafe
annotations
:
annotations
:
kubernetes.io/ingress.class
:
"
varnish"
kubernetes.io/ingress.class
:
"
varnish"
ingress.varnish-cache.org/varnish-svc
:
"
varnish-coffee"
ingress.varnish-cache.org/varnish-svc
:
"
varnish-coffee
-admin
"
spec
:
spec
:
rules
:
rules
:
-
host
:
coffee.example.com
-
host
:
coffee.example.com
...
...
examples/architectures/multi-varnish-ns/deploy.sh
View file @
49b65bba
...
@@ -6,14 +6,20 @@ kubectl apply -f coffee.yaml
...
@@ -6,14 +6,20 @@ kubectl apply -f coffee.yaml
kubectl apply
-f
tea.yaml
kubectl apply
-f
tea.yaml
kubectl apply
-f
tls-cert-secret.yaml
kubectl apply
-f
adm-secret-tea.yaml
kubectl apply
-f
adm-secret-tea.yaml
kubectl apply
-f
admin-svc-tea.yaml
kubectl apply
-f
nodeport-tea.yaml
kubectl apply
-f
nodeport-tea.yaml
kubectl apply
-f
varnish-tea.yaml
kubectl apply
-f
varnish-tea.yaml
kubectl apply
-f
adm-secret-coffee.yaml
kubectl apply
-f
adm-secret-coffee.yaml
kubectl apply
-f
admin-svc-coffee.yaml
kubectl apply
-f
nodeport-coffee.yaml
kubectl apply
-f
nodeport-coffee.yaml
kubectl apply
-f
varnish-coffee.yaml
kubectl apply
-f
varnish-coffee.yaml
...
...
examples/architectures/multi-varnish-ns/nodeport-coffee.yaml
View file @
49b65bba
...
@@ -10,14 +10,14 @@ metadata:
...
@@ -10,14 +10,14 @@ metadata:
spec
:
spec
:
type
:
NodePort
type
:
NodePort
ports
:
ports
:
-
port
:
6081
targetPort
:
6081
protocol
:
TCP
name
:
varnishadm
-
port
:
80
-
port
:
80
targetPort
:
80
targetPort
:
80
protocol
:
TCP
protocol
:
TCP
name
:
http
name
:
http
-
port
:
443
targetPort
:
443
protocol
:
TCP
name
:
tls
selector
:
selector
:
app
:
varnish-ingress
app
:
varnish-ingress
ingress
:
coffee
ingress
:
coffee
...
...
examples/architectures/multi-varnish-ns/nodeport-tea.yaml
View file @
49b65bba
...
@@ -10,14 +10,14 @@ metadata:
...
@@ -10,14 +10,14 @@ metadata:
spec
:
spec
:
type
:
NodePort
type
:
NodePort
ports
:
ports
:
-
port
:
6081
targetPort
:
6081
protocol
:
TCP
name
:
varnishadm
-
port
:
80
-
port
:
80
targetPort
:
80
targetPort
:
80
protocol
:
TCP
protocol
:
TCP
name
:
http
name
:
http
-
port
:
443
targetPort
:
443
protocol
:
TCP
name
:
tls
selector
:
selector
:
app
:
varnish-ingress
app
:
varnish-ingress
ingress
:
tea
ingress
:
tea
...
...
examples/architectures/multi-varnish-ns/tea-ingress.yaml
View file @
49b65bba
...
@@ -5,7 +5,7 @@ metadata:
...
@@ -5,7 +5,7 @@ metadata:
namespace
:
cafe
namespace
:
cafe
annotations
:
annotations
:
kubernetes.io/ingress.class
:
"
varnish"
kubernetes.io/ingress.class
:
"
varnish"
ingress.varnish-cache.org/varnish-svc
:
"
varnish-tea"
ingress.varnish-cache.org/varnish-svc
:
"
varnish-tea
-admin
"
spec
:
spec
:
rules
:
rules
:
-
host
:
tea.example.com
-
host
:
tea.example.com
...
...
examples/architectures/multi-varnish-ns/tls-cert-secret.yaml
0 → 100644
View file @
49b65bba
apiVersion
:
v1
kind
:
Secret
metadata
:
name
:
tls-cert
namespace
:
cafe
labels
:
app
:
varnish-ingress
type
:
Opaque
examples/architectures/multi-varnish-ns/undeploy.sh
View file @
49b65bba
...
@@ -8,14 +8,20 @@ kubectl delete -f varnish-coffee.yaml
...
@@ -8,14 +8,20 @@ kubectl delete -f varnish-coffee.yaml
kubectl delete
-f
nodeport-coffee.yaml
kubectl delete
-f
nodeport-coffee.yaml
kubectl delete
-f
admin-svc-coffee.yaml
kubectl delete
-f
adm-secret-coffee.yaml
kubectl delete
-f
adm-secret-coffee.yaml
kubectl delete
-f
varnish-tea.yaml
kubectl delete
-f
varnish-tea.yaml
kubectl delete
-f
nodeport-tea.yaml
kubectl delete
-f
nodeport-tea.yaml
kubectl delete
-f
admin-svc-tea.yaml
kubectl delete
-f
adm-secret-tea.yaml
kubectl delete
-f
adm-secret-tea.yaml
kubectl apply
-f
tls-cert-secret.yaml
kubectl delete
-f
tea.yaml
kubectl delete
-f
tea.yaml
kubectl delete
-f
coffee.yaml
kubectl delete
-f
coffee.yaml
...
...
examples/architectures/multi-varnish-ns/varnish-coffee.yaml
View file @
49b65bba
...
@@ -15,6 +15,8 @@ spec:
...
@@ -15,6 +15,8 @@ spec:
app
:
varnish-ingress
app
:
varnish-ingress
ingress
:
coffee
ingress
:
coffee
spec
:
spec
:
securityContext
:
fsGroup
:
998
containers
:
containers
:
-
image
:
varnish-ingress/varnish
-
image
:
varnish-ingress/varnish
imagePullPolicy
:
IfNotPresent
imagePullPolicy
:
IfNotPresent
...
@@ -24,14 +26,14 @@ spec:
...
@@ -24,14 +26,14 @@ spec:
containerPort
:
80
containerPort
:
80
-
name
:
k8s
-
name
:
k8s
containerPort
:
8080
containerPort
:
8080
-
name
:
varnishadm
containerPort
:
6081
volumeMounts
:
volumeMounts
:
-
name
:
adm-secret
-
name
:
adm-secret
mountPath
:
"
/var/run/varnish"
mountPath
:
"
/var/run/varnish"
readOnly
:
true
readOnly
:
true
-
name
:
varnish-home
-
name
:
varnish-home
mountPath
:
"
/var/run/varnish-home"
mountPath
:
"
/var/run/varnish-home"
-
name
:
offload
mountPath
:
"
/var/run/offload"
livenessProbe
:
livenessProbe
:
exec
:
exec
:
command
:
command
:
...
@@ -46,6 +48,37 @@ spec:
...
@@ -46,6 +48,37 @@ spec:
args
:
args
:
-
-n
-
-n
-
/var/run/varnish-home
-
/var/run/varnish-home
-
image
:
varnish-ingress/haproxy
imagePullPolicy
:
IfNotPresent
name
:
varnish-ingress-offloader
ports
:
-
name
:
tls
containerPort
:
443
-
name
:
k8s
containerPort
:
8443
volumeMounts
:
-
name
:
tls-cert
mountPath
:
"
/etc/ssl/private"
readOnly
:
true
-
name
:
offload
mountPath
:
"
/var/run/offload"
env
:
-
name
:
SECRET_DATAPLANEAPI
valueFrom
:
secretKeyRef
:
name
:
coffee-secret
key
:
dataplaneapi
livenessProbe
:
exec
:
command
:
-
/usr/bin/pgrep
-
-P
-
"
0"
-
haproxy
readinessProbe
:
httpGet
:
path
:
/healthz
port
:
k8s
volumes
:
volumes
:
-
name
:
adm-secret
-
name
:
adm-secret
secret
:
secret
:
...
@@ -53,6 +86,12 @@ spec:
...
@@ -53,6 +86,12 @@ spec:
items
:
items
:
-
key
:
admin
-
key
:
admin
path
:
_.secret
path
:
_.secret
-
name
:
tls-cert
secret
:
secretName
:
tls-cert
defaultMode
:
0440
-
name
:
varnish-home
-
name
:
varnish-home
emptyDir
:
emptyDir
:
medium
:
"
Memory"
medium
:
"
Memory"
-
name
:
offload
emptyDir
:
{}
examples/architectures/multi-varnish-ns/varnish-tea.yaml
View file @
49b65bba
...
@@ -15,6 +15,8 @@ spec:
...
@@ -15,6 +15,8 @@ spec:
app
:
varnish-ingress
app
:
varnish-ingress
ingress
:
tea
ingress
:
tea
spec
:
spec
:
securityContext
:
fsGroup
:
998
containers
:
containers
:
-
image
:
varnish-ingress/varnish
-
image
:
varnish-ingress/varnish
imagePullPolicy
:
IfNotPresent
imagePullPolicy
:
IfNotPresent
...
@@ -24,14 +26,14 @@ spec:
...
@@ -24,14 +26,14 @@ spec:
containerPort
:
80
containerPort
:
80
-
name
:
k8s
-
name
:
k8s
containerPort
:
8080
containerPort
:
8080
-
name
:
varnishadm
containerPort
:
6081
volumeMounts
:
volumeMounts
:
-
name
:
adm-secret
-
name
:
adm-secret
mountPath
:
"
/var/run/varnish"
mountPath
:
"
/var/run/varnish"
readOnly
:
true
readOnly
:
true
-
name
:
varnish-home
-
name
:
varnish-home
mountPath
:
"
/var/run/varnish-home"
mountPath
:
"
/var/run/varnish-home"
-
name
:
offload
mountPath
:
"
/var/run/offload"
livenessProbe
:
livenessProbe
:
exec
:
exec
:
command
:
command
:
...
@@ -46,6 +48,37 @@ spec:
...
@@ -46,6 +48,37 @@ spec:
args
:
args
:
-
-n
-
-n
-
/var/run/varnish-home
-
/var/run/varnish-home
-
image
:
varnish-ingress/haproxy
imagePullPolicy
:
IfNotPresent
name
:
varnish-ingress-offloader
ports
:
-
name
:
tls
containerPort
:
443
-
name
:
k8s
containerPort
:
8443
volumeMounts
:
-
name
:
tls-cert
mountPath
:
"
/etc/ssl/private"
readOnly
:
true
-
name
:
offload
mountPath
:
"
/var/run/offload"
env
:
-
name
:
SECRET_DATAPLANEAPI
valueFrom
:
secretKeyRef
:
name
:
tea-secret
key
:
dataplaneapi
livenessProbe
:
exec
:
command
:
-
/usr/bin/pgrep
-
-P
-
"
0"
-
haproxy
readinessProbe
:
httpGet
:
path
:
/healthz
port
:
k8s
volumes
:
volumes
:
-
name
:
adm-secret
-
name
:
adm-secret
secret
:
secret
:
...
@@ -53,6 +86,12 @@ spec:
...
@@ -53,6 +86,12 @@ spec:
items
:
items
:
-
key
:
admin
-
key
:
admin
path
:
_.secret
path
:
_.secret
-
name
:
tls-cert
secret
:
secretName
:
tls-cert
defaultMode
:
0440
-
name
:
varnish-home
-
name
:
varnish-home
emptyDir
:
emptyDir
:
medium
:
"
Memory"
medium
:
"
Memory"
-
name
:
offload
emptyDir
:
{}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment