Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: headers
labels:
run: header
spec:
rules:
- http:
paths:
- path: /headers
backend:
serviceName: headers
servicePort: 8080
---
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
name: headers
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
run: headers
status:
loadBalancer: {}
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
labels:
run: headers
name: headers
spec:
replicas: 3
selector:
matchLabels:
run: headers
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
run: headers
spec:
containers:
- image: k8s.gcr.io/echoserver:1.4
name: headers
ports:
- containerPort: 8080
resources: {}
status: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment