mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 14:49:07 +00:00
api-docs to api-reference
This commit is contained in:
parent
2bd0f53747
commit
4883c2a9b4
@ -20,9 +20,9 @@ jobs:
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy api-docs.
|
||||
# Build and deploy api-reference.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:5.0.$CI_PIPELINE_ID --push -f ./ApiDocs/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:release --push -f ./ApiDocs/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-reference:5.0.$CI_PIPELINE_ID --push -f ./ApiDocs/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-reference:release --push -f ./ApiDocs/Dockerfile .
|
||||
|
@ -20,9 +20,9 @@ jobs:
|
||||
|
||||
- run: npm run prerun
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy api-docs.
|
||||
# Build and deploy api-reference.
|
||||
- run: sudo docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:5.0.$CI_PIPELINE_ID-test --push -f ./ApiDocs/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:test --push -f ./ApiDocs/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-reference:5.0.$CI_PIPELINE_ID-test --push -f ./ApiDocs/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-reference:test --push -f ./ApiDocs/Dockerfile .
|
||||
|
@ -141,7 +141,7 @@ export const WorkflowRoute: Route = new Route(
|
||||
);
|
||||
|
||||
export const ApiDocsRoute: Route = new Route(
|
||||
process.env['APIDOCS_ROUTE'] || '/api-docs'
|
||||
process.env['APIDOCS_ROUTE'] || '/api-reference'
|
||||
);
|
||||
|
||||
export const AdminDashboardRoute: Route = new Route(
|
||||
|
@ -4,31 +4,31 @@
|
||||
####################################
|
||||
|
||||
{{- if .Values.saas.isSaasService }}
|
||||
###########-----api-docs------##############
|
||||
###########-----api-reference------##############
|
||||
|
||||
# OneUptime API docs Deployment
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ printf "%s-%s" $.Release.Name "api-docs" }}
|
||||
name: {{ printf "%s-%s" $.Release.Name "api-reference" }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
labels:
|
||||
app: {{ printf "%s-%s" $.Release.Name "api-docs" }}
|
||||
app: {{ printf "%s-%s" $.Release.Name "api-reference" }}
|
||||
app.kubernetes.io/part-of: oneuptime
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ printf "%s-%s" $.Release.Name "api-docs" }}
|
||||
app: {{ printf "%s-%s" $.Release.Name "api-reference" }}
|
||||
replicas: {{ $.Values.replicaCount }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ printf "%s-%s" $.Release.Name "api-docs" }}
|
||||
app: {{ printf "%s-%s" $.Release.Name "api-reference" }}
|
||||
spec:
|
||||
containers:
|
||||
- image: {{ printf "%s/%s/%s:%s" .Values.image.registry .Values.image.repository "api-docs" .Values.image.tag }}
|
||||
name: {{ printf "%s-%s" $.Release.Name "api-docs" }}
|
||||
- image: {{ printf "%s/%s/%s:%s" .Values.image.registry .Values.image.repository "api-reference" .Values.image.tag }}
|
||||
name: {{ printf "%s-%s" $.Release.Name "api-reference" }}
|
||||
imagePullPolicy: {{ $.Values.image.pullPolicy }}
|
||||
resources:
|
||||
requests:
|
||||
@ -63,7 +63,7 @@ spec:
|
||||
ports:
|
||||
- containerPort: {{ $.Values.host.apiDocsPort }}
|
||||
hostPort: {{ $.Values.host.apiDocsPort }}
|
||||
name: {{ printf "%s-%s" $.Release.Name "api-docs" }}
|
||||
name: {{ printf "%s-%s" $.Release.Name "api-reference" }}
|
||||
restartPolicy: {{ $.Values.image.restartPolicy }}
|
||||
|
||||
---
|
||||
@ -72,10 +72,10 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ printf "%s-%s" $.Release.Name "api-docs" }}
|
||||
app: {{ printf "%s-%s" $.Release.Name "api-reference" }}
|
||||
app.kubernetes.io/part-of: oneuptime
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
name: {{ printf "%s-%s" $.Release.Name "api-docs" }}
|
||||
name: {{ printf "%s-%s" $.Release.Name "api-reference" }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
spec:
|
||||
ports:
|
||||
@ -83,7 +83,7 @@ spec:
|
||||
protocol: TCP
|
||||
targetPort: {{ $.Values.host.apiDocsPort }}
|
||||
selector:
|
||||
app: {{ printf "%s-%s" $.Release.Name "api-docs" }}
|
||||
app: {{ printf "%s-%s" $.Release.Name "api-reference" }}
|
||||
type: ClusterIP
|
||||
---
|
||||
###########################################
|
||||
@ -93,14 +93,14 @@ spec:
|
||||
apiVersion: autoscaling/v1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: {{ printf "%s-%s" $.Release.Name "api-docs" }}
|
||||
name: {{ printf "%s-%s" $.Release.Name "api-reference" }}
|
||||
spec:
|
||||
maxReplicas: {{ $.Values.autoScaler.maxReplicas }}
|
||||
minReplicas: {{ $.Values.autoScaler.minReplicas }}
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: {{ printf "%s-%s" $.Release.Name "api-docs" }}
|
||||
name: {{ printf "%s-%s" $.Release.Name "api-reference" }}
|
||||
targetCPUUtilizationPercentage: {{ $.Values.autoScaler.averageCpuUtilization }}
|
||||
---
|
||||
{{- end }}
|
@ -99,7 +99,7 @@ spec:
|
||||
servicePort: 80
|
||||
- path: /docs
|
||||
backend:
|
||||
serviceName: {{ printf "%s-%s" $.Release.Name "api-docs" }}
|
||||
serviceName: {{ printf "%s-%s" $.Release.Name "api-reference" }}
|
||||
servicePort: 80
|
||||
- path: /license
|
||||
backend:
|
||||
|
@ -18,8 +18,8 @@ upstream workflow {
|
||||
server workflow:3099 weight=10 max_fails=3 fail_timeout=30s;
|
||||
}
|
||||
|
||||
upstream api-docs {
|
||||
server api-docs:1445 weight=10 max_fails=3 fail_timeout=30s;
|
||||
upstream api-reference {
|
||||
server api-reference:1445 weight=10 max_fails=3 fail_timeout=30s;
|
||||
}
|
||||
|
||||
upstream alert {
|
||||
@ -256,7 +256,7 @@ server {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://api-docs;
|
||||
proxy_pass http://api-reference;
|
||||
}
|
||||
|
||||
|
||||
|
@ -51,7 +51,7 @@ DATA_INGESTOR_HOSTNAME=data-ingestor:3200
|
||||
ACCOUNTS_HOSTNAME=accounts:3003
|
||||
HOME_HOSTNAME=home:1444
|
||||
WORKER_HOSTNAME=worker:3452
|
||||
API_DOCS_HOSTNAME=api-docs:1445
|
||||
API_DOCS_HOSTNAME=api-reference:1445
|
||||
|
||||
# Routes. Usually does not need to change.
|
||||
REALTIME_ROUTE=/realtime
|
||||
|
@ -500,7 +500,7 @@ services:
|
||||
- /usr/src/Model/node_modules/
|
||||
{{ end }}
|
||||
|
||||
api-docs:
|
||||
api-reference:
|
||||
ports:
|
||||
- '1445:1445'
|
||||
{{ if eq .Env.ENVIRONMENT "development" }}
|
||||
@ -517,7 +517,7 @@ services:
|
||||
context: .
|
||||
dockerfile: ./ApiDocs/Dockerfile
|
||||
{{ else }}
|
||||
image: oneuptime/api-docs:{{ .Env.APP_TAG }}
|
||||
image: oneuptime/api-reference:{{ .Env.APP_TAG }}
|
||||
{{ end }}
|
||||
{{ if eq .Env.ENVIRONMENT "development" }}
|
||||
volumes:
|
||||
|
Loading…
Reference in New Issue
Block a user