UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Verified Commit 223abb1e authored by Tunde Oladipupo's avatar Tunde Oladipupo
Browse files

updated ports to use values.yaml

parent d16e2cab
No related branches found
No related tags found
1 merge request!61Enable customization via values.yaml
Pipeline #871746 passed
......@@ -12,6 +12,6 @@ spec:
matchLabels:
{{- include "twistlock-console.selector" . | nindent 8 }}
portLevelMtls:
"8084":
"{{ .Values.console.ports.communication }}":
mode: PERMISSIVE
{{- end }}
\ No newline at end of file
......@@ -46,11 +46,11 @@ spec:
{{- toYaml .Values.resources | nindent 10 }}
ports:
- name: mgmt-https
containerPort: 8083
containerPort: {{ .Values.console.ports.managementHttps }}
- name: communication
containerPort: 8084
containerPort: {{ .Values.console.ports.communication }}
- name: mgmt-http
containerPort: 8081
containerPort: {{ .Values.console.ports.managementHttp }}
env:
- name: HIGH_AVAILABILITY_ENABLED
value: "false"
......
......@@ -7,9 +7,9 @@ metadata:
spec:
ports:
- name: tcp-communication-port
port: 8084
port: {{ .Values.console.ports.communication }}
- name: http-management-port-https
port: 8083
port: {{ .Values.console.ports.managementHttps }}
- name: http-mgmt-http
port: 8081
port: {{ .Values.console.ports.managementHttp }}
selector: {{- include "twistlock-console.selector" . | nindent 4 }}
\ No newline at end of file
......@@ -25,6 +25,6 @@ spec:
- route:
- destination:
port:
number: 8081
number: {{ .Values.console.ports.managementHttp }}
host: {{ template "twistlock-console.name" . }}.{{ .Release.Namespace }}.svc.cluster.local
{{- end }}
\ No newline at end of file
......@@ -6,7 +6,7 @@ metadata:
labels: {{- include "twistlock-init.labels" . | nindent 4 }}
stringData:
TWISTLOCK_CONSOLE_SERVICE: {{ template "twistlock-console.name" . }}
TWISTLOCK_CONSOLE_SERVICE_PORT_HTTP_MGMT_HTTP: "8081"
TWISTLOCK_CONSOLE_SERVICE_PORT_HTTP_MGMT_HTTP: "{{ .Values.console.ports.managementHttp }}"
{{- if .Values.console.license }}
TWISTLOCK_LICENSE: {{ .Values.console.license }}
{{- end }}
......
......@@ -22,5 +22,5 @@ spec:
{{- end }}
{{- end }}
ports:
- port: 8084
- port: {{ .Values.console.ports.communication }}
{{- end }}
......@@ -19,8 +19,8 @@ spec:
matchLabels:
{{- toYaml .Values.networkPolicies.ingressLabels | nindent 12}}
ports:
- port: 8081 #Default UI console Port
- port: {{ .Values.console.ports.managementHttp }} #Default UI console Port
protocol: TCP
- port: 8083 #TLS configured UI console Port
- port: {{ .Values.console.ports.managementHttps }} #TLS configured UI console Port
protocol: TCP
{{- end }}
......@@ -15,7 +15,7 @@ spec:
matchLabels:
app: prometheus
ports:
- port: 8081
- port: {{ .Values.console.ports.managementHttp }}
podSelector:
matchLabels: {{- include "twistlock-console.selector" . | nindent 6 }}
policyTypes:
......
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