Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chanwit/gitops-api
GitOps-API Backend for Backstage's GitOps plugin
https://github.com/chanwit/gitops-api
Last synced: 18 days ago
JSON representation
GitOps-API Backend for Backstage's GitOps plugin
- Host: GitHub
- URL: https://github.com/chanwit/gitops-api
- Owner: chanwit
- Created: 2020-05-29T11:08:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-05T02:24:46.000Z (over 1 year ago)
- Last Synced: 2024-10-11T00:31:17.933Z (about 1 month ago)
- Language: Go
- Size: 45.9 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gitops-api
This repository contains the source of the GitOps Backend for Backstage GitOps plugin ('gitops-profiles`).
## Running with Backstage
Using Docker is the easiest way.
```bash
docker run --init -p 3008:8080 chanwit/gitops-api
```
The plugin requires this backend to run on port 3008.## Deploy on Kubernetes
This section shows am example to deploy Backstage with this gitops profiles plugin and its GitOps-API backend on Kubernetes.
To try this example, simply copy-n-paste the following yaml to a file named `deployment.yaml` and then run `kubectl apply -f deployment.yaml`.```yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: backstage
name: backstage
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: backstage
template:
metadata:
labels:
app: backstage
spec:
containers:
- image: spotify/backstage:latest
imagePullPolicy: Always
name: backstage
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: gitops-api
name: gitops-api
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: gitops-api
template:
metadata:
labels:
app: gitops-api
spec:
containers:
- image: chanwit/gitops-api:latest
imagePullPolicy: Always
name: gitops-api
---
apiVersion: v1
kind: Service
metadata:
labels:
app: backstage
name: backstage
namespace: default
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: backstage
type: NodePort
---
apiVersion: v1
kind: Service
metadata:
labels:
app: gitops-api
name: gitops-api
namespace: default
spec:
ports:
- port: 3008
protocol: TCP
targetPort: 8080
selector:
app: gitops-api
type: ClusterIP
```