2016-02-22 00:13:08 +00:00
|
|
|
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
|
2016-05-19 19:11:51 +00:00
|
|
|
image: gcr.io/google_containers/echoserver:1.4
|
2016-02-22 00:13:08 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|