Skip to content

Commit

Permalink
BC-5405 - Metadata on k8s ressources (#43)
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 6ca13af commit 7e2b7c6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ metadata:
labels:
app: antivirus
antivirus: scanfile
app.kubernetes.io/part-of: schulcloud-verbund
app.kubernetes.io/version: {{ ANTIVIRUS_CHECK_SERVICE_IMAGE_TAG }}
app.kubernetes.io/name: scanfile
app.kubernetes.io/component: antivirus
app.kubernetes.io/managed-by: ansible
git.branch: {{ ANTIVIRUS_CHECK_SERVICE_BRANCH_NAME }}
git.repo: {{ ANTIVIRUS_CHECK_SERVICE_REPO_NAME }}
spec:
replicas: {{ ANTIVIRUS_SCANFILE_REPLICAS|default("1", true) }}
strategy:
Expand All @@ -24,9 +31,15 @@ spec:
labels:
app: antivirus
antivirus: scanfile
annotations:
app.kubernetes.io/part-of: schulcloud-verbund
app.kubernetes.io/version: {{ ANTIVIRUS_CHECK_SERVICE_IMAGE_TAG }}
app.kubernetes.io/name: scanfile
app.kubernetes.io/component: antivirus
app.kubernetes.io/managed-by: ansible
git.branch: {{ ANTIVIRUS_CHECK_SERVICE_BRANCH_NAME }}
git.repo: {{ ANTIVIRUS_CHECK_SERVICE_REPO_NAME }}
spec:
securityContext:
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
Expand All @@ -53,4 +66,3 @@ spec:
volumes:
- name: shared
emptyDir: {}

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ metadata:
labels:
app: antivirus
antivirus: webserver
app.kubernetes.io/part-of: schulcloud-verbund
app.kubernetes.io/version: {{ ANTIVIRUS_CHECK_SERVICE_IMAGE_TAG }}
app.kubernetes.io/name: webserver
app.kubernetes.io/component: antivirus
app.kubernetes.io/managed-by: ansible
git.branch: {{ ANTIVIRUS_CHECK_SERVICE_BRANCH_NAME }}
git.repo: {{ ANTIVIRUS_CHECK_SERVICE_REPO_NAME }}
spec:
replicas: {{ ANTIVIRUS_WEBSERVER_REPLICAS|default("1", true) }}
strategy:
Expand All @@ -24,9 +31,15 @@ spec:
labels:
app: antivirus
antivirus: webserver
annotations:
app.kubernetes.io/part-of: schulcloud-verbund
app.kubernetes.io/version: {{ ANTIVIRUS_CHECK_SERVICE_IMAGE_TAG }}
app.kubernetes.io/name: webserver
app.kubernetes.io/component: antivirus
app.kubernetes.io/managed-by: ansible
git.branch: {{ ANTIVIRUS_CHECK_SERVICE_BRANCH_NAME }}
git.repo: {{ ANTIVIRUS_CHECK_SERVICE_REPO_NAME }}
spec:
securityContext:
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
Expand Down

0 comments on commit 7e2b7c6

Please sign in to comment.