Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • News
    • Getting started
    • Introduction video
      Welcome to OpenProject
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?
      Create a new account

Side Menu

  • Overview
  • Roadmap
  • Work packages
  • News
  • Wiki
    • Table of contents
      • Hierarchy leafAI Tools for Development
      • Hierarchy leafDeployment To the Server(Modified)
      • Hierarchy leafHosting BTCPayServer in Linux server
      • Hierarchy leafHow to overcome bitbucket login problem (Windows)
      • Expanded. Click to collapseCollapsed. Click to showInstalling a project in Elintegro
        • Expanded. Click to collapseCollapsed. Click to showDevOps ELINTEGRO
          • Hierarchy leafDeployment: Otto Trading branch with CIVO Kubernetes
        • Hierarchy leafPipeline setUp for Bitbucket
      • Expanded. Click to collapseCollapsed. Click to showInterview University
        • Expanded. Click to collapseCollapsed. Click to showDocker: Install an Elintegro App within Linux server
          • Hierarchy leafConnect to Docker of Omnipay
      • Expanded. Click to collapseCollapsed. Click to showKafka Installation Guide
        • Expanded. Click to collapseCollapsed. Click to showComparing Kafka with other topic technologies
          • Hierarchy leafDesign a messaging app, high level, using kafka
      • Hierarchy leafOpen Project
      • Hierarchy leafRebase with Development Branch
      • Hierarchy leafRemote Debugger with IntelliJ
      • Hierarchy leafTelegram API
      • Hierarchy leafUpgrading Elintegro apps to Grails 6
You are here:
  • Installing a project in Elintegro
  • DevOps ELINTEGRO
  • Deployment: Otto Trading branch with CIVO Kubernetes

Content

Deployment: Otto Trading branch with CIVO Kubernetes

  • More
    • Table of contents

OttoTrading Kubernetes Deployment Documentation

📌 Pre-requisites

- Install Kubernetes
- Install Docker Desktop
- Log in to Docker Desktop
- Log in to GitHub
- Log in to Docker Hub
- Clone the application repository
- Build and run locally to confirm the app works

1. Navigate to the kube directory

cd /c/dev/trading/localotto-trading/localotto/kube

2. Check running pods

kubectl get pods --kubeconfig ./civo-otto-kubeconfig

Example output:

NAME                                     READY   STATUS    RESTARTS   AGE
tomcat8-7578fd8787-mn48x                 1/1     Running   2 (56d)    57d
tomcat-manager-67c64665fd-59btx          1/1     Running   0          56d
otto-deployment-6c7f6f7d87-xmb9b         1/1     Running   0          3d

3. View logs

kubectl logs -f otto-deployment-6c7f6f7d87-xmb9b --kubeconfig ./civo-otto-kubeconfig

4. Restarting the Deployment

Option 1: Rollout restart (recommended)

kubectl rollout restart deployment/otto-deployment --kubeconfig ./civo-otto-kubeconfig

Check rollout status:

kubectl rollout status deployment/otto-deployment --kubeconfig ./civo-otto-kubeconfig

Option 2: Scale down, then scale up

kubectl scale deployment/otto-deployment --replicas=0 --kubeconfig ./civo-otto-kubeconfig
kubectl scale deployment/otto-deployment --replicas=1 --kubeconfig ./civo-otto-kubeconfig

5. Build a New Docker Image

git checkout trading

cd c:/dev/trading/localotto-trading/localotto

Windows build

docker build -f Dockerfile -t shai200/otto:2025.09.12 .

Linux build

docker build -f Dockerfile-lnx -t shai200/otto:2025.09.09 .

6. Test Locally (optional)

docker run -p 8080:8080 -p 5005:5005 shai200/otto-lnx:<version>

7. Push Image to Docker Hub

docker login

docker push shai200/otto:<version>

8. Update Deployment Manifest (../kube/deployment.yaml)

…

image: shai200/otto:<version>

…

9. Deploy to Kubernetes

cd <AppRoot>/kube
kubectl apply -f deployment.yaml --kubeconfig ./civo-otto-kubeconfig
kubectl get pods --selector=app=otto --kubeconfig ./civo-otto-kubeconfig

Loading...