diff --git a/roles/installer/templates/deployments/task.yaml.j2 b/roles/installer/templates/deployments/task.yaml.j2 index 8cb8ffe4..cb57fbd1 100644 --- a/roles/installer/templates/deployments/task.yaml.j2 +++ b/roles/installer/templates/deployments/task.yaml.j2 @@ -25,6 +25,7 @@ spec: {{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=8) | trim }} {{ lookup("template", "../common/templates/labels/version.yaml.j2") | indent(width=8) | trim }} annotations: + kubectl.kubernetes.io/default-container: '{{ ansible_operator_meta.name }}-task' {% for template in [ "configmaps/config", "configmaps/pre_stop_scripts", diff --git a/roles/installer/templates/deployments/web.yaml.j2 b/roles/installer/templates/deployments/web.yaml.j2 index 5fb27700..466351b6 100644 --- a/roles/installer/templates/deployments/web.yaml.j2 +++ b/roles/installer/templates/deployments/web.yaml.j2 @@ -26,6 +26,7 @@ spec: {{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=8) | trim }} {{ lookup("template", "../common/templates/labels/version.yaml.j2") | indent(width=8) | trim }} annotations: + kubectl.kubernetes.io/default-container: '{{ ansible_operator_meta.name }}-web' {% for template in [ "configmaps/config", "secrets/app_credentials",