To configure repository-service-tuf to use Ceph storage or local storage instead of AWS S3, you'll need to adjust the values.yaml file of the Helm chart. Here's how you can do it:
Option 1: Using Ceph's S3-Compatible Object Storage
Ceph provides an S3-compatible object storage interface via the Rados Gateway (RGW). You can configure repository-service-tuf to interact with Ceph just like it would with AWS S3.
Steps:
-
Ensure Ceph RGW is Configured:
- Confirm that the Ceph Rados Gateway is set up and accessible within your cluster.
- Make sure you have the S3 endpoint URL, access key, and secret key for your Ceph RGW.
-
Update values.yaml:
-
Set the storage type to s3:
storage:
type: s3
-
Set the S3 endpoint to your Ceph RGW endpoint:
s3Endpoint: 'http://ceph-rgw.ceph.svc.cluster.local:80' # Replace with your Ceph RGW service URL
-
Specify the S3 bucket name where you want repository-service-tuf to store data:
s3Bucket: 'your-ceph-bucket-name' # Replace with your bucket name
-
Provide the Ceph RGW access key and secret key:
s3AccessKey: 'your-ceph-access-key' # Replace with your Ceph access key
s3SecretKey: 'your-ceph-secret-key' # Replace with your Ceph secret key
-
Set the S3 region (Ceph might not require this, but some applications expect a value):
s3Region: 'us-east-1' # You can use any placeholder value if not required by Ceph
-
Adjust Additional Settings if Necessary:
- If your Ceph RGW uses self-signed certificates or if you need to skip SSL verification, look for a setting to disable SSL verification (e.g.,
s3SSLVerify: false).
-
Deploy the Helm Chart:
Option 2: Using Local Storage
If you prefer to use local storage, you can configure repository-service-tuf to store data on a persistent volume claim (PVC) in your Kubernetes cluster.
Steps:
-
Set the Storage Type to Local:
-
Create a Persistent Volume Claim (PVC):
-
Define a PVC that provides sufficient storage for your application.
-
Example YAML for a PVC (pvc.yaml):
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: repository-service-tuf-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi # Adjust size as needed
-
Apply the PVC:
kubectl apply -f pvc.yaml
-
Update the Helm Chart to Use the PVC:
-
Modify values.yaml to include the PVC in the volume configuration.
persistence:
enabled: true
existingClaim: 'repository-service-tuf-pvc'
-
If the Helm chart uses different keys for volumes, adjust accordingly. Some charts might use volumeClaimTemplates or extraVolumes.
-
Define the Mount Path:
-
Ensure that the application knows where to store the data locally.
-
Add or update the mountPath in values.yaml:
storage:
local:
mountPath: '/data' # Replace with the path expected by repository-service-tuf
-
Deploy the Helm Chart:
Additional Considerations
By adjusting the storage settings in your values.yaml and configuring either Ceph's S3-compatible endpoint or a local PVC, you can deploy repository-service-tuf without relying on AWS S3.