Always200

Requirements

operator-sdk : v0.19.0

Usage

A node express API used as an example for deploying via the operator-sdk on openshift

curl http://localhost:8080/get
ok
curl -d "{data.json"} -X POST http://localhost:8080/post
ok

The operator creates the

  • Deployment (will scale up or down to the spec.size specified in the always200 CR)
  • Service
  • Route

Deployment

Run locally

# deploy the resources
make deploy
# run the operator localy 
make run
# delete the deployment
make delete

Deploy on cluster

# deploy the resources
make deploy/image
# delete the deployment
make delete

Should work with any REST server provided its container is EXPOSED 8080 Change the image in the CR here

Container Images

  • always200 rest container Docker Repository on Quay
  • always200 operator containter Docker Repository on Quay

TODO

  • Write some unit tests