Deploying functions

    • You have a Docker daemon on your local machine. This is already provided if you have used the Quickstart installation.

    • You have access to a container registry and are able to push images to this registry.

    Procedure

    funckn func

    Deploy the function by running the command inside the project directory:

    1. kn func deploy --registry <registry>

    Expected output

    You can verify that your function has been successfully deployed by using the invoke command and observing the output:

      Expected output

      1. Received response
      2. User-Agent: Go-http-client/1.1
      3. Content-Length: 25
      4. Accept-Encoding: gzip
      5. X-Request-Id: 9e351834-0542-4f32-9928-3a5d6aece30c
      6. Forwarded: for=10.244.0.15;proto=http
      7. X-Forwarded-For: 10.244.0.15, 10.244.0.9
      8. X-Forwarded-Proto: http