diff --git a/ansible/roles/schulcloud-server-core/templates/deployment.yml.j2 b/ansible/roles/schulcloud-server-core/templates/deployment.yml.j2 index 467cbc964d2..25da61c3213 100644 --- a/ansible/roles/schulcloud-server-core/templates/deployment.yml.j2 +++ b/ansible/roles/schulcloud-server-core/templates/deployment.yml.j2 @@ -5,8 +5,10 @@ metadata: namespace: {{ NAMESPACE }} labels: app: api - app.kubernetes.io/managed-by: {{ SCHULCLOUD_SERVER_BRANCH_NAME }} - app.kubernetes.io/part-of: {{ SCHULCLOUD_SERVER_REPO_NAME }} + app.kubernetes.io/part-of: schulcloud-verbund + app.kubernetes.io/version: {{ SCHULCLOUD_SERVER_IMAGE_TAG }} + git.branch: {{ SCHULCLOUD_SERVER_BRANCH_NAME }} + git.repo: {{ SCHULCLOUD_SERVER_REPO_NAME }} spec: replicas: {{ API_REPLICAS|default("1", true) }} strategy: @@ -23,8 +25,10 @@ spec: metadata: labels: app: api - app.kubernetes.io/managed-by: {{ SCHULCLOUD_SERVER_BRANCH_NAME }} - app.kubernetes.io/part-of: {{ SCHULCLOUD_SERVER_REPO_NAME }} + app.kubernetes.io/part-of: schulcloud-verbund + app.kubernetes.io/version: {{ SCHULCLOUD_SERVER_IMAGE_TAG }} + git.branch: {{ SCHULCLOUD_SERVER_BRANCH_NAME }} + git.repo: {{ SCHULCLOUD_SERVER_REPO_NAME }} spec: securityContext: runAsUser: 1000