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
|
22
deployment/ingress.yaml
Normal file
22
deployment/ingress.yaml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||||
|
name: servala
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: poc.serva.la
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- pathType: Prefix
|
||||||
|
path: /
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: servala
|
||||||
|
port:
|
||||||
|
number: 8080
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- poc.serva.la
|
||||||
|
secretName: ingress-cert
|
14
deployment/pvc.yaml
Normal file
14
deployment/pvc.yaml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: data
|
||||||
|
labels:
|
||||||
|
app: servala
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
volumeMode: Filesystem
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 2Gi
|
||||||
|
storageClassName: ssd
|
15
deployment/service.yaml
Normal file
15
deployment/service.yaml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: servala
|
||||||
|
labels:
|
||||||
|
app: servala
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 8080
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: http
|
||||||
|
selector:
|
||||||
|
app: servala
|
||||||
|
type: ClusterIP
|
Loading…
Add table
Add a link
Reference in a new issue