Skip to content

Instantly share code, notes, and snippets.

@mauilion
Last active September 17, 2018 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mauilion/2c08c779857ee6c6671dbbd6a495336d to your computer and use it in GitHub Desktop.
Save mauilion/2c08c779857ee6c6671dbbd6a495336d to your computer and use it in GitHub Desktop.
---
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