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
36326a91
Commit
36326a91
authored
Apr 30, 2020
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the "multiple Varnish/Ingresses in one namespace" example.
parent
1753a084
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 @
36326a91
...
...
@@ -8,3 +8,4 @@ metadata:
type
:
Opaque
data
:
admin
:
BhjBhxjqrbCnW2eYLoUL+C2TN51a8sWQIfL9oRWPY2E=
dataplaneapi
:
MjgzYWI1MWYtMzYzOC00M2IxLTllZmItZGI1M2VlOGY1Yzg4
examples/architectures/multi-varnish-ns/adm-secret-tea.yaml
View file @
36326a91
...
...
@@ -8,3 +8,4 @@ metadata:
type
:
Opaque
data
:
admin
:
IZqtwnccuVoCblGaTq8yK8mOk8gtLwWmbZq17tpcdwo=
dataplaneapi
:
NjFhNzE3NTgtMTJjNS00ZWQ1LWJmNzEtMTRiM2Q3OTExYWE0
examples/architectures/multi-varnish-ns/admin-svc-coffee.yaml
0 → 100644
View file @
36326a91
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 @
36326a91
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 @
36326a91
...
...
@@ -5,7 +5,7 @@ metadata:
namespace
:
cafe
annotations
:
kubernetes.io/ingress.class
:
"
varnish"
ingress.varnish-cache.org/varnish-svc
:
"
varnish-coffee"
ingress.varnish-cache.org/varnish-svc
:
"
varnish-coffee
-admin
"
spec
:
rules
:
-
host
:
coffee.example.com
...
...
examples/architectures/multi-varnish-ns/deploy.sh
View file @
36326a91
...
...
@@ -6,14 +6,20 @@ kubectl apply -f coffee.yaml
kubectl apply
-f
tea.yaml
kubectl apply
-f
tls-cert-secret.yaml
kubectl apply
-f
adm-secret-tea.yaml
kubectl apply
-f
admin-svc-tea.yaml
kubectl apply
-f
nodeport-tea.yaml
kubectl apply
-f
varnish-tea.yaml
kubectl apply
-f
adm-secret-coffee.yaml
kubectl apply
-f
admin-svc-coffee.yaml
kubectl apply
-f
nodeport-coffee.yaml
kubectl apply
-f
varnish-coffee.yaml
...
...
examples/architectures/multi-varnish-ns/nodeport-coffee.yaml
View file @
36326a91
...
...
@@ -10,14 +10,14 @@ metadata:
spec
:
type
:
NodePort
ports
:
-
port
:
6081
targetPort
:
6081
protocol
:
TCP
name
:
varnishadm
-
port
:
80
targetPort
:
80
protocol
:
TCP
name
:
http
-
port
:
443
targetPort
:
443
protocol
:
TCP
name
:
tls
selector
:
app
:
varnish-ingress
ingress
:
coffee
...
...
examples/architectures/multi-varnish-ns/nodeport-tea.yaml
View file @
36326a91
...
...
@@ -10,14 +10,14 @@ metadata:
spec
:
type
:
NodePort
ports
:
-
port
:
6081
targetPort
:
6081
protocol
:
TCP
name
:
varnishadm
-
port
:
80
targetPort
:
80
protocol
:
TCP
name
:
http
-
port
:
443
targetPort
:
443
protocol
:
TCP
name
:
tls
selector
:
app
:
varnish-ingress
ingress
:
tea
...
...
examples/architectures/multi-varnish-ns/tea-ingress.yaml
View file @
36326a91
...
...
@@ -5,7 +5,7 @@ metadata:
namespace
:
cafe
annotations
:
kubernetes.io/ingress.class
:
"
varnish"
ingress.varnish-cache.org/varnish-svc
:
"
varnish-tea"
ingress.varnish-cache.org/varnish-svc
:
"
varnish-tea
-admin
"
spec
:
rules
:
-
host
:
tea.example.com
...
...
examples/architectures/multi-varnish-ns/tls-cert-secret.yaml
0 → 100644
View file @
36326a91
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 @
36326a91
...
...
@@ -8,14 +8,20 @@ kubectl delete -f varnish-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
varnish-tea.yaml
kubectl delete
-f
nodeport-tea.yaml
kubectl delete
-f
admin-svc-tea.yaml
kubectl delete
-f
adm-secret-tea.yaml
kubectl apply
-f
tls-cert-secret.yaml
kubectl delete
-f
tea.yaml
kubectl delete
-f
coffee.yaml
...
...
examples/architectures/multi-varnish-ns/varnish-coffee.yaml
View file @
36326a91
...
...
@@ -15,6 +15,8 @@ spec:
app
:
varnish-ingress
ingress
:
coffee
spec
:
securityContext
:
fsGroup
:
998
containers
:
-
image
:
varnish-ingress/varnish
imagePullPolicy
:
IfNotPresent
...
...
@@ -24,14 +26,14 @@ spec:
containerPort
:
80
-
name
:
k8s
containerPort
:
8080
-
name
:
varnishadm
containerPort
:
6081
volumeMounts
:
-
name
:
adm-secret
mountPath
:
"
/var/run/varnish"
readOnly
:
true
-
name
:
varnish-home
mountPath
:
"
/var/run/varnish-home"
-
name
:
offload
mountPath
:
"
/var/run/offload"
livenessProbe
:
exec
:
command
:
...
...
@@ -46,6 +48,37 @@ spec:
args
:
-
-n
-
/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
:
-
name
:
adm-secret
secret
:
...
...
@@ -53,6 +86,12 @@ spec:
items
:
-
key
:
admin
path
:
_.secret
-
name
:
tls-cert
secret
:
secretName
:
tls-cert
defaultMode
:
0440
-
name
:
varnish-home
emptyDir
:
medium
:
"
Memory"
-
name
:
offload
emptyDir
:
{}
examples/architectures/multi-varnish-ns/varnish-tea.yaml
View file @
36326a91
...
...
@@ -15,6 +15,8 @@ spec:
app
:
varnish-ingress
ingress
:
tea
spec
:
securityContext
:
fsGroup
:
998
containers
:
-
image
:
varnish-ingress/varnish
imagePullPolicy
:
IfNotPresent
...
...
@@ -24,14 +26,14 @@ spec:
containerPort
:
80
-
name
:
k8s
containerPort
:
8080
-
name
:
varnishadm
containerPort
:
6081
volumeMounts
:
-
name
:
adm-secret
mountPath
:
"
/var/run/varnish"
readOnly
:
true
-
name
:
varnish-home
mountPath
:
"
/var/run/varnish-home"
-
name
:
offload
mountPath
:
"
/var/run/offload"
livenessProbe
:
exec
:
command
:
...
...
@@ -46,6 +48,37 @@ spec:
args
:
-
-n
-
/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
:
-
name
:
adm-secret
secret
:
...
...
@@ -53,6 +86,12 @@ spec:
items
:
-
key
:
admin
path
:
_.secret
-
name
:
tls-cert
secret
:
secretName
:
tls-cert
defaultMode
:
0440
-
name
:
varnish-home
emptyDir
:
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