2020-11-24 17:08:59 +01:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
2020-11-24 20:26:02 +01:00
|
|
|
name: backend
|
2020-11-24 17:08:59 +01:00
|
|
|
labels:
|
2020-11-24 20:26:02 +01:00
|
|
|
app: backend
|
|
|
|
namespace: videon
|
2020-11-24 17:08:59 +01:00
|
|
|
data:
|
|
|
|
SENTRY_DSN: https://58bd309272c642d884ff2332c336b977@sentry.kmlabz.com/21
|
|
|
|
RELEASE_ID: kmlabz-k8s
|
2020-12-05 15:46:36 +01:00
|
|
|
RELEASEMODE: release
|
|
|
|
JWT_SECRET_KEY: hzukalkhsdgsbnakdjaksdghikyxbhhatzig
|
2020-12-05 18:00:50 +01:00
|
|
|
REGISTER_DISABLED: "False"
|
2020-12-05 15:46:36 +01:00
|
|
|
SQLALCHEMY_DATABASE_URI: postgresql://username:password@server/database?sslmode=require
|
2020-11-24 17:08:59 +01:00
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: backend
|
|
|
|
namespace: videon
|
|
|
|
labels:
|
|
|
|
app: backend
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: backend
|
|
|
|
strategy:
|
|
|
|
type: Recreate
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: backend
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: backend
|
|
|
|
image: registry.kmlabz.com/videon/backend
|
|
|
|
imagePullPolicy: Always
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: backend
|
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
imagePullSecrets:
|
|
|
|
- name: regcred
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: backend
|
|
|
|
namespace: videon
|
|
|
|
labels:
|
|
|
|
app: backend
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: backend
|
|
|
|
port: 80
|
|
|
|
targetPort: 8080
|
|
|
|
protocol: TCP
|
|
|
|
selector:
|
|
|
|
app: backend
|
|
|
|
type: ClusterIP
|