Giter Site home page Giter Site logo

node-express-appsody-kabanero's Introduction

node-express-appsody-kabanero

Use Kabanero, Appsody, and Codewind to build a Spring Boot application on Kubernetes

To create a modern, cloud-native application, you have to consider all aspects of the application — from the best way to incorporate business logic in the appropriate places to technical considerations like how to handle resiliency, reliability, and monitoring. Additionally, when running an application on the cloud or in a Kubernetes cluster, you also have to handle creating Dockerfiles and the necessary Kubernetes resource files.

In the era of DevOps where the team is responsible for building and running applications for their entire life cycle, choosing the best tools is crucial to help reduce the work needed for building and deploying cloud-native applications.

New open source tools from IBM — Kabanero, Appsody, and Codewind — were created to make it easier for developers to build and deploy cloud-native applications to Kubernetes.

For webhook in kabanero and tekton pipeline

By using webhook to trigger the real time build is convinient, currently facing 404 Issue of github webhook

We couldn’t deliver this payload: Service Timeout

Manually deploy using tekton pipeline

Prerequisite
  • You need have Kabanero and tekton install in your OKD / Openshift cluster. (Currently using 3.11 version)

Before you begin

  • Run oc login <your OKD cluster master ip> -u <username> -p <your_password>
  1. Run
Method 1: Using Yaml file to modify and add in your target deploy-namespace

oc get Kabanero -n kabanero -o yaml > ./script/kabanero.yaml oc apply -f ./script/kabanero.yaml -n kabanero

Method 2: Using oc patch command (Incomplete)

oc patch kabanero -p '{"items":{"spec":{"targetNamespaces":{ dc-demo}}}}}'

  1. Add in the target namespace you intend to deploy to
  • Bear in mind, tekton pipeline by default only can deploy the instance in kabanero
  • You need to modify the targetnamespaces under spec to deploy to that server
  1. After you run oc apply -f ./script/kabanero.yaml -n kabanero
  • The expected successful output is kabanero.kabanero.io/kabanero configured
  • If you did not see the similar output, means it may failed.
  1. Take a look script folder, you can see two sh file
  • You can run APP_REPO=https://github.com/dacleyra/appsody-hello-world/ ./appsody-tekton-example-manual-run.sh for example
For node-express stack
  • You can run APP_REPO=<your own github repo application> ./node-express-appsody-tekton-example-manual-run.sh
For other stack in kabanero
  • You have to make sure the stack are availible and activated in your kabanero instance
  • You should change the .appsody-config.yaml if the target stack is other like java, node-loopback, etc.
# example
project-name: myapp
stack: kabanero/nodejs-express:0.2 # The stack is important, must point to `kabanero/<stack>` and not `appsody/<stack>`
  1. Then you can change the target namespace in app-deploy.yaml
  • For example, add in the target namespace in metadata
# Example
metadata:
  name: myapp
  namespace: default
  1. You should change the sh file for the docker image namespace to match the target deploy namespace
  • In the below, example, the target namespace is default
# Resultant Appsody container image #
DOCKER_IMAGE="${DOCKER_IMAGE:-docker-registry.default.svc:5000/default/myapp}"
  1. You may run the command APP_REPO=https://github.com/DanielChuDC/node-express-appsody-kabanero ./script/node-express-appsody-tekton-example-manual-run.sh to deploy your application

APP_REPO=https://github.com/dacleyra/appsody-hello-world/ ./script/appsody-tekton-example-manual-run.sh

node-express-appsody-kabanero's People

Watchers

 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.