Add image with redirect

This commit is contained in:
Manuel de Brito Fontes 2016-05-19 21:30:04 -03:00
parent 076de3e8a7
commit 7878600981
5 changed files with 124 additions and 0 deletions

View file

@ -0,0 +1,32 @@
apiVersion: v1
kind: Service
metadata:
name: echoheaders
labels:
app: echoheaders
spec:
type: NodePort
ports:
- port: 80
targetPort: 8080
protocol: TCP
name: http
selector:
app: echoheaders
---
apiVersion: v1
kind: ReplicationController
metadata:
name: echoheaders
spec:
replicas: 1
template:
metadata:
labels:
app: echoheaders
spec:
containers:
- name: echoheaders
image: gcr.io/google_containers/echoserver-redirect:1.3
ports:
- containerPort: 8080