Skip to content

Latest commit

 

History

History
81 lines (56 loc) · 2.73 KB

README.md

File metadata and controls

81 lines (56 loc) · 2.73 KB

EDC Ionos S3 deployment on external kubernetes cluster

Local Deployment

For local kubernetes installation please refer to the kind directory's readme.


External Deployment

To deploy the EDC Ionos S3 connector to external kubernetes cluster on IONOS cloud, follow this readme below.


Requirements


These are the services that are deployed:


Configuration

Set environment variables

Note: You will need docker image of the EDC Ionos S3 connector pushed to a repository. If you don't have one, you can build it following the instructions in the readme.

Note: To create the IONOS token please take a look at the following documentation.

# Required configuration
export TF_VAR_s3_namespace='edc-ionos-s3'
export TF_VAR_kubeconfig='path to kubeconfig'

export TF_VAR_image_repository='' # docker image repository e.g. example.cr.de-fra.ionos.com/edc-ionos-s3
export TF_VAR_image_tag='' # docker image tag e.g. latest

export TF_VAR_s3_access_key='' # S3 access key
export TF_VAR_s3_secret_key='' # S3 secret key
export TF_VAR_s3_endpoint='' # s3 endpoint (e.g. s3-eu-central-1.ionoscloud.com)
export TF_VAR_ionos_token='' # IONOS Cloud token

Deploy

All commands paths are relative to the current directory where this readme is located.

1. Change the docker image, imagepullsecret and the edc configurations in the values.yaml file of the helm chart. The vault configurations will be set by the terraform script.

vim helm/edc-ionos-s3/values.yaml

2. Create ImagePullSecret

Before executing the command replace <path to docker config json file> with real path.

kubectl create namespace edc-ionos-s3
kubectl create secret -n edc-ionos-s3 generic regcred --from-file=.dockerconfigjson=<path to docker config json file> --type=kubernetes.io/dockerconfigjson

2. Install the EDC Ionos S3 services

To install the services run the script deploy-services.sh in terraform directory.

cd terraform
./deploy-services.sh

3. Vault keys

After the services are installed you will have vault-keys.json file containing the vault keys in terraform directory.