Skip to content

Commit

Permalink
updated statefulset.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed May 26, 2024
1 parent 0639171 commit 105adbd
Showing 1 changed file with 44 additions and 2 deletions.
46 changes: 44 additions & 2 deletions statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,16 +192,52 @@ spec:
limits:
cpu: "1"
memory: 2Gi
#
# Probe fields:
#
# https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes
#
# newer versions of Kubernetes
# use this for slow starting applications without compromising the responsiveness of readiness or liveness probes which do not start until after this
#startupProbe:
# # http, tcp or exec
# #httpGet:
# # path: /healthz
# # port: 8080 # or 'http' to use name from ports section
# # scheme: HTTPS
# # #httpHeaders:
# # # - name: Custom-Header
# # # value: Awesome
# # only uncomment if you can't use http check, must comment/delete http check otherwise will get this error:
# # invalid: spec.containers[0].livenessProbe.tcpSocket: Forbidden: may not specify more than 1 handler type
# tcpSocket:
# port: 5432
# #grpc: # Kubernetes 1.27+
# # port: 2379 # must be number, not port name or fqdn
# # #service: readiness # to use same grpc port to distinguish between checks
# initialDelaySeconds: 0 # default
# initialDelaySeconds: 0 # default
# successThreshold: 1 # default
# failureThreshold: 3 # default
# periodSeconds: 10 # default (interval)
# timeoutSeconds: 1 # default
readinessProbe:
# http, tcp or exec
#httpGet:
# path: /healthz
# port: 8080
# port: 8080 # or 'http' to use name from ports section
# scheme: HTTPS
# #httpHeaders:
# # - name: Custom-Header
# # value: Awesome
# only uncomment if you can't use http check, must comment/delete http check otherwise will get this error:
# invalid: spec.containers[0].livenessProbe.tcpSocket: Forbidden: may not specify more than 1 handler type
tcpSocket:
port: 5432
#grpc: # Kubernetes 1.27+
# port: 2379 # must be number, not port name or fqdn
# #service: readiness # to use same grpc port to distinguish between checks
initialDelaySeconds: 0 # default
initialDelaySeconds: 0 # default
successThreshold: 1 # default
failureThreshold: 3 # default
Expand All @@ -210,10 +246,16 @@ spec:
livenessProbe:
#httpGet:
# path: /healthz
# port: 8080
# port: 8080 # or 'http' to use name from ports section
# #scheme: HTTPS
# #httpHeaders:
# # - name: Custom-Header
# # value: Awesome
tcpSocket:
port: 5432
#grpc: # Kubernetes 1.27+
# port: 2379 # must be number, not port name or fqdn
# #service: readiness # to use same grpc port to distinguish between checks
initialDelaySeconds: 0 # default
successThreshold: 1 # default
failureThreshold: 3 # default
Expand Down

0 comments on commit 105adbd

Please sign in to comment.