fix(k3s): change SQL Server liveness probe to TCP
CI/CD Pipeline / deploy (push) Successful in 2m5s Details
CI/CD Pipeline / smoke-tests (push) Failing after 36s Details
CI/CD Pipeline / e2e-tests (push) Has been skipped Details
CI/CD Pipeline / rollback (push) Has been skipped Details

- 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:
Andrés Eduardo García Márquez 2026-01-09 09:05:47 -05:00
parent ac22153aa7
commit f00af02c48
1 changed files with 14 additions and 16 deletions

View File

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