Commit fc23177e authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

logstodb de prod

parent 1828a55d
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: ws-logstodb
environment: production
name: ws-logstodb-deployment
spec:
replicas: 1
selector:
matchLabels:
app: ws-logstodb
environment: production
template:
metadata:
labels:
app: ws-logstodb
environment: production
spec:
containers:
- name: ws-logstodb
image: gricad-registry.univ-grenoble-alpes.fr/osug/resif/ws-logstodb/ws-logstodb:fc496249
ports:
- containerPort: 8000
protocol: TCP
env:
- name: DATABASE_URI
value: postgresql://wslogstodb@resif-pgprod.u-ga.fr:5432/resifstats
- name: PGPASSWORD
valueFrom:
secretKeyRef:
name: ws-logstodb-secrets-prod
key: pgpassword
---
apiVersion: v1
kind: Service
metadata:
labels:
app: ws-logstodb
environment: production
name: ws-logstodb-service
spec:
type: ClusterIP
ports:
- port: 8000
selector:
app: ws-logstodb
environment: production
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ws-logstodb-ingress
labels:
app: ws-logstodb
environment: production
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
nginx.ingress.kubernetes.io/proxy-body-size: 15m # Permettre l'envoi de gros fichiers de logs
spec:
rules:
- http:
paths:
- path: /logstodb/1/(.*)
pathType: Prefix
backend:
service:
name: ws-logstodb-service
port:
number: 8000
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment