Skip to content

nimakaviani/knative-sample-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Docker App for Knative

Requirements

For the deployment and inspection of the Knative application discussed here, we are using the following tools:

The combination of ytt and kapp can be an alternative to a HELM chart+workflow management. While this project is pretty small for the purpose of the tool, it can be a good starting point.

Build the app

Build locally:

Run the following:

$ VERSION=<app-version> # this should be v1 or v2
$ ./hack/build.sh $VERSION 

Build the Docker image to push to a registry:

The Dockerfile builds the go app and puts it in the local registry. You can then upload it to dockerhub or your registry of choice.

$ REPO=<your-docker-registry>
$ VERSION=<app-version> # this should be v1 or v2
$ ./hack/dockerize.sh ${REPO} ${VERSION}
$ docker push ${REPO}:${VERSION}

Sample app + Knative

This application is meant to serve as a sample to demonstrate how Knative can be used as a serverless platform, how to apply revisions to a Knative serverless app, and how to achieve blue-green deployment and HPA. For the details of going through the tutorial, follow this tutorial document.

About

sample app for deployment to knative

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published