Skip to content
Snippets Groups Projects
Verified Commit 028c943c authored by Philipp S. Sommer's avatar Philipp S. Sommer
Browse files
parent 2ed45191
No related branches found
No related tags found
1 merge request!8implement routePort option and maintenance port
Pipeline #230188 passed
Showing
with 25 additions and 5 deletions
{
"template": "https://codebase.helmholtz.cloud/hcdc/software-templates/helm-chart-template.git",
"commit": "8cdfd6a1c5c6092e2653dc3c3c87fbd3d819403c",
"commit": "337f12c5ce63c87651a917b258365269e7318a0d",
"checkout": null,
"context": {
"cookiecutter": {
......@@ -33,6 +33,8 @@
"include_volume": "many",
"include_secret": "no",
"include_configmap": "no",
"include_workers": "no",
"include_cronjobs": "no",
"default_deployment_strategy": "rolling",
"service_port": "8080",
"service_target_port": "8080",
......@@ -48,6 +50,8 @@
"__include_volume": "many",
"__include_secret": "no",
"__include_configmap": "no",
"__include_workers": "no",
"__include_cronjobs": "no",
"__deployment_type": "DeploymentConfig",
"_extensions": [
"local_extensions.UnderlinedExtension"
......
......@@ -29,3 +29,4 @@
templates/*.license
templates/*/*.license
templates/*/*/*.license
templates/*/*/*/*.license
......@@ -13,6 +13,12 @@ spec:
affinity: {{- include "nginx.affinity" . | nindent 4 }}
containers:
- name: {{ .Values.baseName }}
{{- if .Values.command }}
command:
{{- range .Values.command }}
- {{ . | quote }}
{{- end }}
{{- end }}
image: ' '
ports:
- containerPort: 8080
......
......@@ -16,5 +16,5 @@ spec:
name: {{ .Values.baseName }}
weight: 100
port:
targetPort: '8080'
targetPort: {{ .Values.routePort | quote }}
wildcardPolicy: None
......@@ -13,9 +13,12 @@ metadata:
name: {{ .Values.baseName }}
spec:
ports:
- name: "8080"
- name: default
port: 8080
targetPort: 8080
- name: maintenance
port: 8081
targetPort: 8081
selector:
io.kompose.service: {{ .Values.baseName }}
{{- include "nginx.selectorLabels" . | nindent 4 }}
......@@ -17,6 +17,9 @@ global:
# the origin of the docker image to build
fromImage: null
# command is the command that the docker container shall run (has to be a list)
command: null
# secrets is a mapping of secret key to secret default. These values
# can be used to generate a secret that is used during the build.
buildSecrets: {}
......@@ -43,10 +46,13 @@ buildTriggers: []
# - imageChange: {}
# type: ImageChange
# the name for the route to access the application. If not set, we will use the
# baseName (see below)
# routeName is the name for the route to access the application. If not set, we
# will use the baseName (see below)
routeName: frontend
# routePort is the port of the service that the route should point at
routePort: 'default'
# the name for objects that are created with this chart
baseName: nginx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment