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"
|
||||
cpu: "1000m"
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /opt/mssql-tools/bin/sqlcmd
|
||||
- -S
|
||||
- localhost
|
||||
- -U
|
||||
- sa
|
||||
- -P
|
||||
- $(MSSQL_SA_PASSWORD)
|
||||
- -Q
|
||||
- SELECT 1
|
||||
initialDelaySeconds: 60
|
||||
tcpSocket:
|
||||
port: 1433
|
||||
initialDelaySeconds: 90
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 10
|
||||
failureThreshold: 5
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 3
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: 1433
|
||||
initialDelaySeconds: 45
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
startupProbe:
|
||||
tcpSocket:
|
||||
port: 1433
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 15
|
||||
timeoutSeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 18
|
||||
volumes:
|
||||
- name: sqlserver-data
|
||||
persistentVolumeClaim:
|
||||
|
|
|
|||
Loading…
Reference in New Issue