Skip to content

Commit

Permalink
BC-5405 - Metadata on k8s ressources (#150)
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 8c3be55 commit 0806a86
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ metadata:
namespace: {{ NAMESPACE }}
labels:
app: calendar
app.kubernetes.io/part-of: schulcloud-verbund
app.kubernetes.io/version: {{ SCHULCLOUD_CALENDAR_IMAGE_TAG }}
app.kubernetes.io/name: calendar
app.kubernetes.io/component: calendar
app.kubernetes.io/managed-by: ansible
git.branch: {{ SCHULCLOUD_CALENDAR_BRANCH_NAME }}
git.repo: {{ SCHULCLOUD_CALENDAR_REPO_NAME }}
spec:
replicas: {{ CALENDAR_REPLICAS|default("1", true) }}
selector:
Expand All @@ -14,6 +21,13 @@ spec:
metadata:
labels:
app: calendar
app.kubernetes.io/part-of: schulcloud-verbund
app.kubernetes.io/version: {{ SCHULCLOUD_CALENDAR_IMAGE_TAG }}
app.kubernetes.io/name: calendar
app.kubernetes.io/component: calendar
app.kubernetes.io/managed-by: ansible
git.branch: {{ SCHULCLOUD_CALENDAR_BRANCH_NAME }}
git.repo: {{ SCHULCLOUD_CALENDAR_REPO_NAME }}
spec:
securityContext:
#readOnlyRootFilesystem: true
Expand Down Expand Up @@ -67,4 +81,3 @@ spec:
requests:
cpu: {{ CALENDAR_CPU_REQUESTS|default("100m", true) }}
memory: {{ CALENDAR_MEMORY_REQUESTS|default("128Mi", true) }}

0 comments on commit 0806a86

Please sign in to comment.