Skip to content

Commit ddab3ed

Browse files
committed
feat: add Backstage deployment config and Argo CD Application for serving the developer portal
1 parent 2979a25 commit ddab3ed

2 files changed

Lines changed: 155 additions & 0 deletions

File tree

backstage/app-config.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
app:
2+
title: Internal Developer Platform
3+
baseUrl: http://backstage.platform.example.com
4+
5+
backend:
6+
baseUrl: http://backstage.platform.example.com
7+
listen:
8+
port: 7007
9+
cors:
10+
origin: http://backstage.platform.example.com
11+
12+
organization:
13+
name: Platform Engineering
14+
15+
auth:
16+
environment: development
17+
providers:
18+
guest: {}
19+
20+
integrations:
21+
github:
22+
- host: github.com
23+
apps: []
24+
25+
catalog:
26+
import:
27+
entityFilename: catalog-info.yaml
28+
locations:
29+
- type: url
30+
target: https://github.com/tukue/simpleAppInfraCode/blob/main/catalog-info.yaml
31+
- type: url
32+
target: https://github.com/tukue/simpleAppInfraCode/blob/main/standardized-path/app/catalog-info.yaml
33+
- type: url
34+
target: https://github.com/tukue/simpleAppInfraCode/blob/main/platform/apps/simple-app/catalog-info.yaml
35+
- type: url
36+
target: https://github.com/tukue/simpleAppInfraCode/blob/main/platform/apps/app-b/catalog-info.yaml
37+
38+
scaffolder:
39+
locations:
40+
- type: url
41+
target: https://github.com/tukue/simpleAppInfraCode/blob/main/backstage/templates/new-tenant-app/template.yaml
42+
43+
kubernetes:
44+
serviceLocatorMethod:
45+
type: multiTenant
46+
clusterLocatorMethods:
47+
- type: config
48+
clusters:
49+
- name: in-cluster
50+
url: https://kubernetes.default.svc
51+
authProvider: serviceAccount
52+
skipTLSVerify: true
53+
skipMetricsLookup: true

platform/addons/backstage.yaml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: backstage
5+
namespace: argocd
6+
spec:
7+
project: platform
8+
source:
9+
repoURL: https://backstage.github.io/charts
10+
chart: backstage
11+
targetRevision: 2.x
12+
helm:
13+
values: |
14+
backend:
15+
image:
16+
repository: backstage/backstage
17+
tag: latest
18+
resources:
19+
requests:
20+
cpu: 100m
21+
memory: 256Mi
22+
limits:
23+
cpu: 250m
24+
memory: 512Mi
25+
26+
service:
27+
type: ClusterIP
28+
port: 80
29+
30+
ingress:
31+
enabled: true
32+
className: nginx
33+
annotations:
34+
nginx.ingress.kubernetes.io/ssl-redirect: "false"
35+
hosts:
36+
- host: backstage.platform.example.com
37+
paths:
38+
- path: /
39+
pathType: Prefix
40+
41+
appConfig:
42+
app:
43+
title: Internal Developer Platform
44+
baseUrl: http://backstage.platform.example.com
45+
backend:
46+
baseUrl: http://backstage.platform.example.com
47+
listen:
48+
port: 7007
49+
cors:
50+
origin: http://backstage.platform.example.com
51+
organization:
52+
name: Platform Engineering
53+
54+
auth:
55+
environment: development
56+
providers:
57+
guest: {}
58+
59+
integrations:
60+
github:
61+
- host: github.com
62+
apps: []
63+
64+
catalog:
65+
import:
66+
entityFilename: catalog-info.yaml
67+
locations:
68+
- type: url
69+
target: https://github.com/tukue/simpleAppInfraCode/blob/main/catalog-info.yaml
70+
- type: url
71+
target: https://github.com/tukue/simpleAppInfraCode/blob/main/standardized-path/app/catalog-info.yaml
72+
- type: url
73+
target: https://github.com/tukue/simpleAppInfraCode/blob/main/platform/apps/simple-app/catalog-info.yaml
74+
- type: url
75+
target: https://github.com/tukue/simpleAppInfraCode/blob/main/platform/apps/app-b/catalog-info.yaml
76+
77+
scaffolder:
78+
locations:
79+
- type: url
80+
target: https://github.com/tukue/simpleAppInfraCode/blob/main/backstage/templates/new-tenant-app/template.yaml
81+
82+
kubernetes:
83+
serviceLocatorMethod:
84+
type: multiTenant
85+
clusterLocatorMethods:
86+
- type: config
87+
clusters:
88+
- name: in-cluster
89+
url: https://kubernetes.default.svc
90+
authProvider: serviceAccount
91+
skipTLSVerify: true
92+
skipMetricsLookup: true
93+
94+
destination:
95+
server: https://kubernetes.default.svc
96+
namespace: backstage
97+
syncPolicy:
98+
automated:
99+
prune: true
100+
selfHeal: true
101+
syncOptions:
102+
- CreateNamespace=true

0 commit comments

Comments
 (0)