Created
July 28, 2018 22:20
-
-
Save DazWilkin/679fda7b16bed4c0bdd25f0b7d48e48e to your computer and use it in GitHub Desktop.
Knative
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: apps/v1 | |
kind: Deployment | |
metadata: | |
annotations: | |
labels: | |
app: hellohenry | |
name: hellohenry | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: hellohenry | |
template: | |
metadata: | |
annotations: | |
sidecar.istio.io/inject: "true" | |
labels: | |
app: hellohenry | |
spec: | |
containers: | |
- env: | |
- name: TARGET | |
value: old-school | |
image: gcr.io/dazwilkin-180728-knative/knative/hellohenry | |
imagePullPolicy: IfNotPresent | |
name: hellohenry | |
ports: | |
- containerPort: 8080 | |
protocol: TCP | |
... | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: hellohenry | |
spec: | |
ports: | |
- name: http | |
port: 80 | |
protocol: TCP | |
targetPort: 8080 | |
selector: | |
app: hellohenry | |
type: LoadBalancer | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment