Fix variables in k8s catalog template

This commit is contained in:
Darren Shepherd 2016-03-09 14:13:02 -07:00
parent 867afed8e0
commit 647497395a
3 changed files with 7 additions and 7 deletions

View File

@ -10,6 +10,6 @@ spec:
type: LoadBalancer type: LoadBalancer
ports: ports:
# the port that this service should serve on # the port that this service should serve on
- port: "${SERVICE_PORT}" - port: ${SERVICE_PORT}
selector: selector:
name: ${FRONTEND_NAME} name: ${FRONTEND_NAME}

View File

@ -1,14 +1,14 @@
.catalog: .catalog:
name: "K8s Example Guestbook" name: "K8s Guestbook"
version: "1.0.0" version: "1.0.0"
description: "It's a guestbook" description: "It's a guestbook, I guess"
questions: questions:
- variable: "SERVICE_NAME" - variable: "SERVICE_NAME"
label: "Service Name" label: "Service Name"
required: true required: true
default: "frontend" default: "frontend"
type: "string" type: "string"
- variable: "Service Port" - variable: "SERVICE_PORT"
label: "What port to listen on" label: "What port to listen on"
required: true required: true
type: "int" type: "int"
@ -18,7 +18,7 @@
required: true required: true
default: "frontend" default: "frontend"
type: "string" type: "string"
- variable: "Frontend Scale" - variable: "FRONTEND_REPLICAS"
label: "Replicas for the frontend RC" label: "Replicas for the frontend RC"
required: true required: true
type: "int" type: "int"

View File

@ -7,7 +7,7 @@ metadata:
spec: spec:
ports: ports:
# the port that this service should serve on # the port that this service should serve on
- port: "6379" - port: 6379
targetPort: "6379" targetPort: 6379
selector: selector:
name: redis-master name: redis-master