Skip to content

Commit

Permalink
BC-5405 - Metadata on k8s ressources (#3343)
Browse files Browse the repository at this point in the history
* add specific labels to deployments, cronjobs and pods
  • Loading branch information
MartinSchuhmacher authored Nov 16, 2023
1 parent b85ab89 commit bc0df6f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion ansible/roles/schulcloud-client-core/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ metadata:
namespace: {{ NAMESPACE }}
labels:
app: client
app.kubernetes.io/part-of: schulcloud-verbund
app.kubernetes.io/version: {{ SCHULCLOUD_CLIENT_IMAGE_TAG }}
app.kubernetes.io/name: client
app.kubernetes.io/component: client
app.kubernetes.io/managed-by: ansible
git.branch: {{ SCHULCLOUD_CLIENT_BRANCH_NAME }}
git.repo: {{ SCHULCLOUD_CLIENT_REPO_NAME }}
spec:
replicas: {{ CLIENT_REPLICAS|default("1", true) }}
strategy:
Expand All @@ -21,9 +28,16 @@ spec:
metadata:
labels:
app: client
app.kubernetes.io/part-of: schulcloud-verbund
app.kubernetes.io/version: {{ SCHULCLOUD_CLIENT_IMAGE_TAG }}
app.kubernetes.io/name: client
app.kubernetes.io/component: client
app.kubernetes.io/managed-by: ansible
git.branch: {{ SCHULCLOUD_CLIENT_BRANCH_NAME }}
git.repo: {{ SCHULCLOUD_CLIENT_REPO_NAME }}
annotations:
spec:
securityContext:
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
Expand Down

0 comments on commit bc0df6f

Please sign in to comment.