- minio_job_name = "prod-minio"
- minio_group_count = 4
- minio_service_name = "storage"
- minio_host = "http://10.32.8.1{4...7}"
- minio_port = 9000
- minio_container_image = "minio/minio:RELEASE.2021-07-08T01-15-01Z"
- minio_vault_secret = {
- use_vault_provider = false,
- vault_kv_policy_name = "kv-secret",
- vault_kv_path = "secret/data/minio",
- vault_kv_field_access_key = "access_key",
- vault_kv_field_secret_key = "secret_key"
- }
- minio_data_dir = "/data/"
- minio_use_host_volume = true
- minio_use_canary = true
- minio_envs = [ "MINIO_BROWSER=\"off\"" ]
-
- # minio client
- mc_job_name = "prod-mc"
- mc_container_image = "minio/mc:RELEASE.2021-07-08T01-15-01Z"
- mc_extra_commands = [
- "mc policy set public LOCALMINIO/logs.fd.io",
- "mc policy set public LOCALMINIO/docs.fd.io",
- "mc ilm add --expiry-days '180' LOCALMINIO/logs.fd.io",
- "mc admin user add LOCALMINIO storage Storage1234",
- "mc admin policy set LOCALMINIO writeonly user=storage"
+ job_name = "minio-s3-gateway"
+ group_count = 4
+ service_name = "minio"
+ mode = "gateway"
+ port_base = 9001
+ port_console = 9002
+ image = "minio/minio:latest"
+ access_key = data.vault_generic_secret.minio_creds.data["access_key"]
+ secret_key = data.vault_generic_secret.minio_creds.data["secret_key"]
+ volume_destination = "/data/"
+ use_host_volume = true
+ use_canary = true
+ envs = [
+ "MINIO_BROWSER=\"off\"",
+ "MINIO_CACHE=\"on\"",
+ "MINIO_CACHE_DRIVES=\"/data/s3_cache1\"",
+ "MINIO_CACHE_EXCLUDE=\"\"",
+ "MINIO_CACHE_QUOTA=80",
+ "MINIO_CACHE_AFTER=1",
+ "MINIO_CACHE_WATERMARK_LOW=70",
+ "MINIO_CACHE_WATERMARK_HIGH=90"