Add a ytt template value for replica count.

Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
Matt Moyer 2020-09-03 22:52:01 -05:00
parent f8f16fadb9
commit b0315e5e9f
2 changed files with 4 additions and 1 deletions

View File

@ -58,7 +58,7 @@ metadata:
labels:
app: #@ data.values.app_name
spec:
replicas: 2
replicas: #@ data.values.replicas
selector:
matchLabels:
app: #@ data.values.app_name

View File

@ -7,6 +7,9 @@
app_name: pinniped
namespace: pinniped
#! Specify how many replicas of the Pinniped server to run.
replicas: 2
#! Specify either an image_digest or an image_tag. If both are given, only image_digest will be used.
image_repo: #! e.g. registry.example.com/your-project-name/repo-name
image_digest: #! e.g. sha256:f3c4fdfd3ef865d4b97a1fd295d94acc3f0c654c46b6f27ffad5cf80216903c8