Skip to content

Files

Latest commit

fe27d23 · Oct 8, 2019

History

History
39 lines (28 loc) · 904 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 904 Bytes

Demo: Deploying existing image to Knative

In this demo we will deploy a pre-built docker image of a maxprime to a Knative cluster.

Assuming you already configured static IP and custom domain. In this demo we will use knative.tech

Knative service manifest (see [./app.yaml]) defines the deployment

apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: simple
spec:
  template:
    spec:
      containers:
        - image: gcr.io/cloudylabs-public/maxprime:0.2.1
          env:
            - name: RELEASE
              value: "v0.2.1-simple"

To deploy, simply apply that manifest to your cluster

kubectl apply -f app.yaml

The deployed app should be available under the same URL (https://simple.demo.knative.tech/)

Cleanup

To remove the sample app from your cluster

kubectl delete -f app.yaml