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

Break horizon resources into separate files #102

Merged
merged 2 commits into from
Oct 23, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions charts/horizon/templates/core-configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.ingest.enabled }}
---
apiVersion: v1
kind: ConfigMap
Expand All @@ -11,3 +12,4 @@ metadata:
heritage: {{ .Release.Service }}
data:
stellar-core.cfg: | {{ include "core.config" . | nindent 4 }}
{{- end }}
21 changes: 21 additions & 0 deletions charts/horizon/templates/ingest-core-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{- if .Values.ingest.enabled }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "common.fullname" . }}-ingest-core
namespace: {{ .Release.Namespace }}
labels:
app: {{ include "common.fullname" . }}-ingest-core
chart: {{ include "common.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
type: ClusterIP
ports:
- name: core
port: 11626
targetPort: 11626
selector:
app: {{ include "common.fullname" . }}-ingest
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -28,33 +28,3 @@ spec:
port:
number: 80
{{- end }}
{{- if and .Values.web.enabled .Values.web.ingress.enabled }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "common.fullname" . }}-web
namespace: {{ .Release.Namespace }}
{{- if .Values.web.ingress.annotations }}
annotations:
{{- range $key, $value := .Values.web.ingress.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
tls:
- secretName: {{ include "common.fullname" . }}-web-cert
hosts:
- {{ .Values.web.ingress.host }}
rules:
- host: {{ .Values.web.ingress.host }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ include "common.fullname" . }}-web
port:
number: 80
{{- end }}
21 changes: 21 additions & 0 deletions charts/horizon/templates/ingest-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{- if .Values.ingest.enabled }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "common.fullname" . }}-ingest
namespace: {{ .Release.Namespace }}
labels:
app: {{ include "common.fullname" . }}-ingest
chart: {{ include "common.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
type: ClusterIP
ports:
- name: horizon
port: 80
targetPort: {{ .Values.ingest.horizonConfig.port }}
selector:
app: {{ include "common.fullname" . }}-ingest
{{- end }}
38 changes: 0 additions & 38 deletions charts/horizon/templates/ingest-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,42 +102,4 @@ spec:
requests:
storage: {{ .Values.ingest.persistence.size | quote }}
{{- end }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "common.fullname" . }}-ingest-core
namespace: {{ .Release.Namespace }}
labels:
app: {{ include "common.fullname" . }}-ingest-core
chart: {{ include "common.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
type: ClusterIP
ports:
- name: core
port: 11626
targetPort: 11626
selector:
app: {{ include "common.fullname" . }}-ingest
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "common.fullname" . }}-ingest
namespace: {{ .Release.Namespace }}
labels:
app: {{ include "common.fullname" . }}-ingest
chart: {{ include "common.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
type: ClusterIP
ports:
- name: horizon
port: 80
targetPort: {{ .Values.ingest.horizonConfig.port }}
selector:
app: {{ include "common.fullname" . }}-ingest
{{- end }}
19 changes: 0 additions & 19 deletions charts/horizon/templates/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,4 @@ spec:
{{- if .Values.web.resources }}
resources: {{ toYaml .Values.web.resources | nindent 10 }}
{{- end }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "common.fullname" . }}-web
namespace: {{ .Release.Namespace }}
labels:
app: {{ include "common.fullname" . }}-web
chart: {{ include "common.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
type: ClusterIP
ports:
- name: core
port: 80
targetPort: {{ .Values.web.horizonConfig.port }}
selector:
app: {{ include "common.fullname" . }}-web
{{- end }}
30 changes: 30 additions & 0 deletions charts/horizon/templates/web-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{{- if and .Values.web.enabled .Values.web.ingress.enabled }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "common.fullname" . }}-web
namespace: {{ .Release.Namespace }}
{{- if .Values.web.ingress.annotations }}
annotations:
{{- range $key, $value := .Values.web.ingress.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
tls:
- secretName: {{ include "common.fullname" . }}-web-cert
hosts:
- {{ .Values.web.ingress.host }}
rules:
- host: {{ .Values.web.ingress.host }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ include "common.fullname" . }}-web
port:
number: 80
{{- end }}
21 changes: 21 additions & 0 deletions charts/horizon/templates/web-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{- if .Values.web.enabled }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "common.fullname" . }}-web
namespace: {{ .Release.Namespace }}
labels:
app: {{ include "common.fullname" . }}-web
chart: {{ include "common.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
type: ClusterIP
ports:
- name: core
port: 80
targetPort: {{ .Values.web.horizonConfig.port }}
selector:
app: {{ include "common.fullname" . }}-web
{{- end }}
Loading