Split web and task containers into separate deployments

This commit is contained in:
Shane McDonald
2022-08-30 13:01:03 -04:00
committed by Hao Liu
parent 2b3fd833a3
commit 19461fa86c
5 changed files with 298 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ metadata:
{% endif %}
spec:
ports:
{% if service_type | lower == "nodeport" %}
- port: 80
protocol: TCP
@@ -46,7 +46,7 @@ spec:
name: http
{% endif %}
selector:
app.kubernetes.io/name: '{{ ansible_operator_meta.name }}'
app.kubernetes.io/name: '{{ ansible_operator_meta.name }}-web'
app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
app.kubernetes.io/component: '{{ deployment_type }}'
{% if service_type | lower == "nodeport" %}