Skip to content
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

ui: add support NodePort and Loadbalancer service types #188

Merged
merged 4 commits into from Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/rucio-ui/Chart.yaml
@@ -1,5 +1,5 @@
name: rucio-ui
version: 34.0.1
version: 34.0.2
apiVersion: v1
description: A Helm chart to deploy webui servers for Rucio
keywords:
Expand Down
28 changes: 20 additions & 8 deletions charts/rucio-ui/templates/service.yaml
Expand Up @@ -13,16 +13,28 @@ metadata:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
type: {{ $.Values.service.type }}
type: {{ .Values.service.type }}
ports:
- port: {{ ternary 443 80 $.Values.service.useSSL }}
targetPort: {{ ternary "https" "http" $.Values.service.useSSL }}
protocol: TCP
{{- if $.Values.service.nodePort }}
nodePort: {{ $.Values.service.nodePort }}
{{- end }}
name: {{ ternary "https" "http" $.Values.service.useSSL }}
- port: {{ .Values.service.port }}
targetPort: {{ .Values.service.targetPort }}
protocol: {{ .Values.service.protocol }}
name: {{ .Values.service.name }}
selector:
app: {{ template "rucio.name" . }}
release: {{ .Release.Name }}
{{- if .Values.service.nodePort }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
{{- if .Values.service.loadBalancerClass }}
loadBalancerClass: {{ .Values.service.loadBalancerClass }}
{{- end }}
{{- if .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
{{- if .Values.service.allocateLoadBalancerNodePorts }}
allocateLoadBalancerNodePorts: {{ .Values.service.allocateLoadBalancerNodePorts }}
{{- end }}
{{- end }}
27 changes: 20 additions & 7 deletions charts/rucio-ui/values.yaml
Expand Up @@ -11,13 +11,26 @@ useDeprecatedImplicitSecrets: true
exposeErrorLogs: true

service:
type: NodePort
# Run the webui server on port 443 instead of 80 and accept X509 certificates and proxies
useSSL: true
port: 443
targetPort: https
nodePort: 30734
annotations: []
# Enable useSSL and run the webui server on port 443 instead of 80 in order to
# accept X509 certificates and proxies for authentication
useSSL: false
# Type of service to create, supports NodePort, LoadBalancer, and ClusterIP
type: ClusterIP
port: 80
targetPort: 80
protocol: TCP
name: http
# if service type is NodePort, set the nodePort value
# nodePort: 30734
annotations:
{}
# loadbalancer.openstack.org/network-id: "<id>"
# service.beta.kubernetes.io/openstack-internal-load-balancer: "true"
# loadbalancer.openstack.org/cascade-delete: "false"
loadBalancerIP: null
loadBalancerClass: null
externalTrafficPolicy: null
allocateLoadBalancerNodePorts: true

image:
repository: rucio/rucio-ui
Expand Down