Day 21: Building Developer Portals with Backstage
Alex Parra
AWS Community Builder | Platform Engineer | Kubernetes | Gitops | DEVOPS | SRE
Welcome to Day 21 of the Zero to Platform Engineer in 30 Days challenge! ?? Today, we’re focusing on Internal Developer Portals (IDPs) and how to build one using Backstage, an open-source platform that enhances developer experience by centralizing documentation, services, APIs, and deployments.
Why Use a Developer Portal?
A well-structured Internal Developer Platform (IDP):
?? Key Features of Backstage:
What Is Backstage?
Backstage, originally developed by Spotify, is an open-source developer portal that helps engineering teams:
Hands-On: Setting Up Backstage
Step 1: Install Backstage Locally
npm install -g yarn
npx @backstage/create-app@latest
cd zero-to-platform-engineer
领英推荐
yarn dev
Step 2: Add Services to the Backstage Catalog
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: zero-to-platform-service
annotations:
github.com/project-slug: parraletz/zero-to-platform-engineer
spec:
type: service
owner: engineering
lifecycle: production
curl -X POST https://localhost:7000/api/catalog/entities -H "Content-Type: application/json" -d @catalog-info.yaml
Step 3: Integrate Kubernetes with Backstage
yarn add @backstage/plugin-kubernetes
kubernetes:
serviceLocatorMethod:
type: multiTenant
clusterLocatorMethods:
- type: config
clusters:
- name: my-cluster
url: https://my-kubernetes-api
authProvider: serviceAccount
yarn dev
Activity for Today
?? Check it out here:?Zero to Platform Engineer Repository
Feel free to clone the repo, experiment with the code, and even contribute if you’d like! ??