Skip to content

Commit

Permalink
add support
Browse files Browse the repository at this point in the history
  • Loading branch information
diranged committed Nov 29, 2023
1 parent 69d60e9 commit e38c7fa
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/stateful-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ kmsSecretsRegion: us-west-2 (AWS region where the KMS key is located)
| virtualService.port | int | `80` | This is the backing Pod port _number_ to route traffic to. This must match a `containerPort` in the `Values.ports` list. |
| virtualService.retries | `map` | `{}` | Pass in an optional [`HTTPRetry`](https://istio.io/latest/docs/reference/config/networking/virtual-service/#HTTPRetry) configuration here to control how services retry their failed requests to the backend service. The default behavior is to retry 2 times if a 503 is returned. |
| virtualService.tls | string | `""` | |
| volumeClaimRetentionPolicy | `map` | `nil` | : https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention |
| volumeClaimTemplates | `PersistentVolumeClaim[]` | `nil` | volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#persistentvolumeclaim-v1-core |
| volumeMounts | list | `[]` | List of VolumeMounts that are applied to the application container - these must refer to volumes set in the `Values.volumes` parameter. |
| volumes | list | `[]` | A list of 'volumes' that can be mounted into the Pod. See https://kubernetes.io/docs/concepts/storage/volumes/. |
Expand Down
5 changes: 5 additions & 0 deletions charts/stateful-app/ci/ci-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ ingress:
# ALB-ingress controllers.
sslRedirect: false

readinessProbe:
httpGet:
path: /test
port: http

replicaCount: 2
minReadySeconds: 2
progressDeadlineSeconds: 90
Expand Down
4 changes: 4 additions & 0 deletions charts/stateful-app/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
volumeClaimTemplates:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.volumeClaimRetentionPolicy }}
persistentVolumeClaimRetentionPolicy:
{{- toYaml . | nindent 4 }}
{{- end }}
template:
metadata:
annotations:
Expand Down
5 changes: 5 additions & 0 deletions charts/stateful-app/values.local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ ingress:
# ALB-ingress controllers.
sslRedirect: false

readinessProbe:
httpGet:
path: /test
port: http

topologyKey: kubernetes.io/hostname
enableTopologySpread: true
terminationGracePeriodSeconds: 30
Expand Down
4 changes: 4 additions & 0 deletions charts/stateful-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ updateStrategy: null
# https://v1-18.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#persistentvolumeclaim-v1-core
volumeClaimTemplates: null

# -- (`map`):
# https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
volumeClaimRetentionPolicy: null

# -- Set up a PodDisruptionBudget for the Deployment. See
# https://kubernetes.io/docs/tasks/run-application/configure-pdb/ for more
# details.
Expand Down

0 comments on commit e38c7fa

Please sign in to comment.