Update Environment to TimescaleDB

This commit is contained in:
2024-01-31 21:03:11 -05:00
parent 0fa45d13ae
commit f2c585c9d7
7 changed files with 100 additions and 72 deletions

View File

@@ -19,27 +19,31 @@ spec:
spec:
containers:
- name: environment-database
image: mcr.microsoft.com/mssql/server
terminationMessagePath: "/dev/termination-log"
terminationMessagePolicy: File
image: timescale/timescaledb:latest-pg16
imagePullPolicy: IfNotPresent
env:
- name: SA_PASSWORD
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: environment-database-credentials
key: username
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: environment-database-credentials
key: password
- name: ACCEPT_EULA
value: "Y"
- name: MSSQL_PID
value: Express
- name: MSSQL_TCP_PORT
value: "1435"
- name: TZ
value: America/New_York
- name: POSTGRES_DB
value: environment
volumeMounts:
- name: data
mountPath: /var/opt/mssql
mountPath: /var/lib/postgresql/data
resources:
limits:
cpu: 1000m
memory: 1Gi
requests:
cpu: 500m
memory: 512Mi
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
@@ -63,7 +67,7 @@ metadata:
spec:
ports:
- name: client
port: 1435
port: 5432
selector:
app: environment-database
type: LoadBalancer
@@ -108,6 +112,13 @@ spec:
key: password
- name: Environment__Hub__Url
value: http://hub-service/environment
resources:
limits:
cpu: 1
memory: 1Gi
requests:
cpu: 500m
memory: 512Mi
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst