Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/s3proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.0
version: 0.4.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
29 changes: 25 additions & 4 deletions charts/s3proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "comet-common.names.serviceAccount" . }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
initContainers:
Expand Down Expand Up @@ -160,24 +161,44 @@ spec:
- name: {{ include "s3proxy.portName" . }}
containerPort: {{ .Values.service.targetPort }}
protocol: TCP
# tcpSocket probes only check the TCP accept, so they work unchanged
# against a TLS-only port (no handshake performed).
# /healthz responds without authentication (S3Proxy >= 3.2.0),
# distinguishing a serving proxy from one that merely accepts TCP.
# The kubelet does not verify certificates for HTTPS probes, so a
# self-signed keystore works when native TLS is enabled. S3Proxy
# releases after 3.3.0 fail readiness while draining in-flight
# requests on shutdown, removing terminating pods from Service
# endpoints.
livenessProbe:
tcpSocket:
httpGet:
path: /healthz
port: {{ include "s3proxy.portName" . }}
{{- if .Values.config.tls.enabled }}
scheme: HTTPS
{{- end }}
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
readinessProbe:
tcpSocket:
httpGet:
path: /healthz
port: {{ include "s3proxy.portName" . }}
{{- if .Values.config.tls.enabled }}
scheme: HTTPS
{{- end }}
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 3
successThreshold: 1
failureThreshold: 3
lifecycle:
# Endpoint removal propagates asynchronously; keep serving
# briefly so late-routed connections do not land on a pod that
# has already begun shutting down.
preStop:
exec:
command: ["sleep", "5"]
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
Expand Down
3 changes: 3 additions & 0 deletions charts/s3proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ podSecurityContext: {}
# -- Container security context
securityContext: {}

# -- Pod termination grace period. Covers the 5s preStop sleep plus the in-flight request drain (up to 30s) that S3Proxy releases after 3.3.0 perform on SIGTERM.
terminationGracePeriodSeconds: 40

service:
# -- Kubernetes service type
type: ClusterIP
Expand Down
Loading