From de742cf1963977f2cfeab8ad053e3c02dce88ed7 Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Wed, 31 Aug 2022 21:48:37 +0200 Subject: [PATCH] Add service account to peridotserver Signed-off-by: Mustafa Gezen --- peridot/cmd/v1/peridotserver/ci/deploy.jsonnet | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/peridot/cmd/v1/peridotserver/ci/deploy.jsonnet b/peridot/cmd/v1/peridotserver/ci/deploy.jsonnet index 681384ab..0c68806a 100644 --- a/peridot/cmd/v1/peridotserver/ci/deploy.jsonnet +++ b/peridot/cmd/v1/peridotserver/ci/deploy.jsonnet @@ -29,6 +29,11 @@ bycdeploy.new({ cpu: '2', memory: '10G', }, + service_account_options: { + annotations: { + 'eks.amazonaws.com/role-arn': 'arn:aws:iam::893168113496:role/peridot_k8s_role', + } + }, ports: [ { name: 'http', @@ -50,6 +55,18 @@ bycdeploy.new({ name: 'PERIDOT_PRODUCTION', value: if kubernetes.dev() then 'false' else 'true', }, + if utils.local_image then { + name: 'PERIDOT_S3_ENDPOINT', + value: 'minio.default.svc.cluster.local:9000' + }, + if utils.local_image then { + name: 'PERIDOT_S3_DISABLE_SSL', + value: 'true' + }, + if utils.local_image then { + name: 'PERIDOT_S3_FORCE_PATH_STYLE', + value: 'true' + }, $.dsn, ] + temporal.kube_env('PERIDOT'), })