mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -05:00
Update Environment to TimescaleDB
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user