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
6951ff96
Commit
6951ff96
authored
Aug 28, 2020
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
viking-test-app chart supports ExternalName Services.
parent
e165d135
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
deployment.yaml
charts/viking-test-app/templates/deployment.yaml
+12
-1
service.yaml
charts/viking-test-app/templates/service.yaml
+7
-0
values.yaml
charts/viking-test-app/values.yaml
+5
-0
No files found.
charts/viking-test-app/templates/deployment.yaml
View file @
6951ff96
{{
range $name
,
$app
:
= .Values.apps
}}
{{
- if not $app.externalName -
}}
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
...
...
@@ -6,6 +7,9 @@ metadata:
app.kubernetes.io/name
:
{{
$name
}}
app.kubernetes.io/component
:
ingressBackend
{{
- include "viking-ingress.labels" $ | nindent 4
}}
{{
- with $app.labels
}}
{{
- toYaml . | nindent 4
}}
{{
- end
}}
name
:
{{
$name
}}
spec
:
replicas
:
{{
default "1" $app.replicas
}}
...
...
@@ -13,12 +17,18 @@ spec:
matchLabels
:
app.kubernetes.io/name
:
{{
$name
}}
app.kubernetes.io/instance
:
{{
$.Release.Name
}}
{{
- with $app.labels
}}
{{
- toYaml . | nindent 6
}}
{{
- end
}}
template
:
metadata
:
labels
:
app.kubernetes.io/name
:
{{
$name
}}
app.kubernetes.io/component
:
ingressBackend
{{
- include "viking-ingress.labels" $ | nindent 8
}}
{{
- with $app.labels
}}
{{
- toYaml . | nindent 8
}}
{{
- end
}}
spec
:
containers
:
-
name
:
{{
$name
}}
...
...
@@ -26,4 +36,5 @@ spec:
ports
:
-
containerPort
:
{{
default "80" $app.containerPort
}}
---
{{
end
}}
{{
- end
}}
{{
- end
}}
charts/viking-test-app/templates/service.yaml
View file @
6951ff96
...
...
@@ -8,6 +8,10 @@ metadata:
{{
- include "viking-ingress.labels" $ | nindent 4
}}
name
:
{{
$name
}}
-svc
spec
:
{{
- if $app.externalName
}}
type
:
ExternalName
externalName
:
{{
$app.externalName
}}
{{
- end
}}
ports
:
-
port
:
{{
default "80" $app.servicePort
}}
targetPort
:
{{
default "80" $app.targetPort
}}
...
...
@@ -17,5 +21,8 @@ spec:
app.kubernetes.io/name
:
{{
$name
}}
app.kubernetes.io/component
:
ingressBackend
app.kubernetes.io/instance
:
{{
$.Release.Name
}}
{{
- with $app.labels
}}
{{
- toYaml . | nindent 4
}}
{{
- end
}}
---
{{
end
}}
charts/viking-test-app/values.yaml
View file @
6951ff96
...
...
@@ -16,6 +16,11 @@ apps: {}
# If non-empty, contains a BackendConfig for this app.
# config: {}
# If non-empty, then a Service of type ExternalName is
# generated, with the value as the external name. No
# Deployment is generated.
# externalName: ""
ingress
:
# Must match the Ingress class observed by the controller.
class
:
"
varnish"
...
...
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