<@U04SE163WC8> How can I make the airbyte helm cha...
# ask-ai
y
@kapa.ai How can I make the airbyte helm chart in k8s statefull. i mean even if i destroy my infra I want to have the old job history etc.
u
To make your Airbyte deployment on Kubernetes stateful, you can configure external state storage. This allows you to persist your job history and other states even if your infrastructure is destroyed. Airbyte supports external state storage on Google Cloud Storage (GCS) and Amazon S3. For GCS, you can follow the instructions in the [Airbyte documentation](https://docs.airbyte.com/deploying-airbyte/on-kubernetes-via-helm#update-the-valuesyaml-with-the-gcs-logging-information-below). You need to update the environment variables in the
values.yaml
file and then run the
helm upgrade --install
command. For S3, you can follow the instructions in the [Airbyte documentation](https://docs.airbyte.com/deploying-airbyte/on-kubernetes-via-helm#external-logs-with-s3). You need to create a secret to store the AWS keys and other information, update the
values.yaml
file to use S3 external logs, and then run the
helm upgrade --install
command. Please note that you need to use the appropriate Helm Chart version for S3 logging as mentioned in the documentation. Also, to retain job history logs for a specific period, you can set the
TEMPORAL_HISTORY_RETENTION_IN_DAYS
environment variable as described in the [Airbyte documentation](https://docs.airbyte.com/operator-guides/configuring-airbyte#data-retention). This defines the retention period of the job history in Temporal and defaults to 30 days. Please be aware that making these changes requires a good understanding of Kubernetes, Helm, and the specific cloud storage service you are using. If you are not familiar with these technologies, you may want to seek help from someone who is.