Browse Source

containerPort must be an int; correctly quote/brace replicas value

The mux containerPort must be an int
The eventrouter REPLICAS must use the double quote/double brace
syntax documented here:
https://docs.openshift.org/latest/dev_guide/templates.html#writing-parameters
And must be escaped because it uses double braces, as explained here:
http://jinja.pocoo.org/docs/dev/templates/#escaping
Rich Megginson 7 years ago
parent
commit
9196bc888b

+ 1 - 1
roles/openshift_logging_eventrouter/templates/eventrouter-template.j2

@@ -42,7 +42,7 @@ objects:
         component: eventrouter
         logging-infra: eventrouter
         provider: openshift
-      replicas: ${REPLICAS}
+      replicas: "${{ '{{' }}REPLICAS{{ '}}' }}"
       template:
         metadata:
           labels:

+ 1 - 1
roles/openshift_logging_mux/templates/mux.j2

@@ -59,7 +59,7 @@ spec:
 {%   endif %}
 {% endif %}
         ports:
-        - containerPort: "{{ openshift_logging_mux_port }}"
+        - containerPort: {{ openshift_logging_mux_port }}
           name: mux-forward
         volumeMounts:
         - name: config