Przeglądaj źródła

Template variable for container port (#251)

Signed-off-by: Anand Francis Joseph <anjoseph@redhat.com>
Anand Francis Joseph 1 rok temu
rodzic
commit
d7927a27b4

+ 1 - 1
helm-guestbook/templates/deployment.yaml

@@ -26,7 +26,7 @@ spec:
           imagePullPolicy: {{ .Values.image.pullPolicy }}
           ports:
             - name: http
-              containerPort: 80
+              containerPort: {{ .Values.containerPort }}
               protocol: TCP
           livenessProbe:
             httpGet:

+ 2 - 0
helm-guestbook/values.yaml

@@ -9,6 +9,8 @@ image:
   tag: 0.1
   pullPolicy: IfNotPresent
 
+containerPort: 80
+
 service:
   type: ClusterIP
   port: 80