Skip to content

Instantly share code, notes, and snippets.

@jkutner
Last active March 15, 2019 14:50
Show Gist options
  • Save jkutner/ab0298759d2fd5946a7a75632a4a3325 to your computer and use it in GitHub Desktop.
Save jkutner/ab0298759d2fd5946a7a75632a4a3325 to your computer and use it in GitHub Desktop.
kubectl apply -f https://raw.githubusercontent.com/knative/build-templates/master/buildpacks/cnb.yaml
kubectl apply -f service.yml
kubectl get pods --watch
kubectl get svc istio-ingressgateway --namespace istio-system
kubectl get ksvc hello-java-service --output=custom-columns=NAME:.metadata.name,DOMAIN:.status.domain
curl -H "Host: hello-java-service.default.example.com" http://{IP_ADDRESS}
apiVersion: build.knative.dev/v1alpha1
kind: Build
metadata:
name: hello-java-build
spec:
source:
git:
url: https://github.com/heroku/java-getting-started.git
revision: master
template:
name: buildpacks-cnb
kind: BuildTemplate
arguments:
- name: IMAGE
value: gcr.io/none-219021/hello-java-knative
---
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: hello-java-service
spec:
runLatest:
configuration:
revisionTemplate:
spec:
container:
image: gcr.io/none-219021/hello-java-knative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment