remove deployment out of README and fix a typo

This commit is contained in:
Chanwit Kaewkasi
2020-06-01 19:51:25 +07:00
parent a676da3a6b
commit 67d62c3427
+1 -84
View File
@@ -15,7 +15,7 @@ It is only meant for local development, and the setup for it can be found inside
## Use GitOps-API backend with Backstage
The backend of this plugin is written in Goland and its source code is available [here](https://github.com/chanwit/gitops-api) as a separate GitHub repository.
The backend of this plugin is written in Golang and its source code is available [here](https://github.com/chanwit/gitops-api) as a separate GitHub repository.
The binary of this plugin is available as a ready-to-use Docker image, [https://hub.docker.com/chanwit/gitops-api](https://hub.docker.com/chanwit/gitops-api).
To start using GitOps with Backstage, you have to start the backend using the following command:
@@ -24,86 +24,3 @@ $ docker run -d --init -p 3008:8080 chanwit/gitops-api
```
Please note that this plugin requires the 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
```