Skip to content

Instantly share code, notes, and snippets.

@DazWilkin
Created July 28, 2018 22:20
Show Gist options
  • Save DazWilkin/679fda7b16bed4c0bdd25f0b7d48e48e to your computer and use it in GitHub Desktop.
Save DazWilkin/679fda7b16bed4c0bdd25f0b7d48e48e to your computer and use it in GitHub Desktop.
Knative
---
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