Last active
March 15, 2019 14:50
-
-
Save jkutner/ab0298759d2fd5946a7a75632a4a3325 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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