Skip to content

Commit

Permalink
Merge pull request #752 from wunderio/feature/service-config
Browse files Browse the repository at this point in the history
ssh and broker service settings
  • Loading branch information
tobybellwood authored Mar 3, 2025
2 parents 6d19a73 + 91d0f2a commit eb3cb16
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/lagoon-core/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ annotations:
description: update lagoon-opensearch-sync image to v0.8.3
- kind: changed
description: update ssh-portal-api and ssh-token options
- kind: changed
description: ssh, ssh-token and broker service configuration options
11 changes: 11 additions & 0 deletions charts/lagoon-core/templates/broker.service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,19 @@ metadata:
name: {{ include "lagoon-core.broker.fullname" . }}-amqp-ext
labels:
{{- include "lagoon-core.broker.labels" . | nindent 4 }}
{{- with .Values.broker.service.amqpExternal.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.broker.service.amqpExternal.type }}
{{- with .Values.broker.service.amqpExternal.externalTrafficPolicy }}
externalTrafficPolicy: {{ . }}
{{- end }}
{{- with .Values.broker.service.amqpExternal.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{- toYaml . | nindent 2 }}
{{- end }}
ports:
- port: {{ .Values.broker.service.amqpExternal.port }}
targetPort: amqp
Expand Down
11 changes: 11 additions & 0 deletions charts/lagoon-core/templates/ssh-token.service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,19 @@ metadata:
name: {{ include "lagoon-core.sshToken.fullname" . }}
labels:
{{- include "lagoon-core.sshToken.labels" . | nindent 4 }}
{{- with .Values.sshToken.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.sshToken.service.type }}
{{- with .Values.sshToken.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ . }}
{{- end }}
{{- with .Values.sshToken.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{- toYaml . | nindent 2 }}
{{- end }}
ports:
- port: {{ .Values.sshToken.service.ports.sshserver }}
targetPort: sshserver
Expand Down
7 changes: 7 additions & 0 deletions charts/lagoon-core/templates/ssh.service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ metadata:
{{- end }}
spec:
type: {{ .Values.ssh.service.type }}
{{- with .Values.ssh.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ . }}
{{- end }}
{{- with .Values.ssh.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{- toYaml . | nindent 2 }}
{{- end }}
ports:
- port: {{ .Values.ssh.service.port }}
targetPort: ssh
Expand Down
8 changes: 8 additions & 0 deletions charts/lagoon-core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ broker:
enabled: false
type: LoadBalancer
port: 5672
annotations: {}
# externalTrafficPolicy: ""
# loadBalancerSourceRanges: []

serviceMonitor:
enabled: true
Expand Down Expand Up @@ -774,6 +777,8 @@ ssh:
type: ClusterIP
port: 2020
annotations: {}
# externalTrafficPolicy: ""
# loadBalancerSourceRanges: []

autoscaling:
enabled: false
Expand Down Expand Up @@ -1072,6 +1077,9 @@ sshToken:

service:
type: LoadBalancer
annotations: {}
# externalTrafficPolicy: ""
# loadBalancerSourceRanges: []
ports:
sshserver: 22

Expand Down
2 changes: 2 additions & 0 deletions charts/lagoon-remote/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ annotations:
description: update ssh-portal image to v0.42.0
- kind: fixed
description: fix storage-calculator role
- kind: changed
description: ssh-portal service configuration options
7 changes: 7 additions & 0 deletions charts/lagoon-remote/templates/ssh-portal.service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ metadata:
{{- end }}
spec:
type: {{ .Values.sshPortal.service.type }}
{{- with .Values.sshPortal.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ . }}
{{- end }}
{{- with .Values.sshPortal.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{- toYaml . | nindent 2 }}
{{- end }}
ports:
- port: {{ .Values.sshPortal.service.ports.sshserver }}
targetPort: sshserver
Expand Down
2 changes: 2 additions & 0 deletions charts/lagoon-remote/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ sshPortal:
ports:
sshserver: 22
annotations: {}
# externalTrafficPolicy: ""
# loadBalancerSourceRanges: []

metricsService:
type: ClusterIP
Expand Down

0 comments on commit eb3cb16

Please sign in to comment.