concept Service in category knative

appears as: Service, Service
Knative in Action

This is an excerpt from Manning's book Knative in Action.

Knative encapsulates "run the thing" and "change the thing" into Services [8]. When the Service is changed, Knative acts to bring the world into sync with the change.

You may have noticed that the revision name changed. "First" was hello-example-pjyvr-1 and "Second" was hello-example-bqbbr-2. Yours might look slightly different, since part of the name is randomly generated. hello-example comes from the name of the Service, and the 1 and 2 suffixes indicate the "generation" of the Service (more on that in a second). But the bit in the middle is randomised to prevent accidental name collisions.

Listing 4.14. Setting a tag
$ kn service create satu-dua-example \
    --image gcr.io/knative-samples/helloworld-go \
    --env TARGET=Satu

# ... creation of Service and a Revision, "satu-dua-example-brvhy-1"

$ kn service update satu-dua-example \
    --env TARGET=Dua

# ... another Revision, "satu-dua-example-snznt-2"

$ kn service update satu-dua-example \
    --tag satu-dua-example-brvhy-1=satu \
    --tag satu-dua-example-snznt-2=dua

Updating Service 'satu-dua-example' in namespace 'default':

  0.052s The Route is still working to reflect the latest desired specification.
  0.246s Ingress has not yet been reconciled.
  1.568s Ready to serve.

Service 'satu-dua-example' with latest revision 'satu-dua-example-snznt-2' (unchanged) is available at URL:
http://satu-dua-example.default.example.com