mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-14 10:24:24 -05:00
968cdc1a38
* cli: move internal packages Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * cli: fix buildfiles Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * bazel: fix exclude dir Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * cli: move back libraries that will not be used by TF provider Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> --------- Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
58 lines
1.9 KiB
YAML
58 lines
1.9 KiB
YAML
{{- if .Values.ingressController.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ .Values.ingressController.service.name }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
cilium.io/ingress: "true"
|
|
{{- if .Values.ingressController.service.labels }}
|
|
{{- toYaml .Values.ingressController.service.labels | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.ingressController.service.annotations }}
|
|
annotations:
|
|
{{- toYaml .Values.ingressController.service.annotations | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
protocol: TCP
|
|
nodePort: {{ .Values.ingressController.service.insecureNodePort }}
|
|
- name: https
|
|
port: 443
|
|
protocol: TCP
|
|
nodePort: {{ .Values.ingressController.service.secureNodePort }}
|
|
type: {{ .Values.ingressController.service.type }}
|
|
{{- if semverCompare ">=1.24-0" .Capabilities.KubeVersion.Version -}}
|
|
{{- if .Values.ingressController.service.loadBalancerClass }}
|
|
loadBalancerClass: {{ .Values.ingressController.service.loadBalancerClass }}
|
|
{{- end }}
|
|
{{- if (not (kindIs "invalid" .Values.ingressController.service.allocateLoadBalancerNodePorts)) }}
|
|
allocateLoadBalancerNodePorts: {{ .Values.ingressController.service.allocateLoadBalancerNodePorts }}
|
|
{{- end }}
|
|
{{- end -}}
|
|
{{- if .Values.ingressController.service.loadBalancerIP }}
|
|
loadBalancerIP: {{ .Values.ingressController.service.loadBalancerIP }}
|
|
{{- end }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Endpoints
|
|
metadata:
|
|
name: {{ .Values.ingressController.service.name }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- if .Values.ingressController.service.labels }}
|
|
labels:
|
|
{{- toYaml .Values.ingressController.service.labels | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.ingressController.service.annotations }}
|
|
annotations:
|
|
{{- toYaml .Values.ingressController.service.annotations | nindent 4 }}
|
|
{{- end }}
|
|
subsets:
|
|
- addresses:
|
|
- ip: "192.192.192.192"
|
|
ports:
|
|
- port: 9999
|
|
{{- end }}
|