Skip to content

Instantly share code, notes, and snippets.

@welshstew
Last active May 9, 2022 12:54
Show Gist options
  • Save welshstew/6533c86105f19ee9ebad9a4a2b390114 to your computer and use it in GitHub Desktop.
Save welshstew/6533c86105f19ee9ebad9a4a2b390114 to your computer and use it in GitHub Desktop.
knative helloworld
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: hello
spec:
template:
metadata:
annotations:
sidecar.istio.io/inject: "true"
sidecar.istio.io/rewriteAppHTTPProbers: "true"
spec:
containers:
- env:
- name: TARGET
value: World
image: gcr.io/knative-samples/helloworld-go
ports:
- containerPort: 8080
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: hello
spec:
template:
spec:
containers:
- image: gcr.io/knative-samples/helloworld-go
ports:
- containerPort: 8080
env:
- name: TARGET
value: "World"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment