Deploy Huginn on Openshift


For every user, Openshift Container Platform offers 1G memory, that is enough to deploy and use Huginn, and 1G external storage, which can be used for database will have about one hundred thousand rows.

Deployment

Login the Openshift account–>open console–>Import YAML / JSON

The Huginn supports two kinds of databases, mysql and postgresql. It’s recommend to deploy with postgresql, which uses the less memory.
Copy the content of JSON file to openshift–>Create–>Continue

You should change these variables. For others, change them with your requirements.

  • Name
    A part of the address of app
  • Huginn SEED_USERNAME
  • Huginn SEED_PASSWORD
  • Huginn SEED_EMAIL
  • Cluster Name
    Depend on the location on which you chose to create the project

    Starter US East (N. Virginia) Starter US West (California) Starter US West (Oregon) Starter Canada (Central)
    Cluster Name starter-us-east-1 starter-us-west-1 starter-us-west-2 starter-ca-central-1
  • Router Shard
    Depend on the location on which you chose to create the project

    Starter US East (N. Virginia) Starter US West (California) Starter US West (Oregon) Starter Canada (Central)
    Router Shard 1d35 a3c1 7e14 193b

  • Memory Limit
    Suggest to set 768Mi for preventing always getting the 502 http code with the 512Mi memory. Test thirty agents and only cost about 700Mi memory generally.
  • Memory Limit (PostgreSQL)
    Suggest to set 256Mi (no less than 256Mi). Test thirty agents and only cost about 100Mi memory.
  • Database Name
    Don’t generate defaultly, or get the regex error

  • Database User
    Don’t generate defaultly, or get the regex error
  • Database Password
    Don’t generate defaultly, or get the regex error

View the Variables

Applications–>Deployments(Pods)–>huginn

Some variables have set to the secret value. you can see them at Resourses–>Secrets–>huginn.

Usage

You should create a Scheduler Agent, not the schedule of agents, to control agents for the resource hibernation of Openshift.

*/15 7-23 * * * Asia/Shanghai: running per 15 minutes from seven to twenty-three o’clock every day on the Asia/Shanghai timezone.

Leave a Reply

Your email address will not be published. Required fields are marked *