mirror of https://github.com/knative/docs.git
27 lines
701 B
YAML
27 lines
701 B
YAML
apiVersion: serving.knative.dev/v1alpha1
|
|
kind: Service
|
|
metadata:
|
|
name: app-from-source
|
|
namespace: default
|
|
spec:
|
|
runLatest:
|
|
configuration:
|
|
build:
|
|
source:
|
|
git:
|
|
url: https://github.com/mchmarny/simple-app.git
|
|
revision: master
|
|
template:
|
|
name: kaniko
|
|
arguments:
|
|
- name: IMAGE
|
|
value: docker.io/{DOCKER_USERNAME}/app-from-source:latest
|
|
revisionTemplate:
|
|
spec:
|
|
container:
|
|
image: docker.io/{DOCKER_USERNAME}/app-from-source:latest
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: SIMPLE_MSG
|
|
value: "Hello from the sample app!"
|