This is a fork from https://github.com/n3wscott/colorgrid. The only addition here is the publishing of the app as a docker image.
This App, calls the URL passed as a parameter to it and populates it in a grid on a single page. This is intended to be used in conjunction with the knative-colors App.
This combination is a good way to show case the basic revisions and traffic management capabilities of knative.
# Create the color grid service
kn service create colorgrid --image ghcr.io/clue2solve/colorgrid/colorgrid:latest
# create the rev-1 of the colors app
kn service create bg-demo --image ghcr.io/clue2solve/knative-colors/colors:start --env HELLO_BG_COLOR="RED"
# create the rev-2 of the app and split the traffic
kn service update bg-demo --image ghcr.io/clue2solve/knative-colors/colors:start --env HELLO_BG_COLOR="blue"
kn service update bg-demo --traffic bg-demo-00002=50,bg-demo-00001=50
# create the rev-3 of the app and re-split the app
kn service update bg-demo --image ghcr.io/clue2solve/knative-colors/colors:start --env HELLO_BG_COLOR="green"
kn service update bg-demo --traffic bg-demo-00002=40,bg-demo-00001=30,bg-demo-00003=30
At each step above, you should be able to hit the URL for the colorgrid with a parameter ?url={URL_OF_BG_DEMO}
Example:
http://colorgrid.default.knative.g.demome.cloud/?url=http://bg-demo.default.knative.g.demome.cloud