-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add default annotations and possibility to use same ingress for http-… #2106
base: v2.x
Are you sure you want to change the base?
Changes from all commits
b553ab3
fed1c53
bf7af50
1740166
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{{- if and .Values.frost.http.ingress.enabled .Values.frost.mqtt.ingress.useSameAsHttp -}} | ||
{{- $tier := "master" -}} | ||
{{- $fullName := include "frost-server.fullName" (merge (dict "tier" $tier) .) -}} | ||
{{- $defaultRewriteAnnotations := include "frost-server.ingress.rewriteAnnotation" (dict "scope" .Values.frost.http "type" $tier "fullName" $fullName "path" ( include "frost-server.http.serviceSubPath" . ) ) -}} | ||
{{- /*BEGIN Predefine empty variables*/ -}} | ||
{{- $annotations := dict -}} | ||
{{- /*END Predefine empty variables*/ -}} | ||
{{- if and .Values.frost.http.ingress.ingressClassName (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} | ||
{{- if not (hasKey .Values.frost.http.ingress.annotations "kubernetes.io/ingress.class") }} | ||
{{- $_ := set .Values.frost.http.ingress.annotations "kubernetes.io/ingress.class" .Values.frost.http.ingress.ingressClassName}} | ||
{{- end }} | ||
{{- end }} | ||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} | ||
apiVersion: networking.k8s.io/v1 | ||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} | ||
apiVersion: networking.k8s.io/v1beta1 | ||
{{- else -}} | ||
apiVersion: extensions/v1beta1 | ||
{{- end }} | ||
kind: Ingress | ||
metadata: | ||
name: {{ $fullName }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- $annotations = include "common.tplvalues.merge" ( dict "values" ( list .Values.frost.http.ingress.annotations $defaultRewriteAnnotations ) "context" . ) }} | ||
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }} | ||
nginx.org/mergeable-ingress-type: "master" | ||
labels: | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
helm.sh/chart: {{ include "frost-server.chart" . }} | ||
app: {{ include "frost-server.name" . }} | ||
component: {{ $tier }} | ||
spec: | ||
{{- if and .Values.frost.http.ingress.ingressClassName (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }} | ||
ingressClassName: {{ .Values.frost.http.ingress.ingressClassName }} | ||
{{- end }} | ||
{{- if .Values.frost.http.ingress.tls.enabled }} | ||
tls: | ||
- hosts: | ||
- {{ include "frost-server.http.serviceHost" . }} | ||
secretName: {{ .Values.frost.http.ingress.tls.secretName }} | ||
{{- end }} | ||
rules: | ||
- host: {{ include "frost-server.http.serviceHost" . }} | ||
{{- end -}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,7 +75,7 @@ frost: | |
enable: | ||
|
||
auth: | ||
provider: | ||
provider: | ||
allowAnonymousRead: false | ||
authenticateOnly: | ||
role: | ||
|
@@ -126,18 +126,19 @@ frost: | |
nodePort: | ||
servicePort: 80 | ||
ingress: | ||
enabled: true | ||
enabled: true | ||
## Set a specific ingress-class for the ingress ([default] not set) | ||
# className: nginx-hamel | ||
## Defines the type of ingress-Controller in use (nginx [default], agic ) | ||
# ingressProvider: agic | ||
ingressClassName: regioit-private-ingress | ||
## Defines the type of ingress-Controller in use (kubernetes-nginx [default], nginx-nginx, agic, none ) | ||
## Use "none" to disable render predefined annotations for this service | ||
ingressProvider: "nginx-nginx" | ||
## Additional annotations | ||
# annotations: | ||
# cert-manager.io/cluster-issuer: letsencrypt | ||
# cert-manager.io/issue-temporary-certificate: "true" | ||
annotations: | ||
cert-manager.io/cluster-issuer: letsencrypt | ||
cert-manager.io/issue-temporary-certificate: "true" | ||
tls: | ||
enabled: false | ||
secretName: [] | ||
enabled: true | ||
secretName: hamel-test-frost-server-http-tls | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That looks like an internal test name, is that OK, or should it be "anonymised"? |
||
|
||
# FROST-Server HTTP deployment resource option. An empty resources field will default to the limits of the namespace. | ||
resources: | ||
|
@@ -160,8 +161,8 @@ frost: | |
securityContext: | ||
|
||
# FROST-Server HTTP business settings | ||
serviceHost: frost-server | ||
urlSubPath: "" | ||
serviceHost: frost.hameltest.intern.cnaphci.regioit.cloud | ||
urlSubPath: "meinFrost" | ||
Comment on lines
+164
to
+165
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That looks like an internal test name, is that OK, or should it be "anonymised"? |
||
serviceProtocol: http | ||
servicePort: | ||
defaultCount: false | ||
|
@@ -245,23 +246,25 @@ frost: | |
message_size: 8092 | ||
|
||
ingress: | ||
enabled: true | ||
enabled: true | ||
## Set to true to use the same ingress as the HTTP service, otherwise set to false | ||
## no dedicated ingress will be created for the MQTT service | ||
useSameAsHttp: false | ||
## Set a specific ingress-class for the ingress ([default] not set) | ||
# className: azure-application-gateway | ||
## Defines the type of ingress-Controller in use (nginx [default], agic or traefik) | ||
# ingressProvider: agic | ||
ingressClassName: regioit-private-ingress | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That looks like an internal test name, is that OK, or should it be "anonymised"? |
||
## Defines the type of ingress-Controller in use (kubernetes-nginx [default], nginx-nginx, agic, none) | ||
## Use "none" to disable render predefined annotations for this service | ||
ingressProvider: "nginx-nginx" | ||
## Additional annotations | ||
annotations: | ||
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600" | ||
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600" | ||
# cert-manager.io/cluster-issuer: letsencrypt | ||
# cert-manager.io/issue-temporary-certificate: "true" | ||
cert-manager.io/cluster-issuer: letsencrypt | ||
cert-manager.io/issue-temporary-certificate: "true" | ||
tls: | ||
enabled: false | ||
secretName: [] | ||
enabled: true | ||
secretName: hamel-test-frost-server-mqtt-tls | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That looks like an internal test name, is that OK, or should it be "anonymised"? |
||
|
||
# FROST-Server MQTT business settings | ||
serviceHost: "" # default URI is the same then frost.http.serviceHost" | ||
serviceHost: "mqtt.hameltest.intern.cnaphci.regioit.cloud" # default URI is the same then frost.http.serviceHost" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That looks like an internal test name, is that OK, or should it be "anonymised"? |
||
urlSubPath: "" # default is mqtt | ||
serviceProtocol: http | ||
qos: 2 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks like an internal test name, is that OK, or should it be "anonymised"?