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
beb79350
Commit
beb79350
authored
Apr 16, 2020
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the namespace example to work with new deployments for TLS.
parent
90be6f46
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
2 deletions
+56
-2
adm-secret.yaml
examples/namespace/adm-secret.yaml
+1
-0
deploy.sh
examples/namespace/deploy.sh
+2
-0
tls-cert-secret.yaml
examples/namespace/tls-cert-secret.yaml
+8
-0
undeploy.sh
examples/namespace/undeploy.sh
+2
-0
varnish.yaml
examples/namespace/varnish.yaml
+43
-2
No files found.
examples/namespace/adm-secret.yaml
View file @
beb79350
...
...
@@ -8,3 +8,4 @@ metadata:
type
:
Opaque
data
:
admin
:
XGASQn0dd/oEsWh5WMXUpmKAKNZYnQGsHSmO/nHkv1w=
dataplaneapi
:
RnJldkhva0JpbAo=
examples/namespace/deploy.sh
View file @
beb79350
...
...
@@ -6,6 +6,8 @@ kubectl apply -f rbac.yaml
kubectl apply
-f
adm-secret.yaml
kubectl apply
-f
tls-cert-secret.yaml
kubectl apply
-f
varnish.yaml
kubectl apply
-f
nodeport.yaml
...
...
examples/namespace/tls-cert-secret.yaml
0 → 100644
View file @
beb79350
apiVersion
:
v1
kind
:
Secret
metadata
:
namespace
:
varnish-ingress
name
:
tls-cert
labels
:
app
:
varnish-ingress
type
:
Opaque
examples/namespace/undeploy.sh
View file @
beb79350
...
...
@@ -10,6 +10,8 @@ kubectl delete -f nodeport.yaml
kubectl delete
-f
varnish.yaml
kubectl delete
-f
tls-cert-secret.yaml
kubectl delete
-f
adm-secret.yaml
kubectl delete
-f
rbac.yaml
...
...
examples/namespace/varnish.yaml
View file @
beb79350
...
...
@@ -13,6 +13,8 @@ spec:
labels
:
app
:
varnish-ingress
spec
:
securityContext
:
fsGroup
:
998
containers
:
-
image
:
varnish-ingress/varnish
imagePullPolicy
:
IfNotPresent
...
...
@@ -22,14 +24,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
:
...
...
@@ -44,6 +46,39 @@ 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
-
name
:
dataplane
containerPort
:
5555
volumeMounts
:
-
name
:
tls-cert
mountPath
:
"
/etc/ssl/private"
readOnly
:
true
-
name
:
offload
mountPath
:
"
/var/run/offload"
env
:
-
name
:
SECRET_DATAPLANEAPI
valueFrom
:
secretKeyRef
:
name
:
adm-secret
key
:
dataplaneapi
livenessProbe
:
exec
:
command
:
-
/usr/bin/pgrep
-
-P
-
"
0"
-
haproxy
readinessProbe
:
httpGet
:
path
:
/healthz
port
:
k8s
volumes
:
-
name
:
adm-secret
secret
:
...
...
@@ -51,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