ruby-ex/deployment/config/dev/app.yaml

54 lines
831 B
YAML
Raw Normal View History

2016-12-05 14:27:56 +00:00
---
apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: frontend
name: frontend
spec:
replicas: 1
selector:
app: frontend
deploymentconfig: frontend
template:
metadata:
labels:
app: frontend
deploymentconfig: frontend
spec:
containers:
- image: frontend:latest
name: frontend
ports:
- containerPort: 8080
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
labels:
app: frontend
name: frontend
spec:
ports:
- name: 8080-tcp
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: frontend
deploymentconfig: frontend
---
apiVersion: v1
kind: Route
metadata:
labels:
app: frontend
name: frontend
spec:
port:
targetPort: 8080-tcp
to:
kind: Service
name: frontend