add deployment files
This commit is contained in:
parent
4f8d292974
commit
c259aa11f7
4 changed files with 103 additions and 0 deletions
52
deployment/deployment.yaml
Normal file
52
deployment/deployment.yaml
Normal file
|
@ -0,0 +1,52 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: servala
|
||||
name: servala
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: servala
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: servala
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: gitlab-pull-secret
|
||||
containers:
|
||||
- image: registry.vshn.net/vshn/servala-frontend:latest
|
||||
imagePullPolicy: Always
|
||||
name: web
|
||||
env:
|
||||
- name: STATIC_ROOT
|
||||
value: /app/staticfiles
|
||||
- name: MEDIA_ROOT
|
||||
value: /app/mediafiles
|
||||
- name: DEBUG
|
||||
value: "false"
|
||||
- name: ALLOWED_HOSTS
|
||||
value: poc.serva.la
|
||||
- name: DB_FILE
|
||||
value: /data/servala.db
|
||||
- name: ODOO_URL
|
||||
value: https://test.central.vshn.ch
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: servala
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
name: web
|
||||
protocol: TCP
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: data
|
Loading…
Add table
Add a link
Reference in a new issue