Skip to content

Commit e700858

Browse files
authored
Adding vanity route + cert for LodeStar backend and Resource Dispatcher (#449)
* Adding vanity route + cert for LodeStar backend * Adding route and cert for resource dispatcher * Renaming dispatcher to resource-dispatcher for consistency
1 parent ca2d965 commit e700858

13 files changed

+68
-2
lines changed

bootstrap/core/lodestar-apps/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ resources:
1515
- lodestar-hosting.yaml
1616
- lodestar-participants.yaml
1717
- lodestar-frontend-vanity-route.yaml
18+
- lodestar-backend-vanity-route.yaml
1819
- lodestar-frontend-cert.yaml
20+
- lodestar-backend-cert.yaml
1921
- lodestar-config.yaml
2022
patches:
2123
- patch: |-
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: cert-manager.io/v1
2+
kind: Certificate
3+
metadata:
4+
name: lodestar-be-cert
5+
namespace: lodestar-frontend
6+
spec:
7+
secretName: lodestar-be-cert
8+
issuerRef:
9+
name: letsencrypt-production
10+
kind: ClusterIssuer
11+
dnsNames:
12+
- backend.lodestar.example.com
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: route.openshift.io/v1
2+
kind: Route
3+
metadata:
4+
annotations:
5+
cert-utils-operator.redhat-cop.io/certs-from-secret: "lodestar-be-cert"
6+
labels:
7+
app: lodestar-backend
8+
name: lodestar-backend-vanity
9+
namespace: lodestar-frontend
10+
spec:
11+
tls:
12+
insecureEdgeTerminationPolicy: Redirect
13+
termination: edge
14+
port:
15+
targetPort: 8080-tcp
16+
to:
17+
kind: Service
18+
name: lodestar-backend
19+
weight: 100
20+
wildcardPolicy: None

bootstrap/core/tools/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
bases:
44
- argocd
5-
- dispatcher
5+
- resource-dispatcher
66
- babylon
77
resources:
88
- lodestar-engagements-project.yaml
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

bootstrap/core/tools/dispatcher/kustomization.yaml renamed to bootstrap/core/tools/resource-dispatcher/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
44
- resource-dispatcher.yaml
5+
- resource-dispatcher-cert.yaml
6+
- resource-dispatcher-vanity-route.yaml
57
configMapGenerator:
68
- name: resource-dispatcher-config
79
namespace: openshift-gitops
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: cert-manager.io/v1
2+
kind: Certificate
3+
metadata:
4+
name: resource-dispatcher-cert
5+
namespace: lodestar-argo-cd
6+
spec:
7+
secretName: resource-dispatcher-cert
8+
issuerRef:
9+
name: letsencrypt-production
10+
kind: ClusterIssuer
11+
dnsNames:
12+
- resource-dispatcher.lodestar.example.com

0 commit comments

Comments
 (0)