Skip to content

Commit

Permalink
feat: port and probes are now configurable in KDK deployment just lik…
Browse files Browse the repository at this point in the history
…e in Kargo deployment
  • Loading branch information
claustres committed Oct 17, 2022
1 parent fb90a72 commit 0e51383
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions charts/kargo/templates/_kdk-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ spec:
{{- end }}
{{- include "kargo.environment.render" (dict "env" .Values.env "context" $) | indent 12 }}
ports:
- name: {{ include "kargo.names.name" . }}
containerPort: 8081
- name: {{ include "kargo.names.name" . | trunc 15 }}
containerPort: {{ .Values.containerPort | default 8081 }}
{{- if .Values.distribution.enabled }}
{{- range untilStep (int .Values.distribution.basePort) (int .Values.distribution.highestPort) 1 }}
- name: "cote-{{ . }}"
Expand All @@ -68,15 +68,15 @@ spec:
{{- end }}
readinessProbe:
tcpSocket:
port: {{ include "kargo.names.name" . }}
initialDelaySeconds: 5
periodSeconds: 10
port: {{ include "kargo.names.name" . | trunc 15 }}
initialDelaySeconds: {{ .Values.readinessDelay | default 5 }}
periodSeconds: {{ .Values.readinessPeriod | default 10 }}
livenessProbe:
httpGet:
path: {{ .Values.livenessEndpoint | default "/healthcheck" }}
port: {{ include "kargo.names.name" . }}
initialDelaySeconds: 60
periodSeconds: 15
port: {{ include "kargo.names.name" . | trunc 15 }}
initialDelaySeconds: {{ .Values.livenessDelay | default 60 }}
periodSeconds: {{ .Values.livenessPeriod | default 60 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if hasKey .Values "additionalConfig" }}
Expand Down

0 comments on commit 0e51383

Please sign in to comment.