[FOLIO-2069] Deploy Okapi to K8s cluster Created: 04/Jun/19  Updated: 03/Jun/20  Resolved: 08/Jul/19

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Task Priority: P3
Reporter: Ian Hardy Assignee: Ian Hardy
Resolution: Done Votes: 0
Labels: platform-backlog
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Blocks
blocks FOLIO-2055 create an Ansible role for backend-mo... Closed
blocks FOLIO-2056 create a pipeline for a front-end mod... Closed
blocks UXPROD-1827 CI-integrated continuous deployment (... Closed
is blocked by FOLIO-2053 add AWS K8s deployment configuration ... Closed
is blocked by FOLIO-2054 Stand up cluster for CI using AWS K8s... Closed
Sprint: CP: sprint 66, CP: sprint 67
Story Points: 5
Development Team: Core: Platform

 Description   

Add a job to Jenkins / Automation to deploy Okapi to the kubernetes cluster.

Possible tools for setting up this pipeline might be kubernetes-cd or ansible.

  • API should be exposed through load balancer (similar to single server reference environments)
  • Needs storage either hosted psql db or saas (RDS)
  • verify by manually adding tenant and deploying/enabling module in the kubernetes cluster


 Comments   
Comment by Ian Hardy [ 27/Jun/19 ]

Added notes on deploying okapi as a cluster, and yaml templates to do deployment here: https://github.com/folio-org/folio-infrastructure/tree/folio-2069-doc/CI/doc/okapi-kubernetes

Note, running the latest version of okapi

18:00:48 INFO  MainVerticle         Proxy using postgres storage
18:00:48 WARN  InternalModule       InternalModule starting okapiversion=2.31.0-SNAPSHOT
18:00:48 INFO  MainVerticle         Checking for working distributed lock. Cluster=true
18:00:59 ERROR MainCluster          io.vertx.core.impl.NoStackTraceThrowable: getLock failed. Fix your Hazelcast configuration:
https://vertx.io/docs/vertx-hazelcast/java/#_using_an_existing_hazelcast_cluster
18:00:59 INFO  DeploymentManager    fast shutdown

The check for distributed lock was added in okapi 730, need to look into fixing the hazelcast configuration yet.

Comment by Ian Hardy [ 01/Jul/19 ]

The above issue is solved by adjusting the hazelcast configuration according to the notes in okapi-734.

Comment by Ian Hardy [ 01/Jul/19 ]

Opened PR https://github.com/folio-org/folio-ansible/pull/239.

Need to set up ingress to complete testing.

Comment by Ian Hardy [ 08/Jul/19 ]

merged in playbook to deploy okapi

Generated at Thu Feb 08 23:17:59 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.