Skip to content

Instantly share code, notes, and snippets.

@kostyrev
Created December 13, 2017 19:45
Show Gist options
  • Save kostyrev/53d8ee9aea8ab8902d4475abf1416114 to your computer and use it in GitHub Desktop.
Save kostyrev/53d8ee9aea8ab8902d4475abf1416114 to your computer and use it in GitHub Desktop.
nginx-echo-headers
---
apiVersion: v1
kind: Service
metadata:
name: nginx-echo-headers
labels:
app: nginx-echo-headers
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 8080
protocol: TCP
name: nginx-echo-headers
selector:
app: nginx-echo-headers
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nginx-echo-headers
labels:
app: nginx-echo-headers
spec:
replicas: 1
template:
metadata:
labels:
app: nginx-echo-headers
spec:
containers:
- name: nginx-echo-headers
image: "brndnmtthws/nginx-echo-headers:latest"
imagePullPolicy: Always
ports:
- containerPort: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment