Skip to content

Commit

Permalink
Adding the definition about the Service and Ingress kubernetes resour…
Browse files Browse the repository at this point in the history
…ce to expose backstage using the host: backstage.idpbuilder.cnoe.io.local

Signed-off-by: cmoulliard <[email protected]>
  • Loading branch information
cmoulliard committed Oct 17, 2023
1 parent 353407a commit 6fff8d2
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion pkg/apps/srv/backstage/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,49 @@ spec:
image: public.ecr.aws/cnoe-io/backstage:v0.0.3
imagePullPolicy: IfNotPresent
ports:
- name: http
- name: backend
containerPort: 7007
volumeMounts:
- mountPath: /app/config
name: backstage-config
readOnly: true
---
---
apiVersion: v1
kind: Service
metadata:
name: backstage
namespace: backstage
spec:
ports:
- name: http-backend
port: 7007
protocol: TCP
targetPort: backend
selector:
app: backstage
sessionAffinity: None
type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: backstage
namespace: backstage
spec:
ingressClassName: nginx
rules:
- host: backstage.idpbuilder.cnoe.io.local
http:
paths:
- backend:
service:
name: backstage
port:
number: 7007
path: /
pathType: Prefix
---
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down

0 comments on commit 6fff8d2

Please sign in to comment.