Switch to SQL Server

This commit is contained in:
2019-07-28 09:50:43 -04:00
parent 339a88dab0
commit d60924049d
7 changed files with 62 additions and 63 deletions

View File

@@ -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