Fix variables in k8s catalog template
This commit is contained in:
parent
867afed8e0
commit
647497395a
@ -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}
|
||||||
|
@ -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"
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user