Added a new NodePort service to EMS server for encrypting ports, and modified the ClusterIP service to use only internal ports
Change-Id: I9135e250c501ae4adac5a4961e581495aee81654
This commit is contained in:
parent
68c2b5b024
commit
6e5e02bd14
charts/nebulous-monitoring
28
charts/nebulous-monitoring/templates/service-public.yaml
Normal file
28
charts/nebulous-monitoring/templates/service-public.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
#
|
||||
# Copyright (C) 2017-2025 Institute of Communication and Computer Systems (imu.iccs.gr)
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public License, v2.0, unless
|
||||
# Esper library is used, in which case it is subject to the terms of General Public License v2.0.
|
||||
# If a copy of the MPL was not distributed with this file, you can obtain one at
|
||||
# https://www.mozilla.org/en-US/MPL/2.0/
|
||||
#
|
||||
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "nebulous-monitoring.fullname" . }}-public
|
||||
labels:
|
||||
{{- include "nebulous-monitoring.labels" . | nindent 4 }}-public
|
||||
spec:
|
||||
type: NodePort
|
||||
ports:
|
||||
{{- range .Values.ports }}
|
||||
{{- if .public }}
|
||||
- name: {{ .name }}
|
||||
port: {{ .containerPort }}
|
||||
targetPort: {{ .containerPort }}
|
||||
protocol: {{ .protocol }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
selector:
|
||||
{{- include "nebulous-monitoring.selectorLabels" . | nindent 4 }}-public
|
@ -17,10 +17,12 @@ spec:
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
{{- range .Values.ports }}
|
||||
{{- if not .public }}
|
||||
- name: {{ .name }}
|
||||
port: {{ .containerPort }}
|
||||
targetPort: {{ .containerPort }}
|
||||
protocol: {{ .protocol }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
selector:
|
||||
{{- include "nebulous-monitoring.selectorLabels" . | nindent 4 }}
|
||||
|
@ -94,15 +94,19 @@ ports:
|
||||
- name: http
|
||||
containerPort: 8111
|
||||
protocol: TCP
|
||||
public: true
|
||||
- name: openwire
|
||||
containerPort: 61616
|
||||
protocol: TCP
|
||||
public: false
|
||||
- name: openwire-tls
|
||||
containerPort: 61617
|
||||
protocol: TCP
|
||||
public: true
|
||||
- name: stomp
|
||||
containerPort: 61610
|
||||
protocol: TCP
|
||||
public: false
|
||||
|
||||
env:
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user