/fcrepo-kubernetes

A demostration of deploying Fedora in Kubernetes

Deploy Fedora in Kubernetes

Architecture

Architecture

Requirements

Deployment

  • Deploy Fedora with a file-based objects database:

    • Allocate 10GB storage for Fedora server
    • Mount /mnt/data on the cluster’s Node.
     kubectl create -f deployments/fcrepo.yaml
    
  • Deploy Fedora with a MySQL database:

    • Allocate 10GB storage for Fedora server
    • Mount /mnt/data on the cluster’s Node.
    • Allocate 10GB storage for MySQL database
    • Mount /mnt/db on the cluster’s Node.
     kubectl create -f deployments/fcrepo-mysql.yaml
    
  • Deploy Fedora with a PostgreSQL database:

    • Allocate 10GB storage for Fedora server
    • Mount /mnt/data on the cluster’s Node.
    • Allocate 10GB storage for PostgreSQL database
    • Mount /mnt/db on the cluster’s Node.
     kubectl create -f deployments/fcrepo-postgres.yaml
    
  • Deployment status

     kubectl get deployment
    
     NAME     DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
     fcrepo   1         1         1            1           15s
    
  • Get server external ip

     kubectl get svc
    
     NAME         TYPE           CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
     fcrepo       LoadBalancer   10.39.243.129   1.2.3.4   8080:31638/TCP   2m10s
    

    Fedora server at http://EXTERNAL-IP:8080/fcrepo

    • username = "fedoraAdmin", password = "secret3"
  • Delete all the deployments

     kubectl delete -f deployments/fcrepo.yaml
     or
     kubectl delete -f deployments/fcrepo-mysql.yaml
     or
     kubectl delete -f deployments/fcrepo-postgres.yaml
    

Environment

Fedora Configuration

WebAC authorization is enabled on this Fedora installation. The following three Fedora user accounts are available:

  • user account testuser, with password password1
  • user account adminuser, with password password2
  • admin account fedoraAdmin with the password secret3

Camel Toolbox Customizations

An example of camel toolbox customizations. See Camel section.

Maintainers