Code Monkey home page Code Monkey logo

crowi-kubernetes's Introduction

Kubernetes (Minikube) setup for Crowi

Requirements

minikube, CPU > 1, memory > 2 GB

Setup

Run

kubectl apply -f ./setup/namespace.yml

to create a namespace "crowi-prod." Then, create a context by using your kubectl to use "crowi-prod" namespace.

Rename ./setup/secrets.yml.sample to ./setup/secrets.yml, and edit the secrets.

Run

kubectl apply -f ./setup/secrets.yml

to register the secrets.

Run

kubectl apply -f ./app

to start the application.

You can access the Crowi installation page at (external IP of crowi-service):30000 using your browser.

You can also deploy the application on AWS by using app-aws/crowi.yml.

Backup

To make backups of the database, run

kubectl apply -f ./jobs/backup.yml

This command creates a cron job which uploads a backup of the database to AWS S3 at 0:00 everyday.

To restore the database, run

kubectl run --rm -it restore --image nakaakist/restore-crowi --env="ACCESS_KEY_ID=<your AWS access key ID for S3>" \
--env="SECRET_ACCESS_KEY=<your AWS secret access key for S3>" --env="BUCKET_NAME=<your S3 bucket name for Crowi>" \
--env="BACKUP_FILE=<backup file name you want to use>" --env="MONGO_HOST=mongodb-service"

If search function does not work

Try

kubectl apply -f ./jobs/reset-elasticsearch.yml

crowi-kubernetes's People

Contributors

nakaakist avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.