mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-02-09 09:42:37 -05:00
Switch to SQL Server
This commit is contained in:
@@ -19,26 +19,25 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: weather-database
|
||||
image: timescale/timescaledb
|
||||
image: mcr.microsoft.com/mssql/server
|
||||
terminationMessagePath: "/dev/termination-log"
|
||||
terminationMessagePolicy: File
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: POSTGRES_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: weather-database-credentials
|
||||
key: username
|
||||
- name: POSTGRES_PASSWORD
|
||||
- name: SA_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: weather-database-credentials
|
||||
key: password
|
||||
- name: POSTGRES_DB
|
||||
value: weather
|
||||
- name: ACCEPT_EULA
|
||||
value: "Y"
|
||||
- name: MSSQL_PID
|
||||
value: Express
|
||||
- name: TZ
|
||||
value: America/New_York
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
mountPath: /var/opt/mssql
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 30
|
||||
dnsPolicy: ClusterFirst
|
||||
@@ -53,7 +52,7 @@ spec:
|
||||
storageClassName: local-path
|
||||
resources:
|
||||
requests:
|
||||
storage: 4Gi
|
||||
storage: 4Gi
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
@@ -62,10 +61,10 @@ metadata:
|
||||
spec:
|
||||
ports:
|
||||
- name: client
|
||||
port: 5432
|
||||
port: 1433
|
||||
selector:
|
||||
app: weather-database
|
||||
type: ClusterIP
|
||||
type: LoadBalancer
|
||||
---
|
||||
kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
|
||||
Reference in New Issue
Block a user