Created
March 14, 2019 13:59
-
-
Save Justin2997/c275b181e4d88fe488eaf1b77781b3cb to your computer and use it in GitHub Desktop.
Knative Serving with Ambassador
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: v1 | |
kind: Service | |
metadata: | |
name: hello-world-knative-nodejs | |
labels: | |
app: hello-world-knative-nodejs | |
annotations: | |
getambassador.io/config: | | |
apiVersion: ambassador/v0 | |
kind: Mapping | |
name: hello-world-knative-nodejs | |
prefix: /hello-world-nodejs-knative/ | |
rewrite: / | |
service: istio-ingressgateway.istio-system.svc.cluster.local | |
host_rewrite: hello-world-knative-nodejs.default.exemple.com | |
timeout_ms: 10000 | |
spec: | |
selector: | |
app: hello-world-knative-nodejs | |
ports: | |
- name: http-port | |
port: 3000 | |
--- | |
apiVersion: serving.knative.dev/v1alpha1 | |
kind: Service | |
metadata: | |
name: hello-world-knative-nodejs | |
namespace: default | |
labels: | |
app: hello-world-knative-nodejs | |
knative.dev/type: "app" | |
spec: | |
runLatest: | |
configuration: | |
revisionTemplate: | |
spec: | |
container: | |
image: docker.io/justin2997/hello-world-nodejs:latest | |
imagePullPolicy: Always | |
ports: | |
- containerPort: 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment