Skip to content

Commit

Permalink
Merge pull request #4 from smunukutla-mycarrier/fix-probes-and-ports
Browse files Browse the repository at this point in the history
Fix probes and ports
  • Loading branch information
akvlad authored May 20, 2024
2 parents f4e8902 + 0b69bcf commit e020135
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 12 deletions.
24 changes: 17 additions & 7 deletions templates/reader.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,30 @@ spec:
imagePullPolicy: {{ .Values.reader.imagePullPolicy }}
name: qryn-reader
ports:
- containerPort: {{ .Values.reader.env.qrynHttpSettingsPort }}
- name: http
containerPort: {{.Values.reader.env.qrynHttpSettingsPort }}
protocol: TCP
resources: {{- toYaml .Values.reader.resources | nindent 12 }}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
livenessProbe:
httpGet:
path: "/ready"
path: /ready
port: http
initialDelaySeconds: 10 #Default 0
periodSeconds: 10 #Default 10
timeoutSeconds: 1 #Default 1
successThreshold: 1 #Default 1
failureThreshold: 3 #Default 3
initialDelaySeconds: {{ .Values.reader.livenessProbe.initialDelaySeconds | default 15 }}
periodSeconds: {{ .Values.reader.livenessProbe.periodSeconds | default 10 }}
timeoutSeconds: {{ .Values.reader.livenessProbe.timeoutSeconds | default 3 }}
failureThreshold: {{ .Values.reader.livenessProbe.failureThreshold | default 6 }}
successThreshold: {{ .Values.reader.livenessProbe.successThreshold | default 1 }}
readinessProbe:
httpGet:
path: /ready
port: http
initialDelaySeconds: {{ .Values.reader.readinessProbe.initialDelaySeconds | default 15 }}
periodSeconds: {{ .Values.reader.readinessProbe.periodSeconds | default 10 }}
timeoutSeconds: {{ .Values.reader.readinessProbe.timeoutSeconds | default 3 }}
failureThreshold: {{ .Values.reader.readinessProbe.failureThreshold | default 6 }}
successThreshold: {{ .Values.reader.readinessProbe.successThreshold | default 1 }}
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: qryn-dckr
Expand Down
23 changes: 18 additions & 5 deletions templates/writer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,30 @@ spec:
imagePullPolicy: {{ .Values.writer.imagePullPolicy }}
name: qryn-writer
ports:
{{ range .Values.writer.ports }}
- containerPort: {{ .targetPort }}
protocol: {{ .protocol }}
{{ end }}
- name: http
containerPort: {{.Values.writer.env.qrynHttpSettingsPort }}
protocol: TCP
resources: {{- toYaml .Values.writer.resources | nindent 12 }}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
livenessProbe:
httpGet:
path: "/ready"
path: /ready
port: http
initialDelaySeconds: {{ .Values.writer.livenessProbe.initialDelaySeconds | default 15 }}
periodSeconds: {{ .Values.writer.livenessProbe.periodSeconds | default 10 }}
timeoutSeconds: {{ .Values.writer.livenessProbe.timeoutSeconds | default 3 }}
failureThreshold: {{ .Values.writer.livenessProbe.failureThreshold | default 6 }}
successThreshold: {{ .Values.writer.livenessProbe.successThreshold | default 1 }}
readinessProbe:
httpGet:
path: /ready
port: http
initialDelaySeconds: {{ .Values.writer.readinessProbe.initialDelaySeconds | default 15 }}
periodSeconds: {{ .Values.writer.readinessProbe.periodSeconds | default 10 }}
timeoutSeconds: {{ .Values.writer.readinessProbe.timeoutSeconds | default 3 }}
failureThreshold: {{ .Values.writer.readinessProbe.failureThreshold | default 6 }}
successThreshold: {{ .Values.writer.readinessProbe.successThreshold | default 1 }}
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: qryn-dckr
Expand Down
24 changes: 24 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ reader:
revisionHistoryLimit: 10
type: ClusterIP
podAnnotations: []
livenessProbe: {}
# initialDelaySeconds: 15
# periodSeconds: 10
# timeoutSeconds: 3
# failureThreshold: 6
# successThreshold: 1
readinessProbe: {}
# initialDelaySeconds: 15
# periodSeconds: 10
# timeoutSeconds: 3
# failureThreshold: 6
# successThreshold: 1
nodeSelector: {}
tolerations: []
affinity: {}
Expand Down Expand Up @@ -95,6 +107,18 @@ writer:
revisionHistoryLimit: 10
type: ClusterIP
podAnnotations: []
livenessProbe: {}
# initialDelaySeconds: 15
# periodSeconds: 10
# timeoutSeconds: 3
# failureThreshold: 6
# successThreshold: 1
readinessProbe: {}
# initialDelaySeconds: 15
# periodSeconds: 10
# timeoutSeconds: 3
# failureThreshold: 6
# successThreshold: 1
nodeSelector: {}
tolerations: []
affinity: {}
Expand Down

0 comments on commit e020135

Please sign in to comment.