fix(k3s): change SQL Server liveness probe to TCP
- Replace exec probe with sqlcmd (password expansion issue) with TCP probe - Add startupProbe for slow SQL Server startup on low memory - Increase initialDelaySeconds to give SQL Server time to start - This fixes the continuous restarts due to "Login failed for user 'sa'" Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
ac22153aa7
commit
f00af02c48
|
|
@ -60,27 +60,25 @@ spec:
|
||||||
memory: "768Mi"
|
memory: "768Mi"
|
||||||
cpu: "1000m"
|
cpu: "1000m"
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
tcpSocket:
|
||||||
command:
|
port: 1433
|
||||||
- /opt/mssql-tools/bin/sqlcmd
|
initialDelaySeconds: 90
|
||||||
- -S
|
|
||||||
- localhost
|
|
||||||
- -U
|
|
||||||
- sa
|
|
||||||
- -P
|
|
||||||
- $(MSSQL_SA_PASSWORD)
|
|
||||||
- -Q
|
|
||||||
- SELECT 1
|
|
||||||
initialDelaySeconds: 60
|
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
timeoutSeconds: 10
|
timeoutSeconds: 5
|
||||||
failureThreshold: 5
|
failureThreshold: 3
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: 1433
|
||||||
|
initialDelaySeconds: 45
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
startupProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: 1433
|
port: 1433
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 15
|
periodSeconds: 10
|
||||||
timeoutSeconds: 10
|
timeoutSeconds: 5
|
||||||
|
failureThreshold: 18
|
||||||
volumes:
|
volumes:
|
||||||
- name: sqlserver-data
|
- name: sqlserver-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue