コンテンツにスキップ

Infrastructure(Local)

This is a document for building the RISKEN system on Docker Desktop (Mac) on a local machine.


Preparation

The following tools are required in advance:


Launch Kubernetes

  • Refer to the Docker Desktop documentation to start Kubernetes.
  • To run it in the local environment, you need to set the CPU and MEM resources assigned to Docker Desktop to the following values or higher:
    • Preferences > Resourses > ADVANCED
      • CPUs: 4+
      • Memory: 8GB+
    • Docker Desktop Resource setting

Deploy RISKEN

Deploy using Manifest file

  • Clone the sample manifest .

    $ git clone https://github.com/ca-risken/k8s-sample.git
    $ cd k8s-sample
    

  • Deploy it in the local environment using the make command.

    $ make local-apply
    

  • Wait for the Pod's status to become Running.

    $ kubectl get pod -A
    

  • Access the local environment in a browser.

    http://localhost/
    

By default, only some services are enabled.
  • The following services are not started by default because credentials are required at startup:
    • Google
  • Set the required parameters, update the number of Pods to be started in the Manifest file to 1 or more.
    • For details on the parameters, refer to Parameters.

Delete created resources

  • Delete the local environment resources with the make command.
    $ make local-delete