mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Update production-server.yaml
Added deployments and service for probe, admin-dashboard and api-docs. Also change the port of backend from 3001 to 3002.
This commit is contained in:
@@ -134,10 +134,10 @@ spec:
|
||||
- name: STRIPE_PRIVATE_KEY
|
||||
value: "sk_live_ADLzzMrOCz0kyYTsxWatAqxh"
|
||||
- name: PORT
|
||||
value: "3001"
|
||||
value: "3002"
|
||||
ports:
|
||||
- containerPort: 3001
|
||||
hostPort: 3001
|
||||
- containerPort: 3002
|
||||
hostPort: 3002
|
||||
name: backend
|
||||
restartPolicy: Always
|
||||
imagePullSecrets:
|
||||
@@ -154,7 +154,7 @@ spec:
|
||||
ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
targetPort: 3001
|
||||
targetPort: 3002
|
||||
selector:
|
||||
app: backend
|
||||
type: LoadBalancer
|
||||
@@ -252,6 +252,151 @@ spec:
|
||||
app: status-page
|
||||
type: LoadBalancer
|
||||
---
|
||||
# Probe service and deployement
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: probe
|
||||
labels:
|
||||
app: probe
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: probe
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: probe
|
||||
spec:
|
||||
containers:
|
||||
- image: registry.gitlab.com/fyipe-project/probe:master
|
||||
name: probe
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: FYIPE_HOSTED
|
||||
value: "true"
|
||||
- name: SERVER_URL
|
||||
value: "http://backend"
|
||||
- name: PORT
|
||||
value: "3008"
|
||||
ports:
|
||||
- containerPort: 3008
|
||||
hostPort: 3008
|
||||
name: probe
|
||||
restartPolicy: Always
|
||||
imagePullSecrets:
|
||||
- name: gitlabcredv2
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: probe
|
||||
name: probe
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
targetPort: 3008
|
||||
selector:
|
||||
app: probe
|
||||
type: LoadBalancer
|
||||
|
||||
# API docs deployment and service
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: api-docs
|
||||
labels:
|
||||
app: api-docs
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: api-docs
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: api-docs
|
||||
spec:
|
||||
containers:
|
||||
- image: registry.gitlab.com/fyipe-project/api-docs:master
|
||||
name: api-docs
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: FYIPE_HOSTED
|
||||
value: "true"
|
||||
ports:
|
||||
- containerPort: 1445
|
||||
hostPort: 1445
|
||||
name: api-docs
|
||||
restartPolicy: Always
|
||||
imagePullSecrets:
|
||||
- name: gitlabcredv2
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: api-docs
|
||||
name: api-docs
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
targetPort: 1445
|
||||
selector:
|
||||
app: api-docs
|
||||
type: LoadBalancer
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: admin-dashboard
|
||||
labels:
|
||||
app: admin-dashboard
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: admin-dashboard
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: admin-dashboard
|
||||
spec:
|
||||
containers:
|
||||
- image: registry.gitlab.com/fyipe-project/admin-dashboard:master
|
||||
name: admin-dashboard
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: FYIPE_HOSTED
|
||||
value: "true"
|
||||
ports:
|
||||
- containerPort: 3100
|
||||
hostPort: 3100
|
||||
name: admin-dashboard
|
||||
restartPolicy: Always
|
||||
imagePullSecrets:
|
||||
- name: gitlabcredv2
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: admin-dashboard
|
||||
name: admin-dashboard
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
targetPort: 3100
|
||||
selector:
|
||||
app: admin-dashboard
|
||||
type: LoadBalancer
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
|
||||
Reference in New Issue
Block a user