Skip to content

Commit

Permalink
BC-5405 - Metadata on k8s ressources (#5)
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 99a92f6 commit b3dec47
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
needs:
- build_and_push
- branch_name
uses: hpi-schul-cloud/dof_app_deploy/.github/workflows/deploy.yml@main
uses: hpi-schul-cloud/dof_app_deploy/.github/workflows/deploy.yml@main
with:
branch: ${{ needs.branch_name.outputs.branch }}
secrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ metadata:
namespace: {{ NAMESPACE }}
labels:
app: h5p-staticfiles-server
app.kubernetes.io/part-of: schulcloud-verbund
app.kubernetes.io/version: {{ H5P_STATICFILES_SERVER_IMAGE_TAG }}
app.kubernetes.io/name: h5p-staticfiles-server
app.kubernetes.io/component: h5p
app.kubernetes.io/managed-by: ansible
git.branch: {{ H5P_STATICFILES_SERVER_BRANCH_NAME }}
git.repo: {{ H5P_STATICFILES_SERVER_REPO_NAME }}
spec:
replicas: {{ H5P_STATICFILES_SERVER_REPLICAS|default("1", true) }}
selector:
Expand All @@ -14,6 +21,13 @@ spec:
metadata:
labels:
app: h5p-staticfiles-server
app.kubernetes.io/part-of: schulcloud-verbund
app.kubernetes.io/version: {{ H5P_STATICFILES_SERVER_IMAGE_TAG }}
app.kubernetes.io/name: h5p-staticfiles-server
app.kubernetes.io/component: h5p
app.kubernetes.io/managed-by: ansible
git.branch: {{ H5P_STATICFILES_SERVER_BRANCH_NAME }}
git.repo: {{ H5P_STATICFILES_SERVER_REPO_NAME }}
spec:
securityContext:
runAsUser: 101
Expand Down Expand Up @@ -64,4 +78,3 @@ spec:
requests:
cpu: {{ H5P_STATICFIILES_SERVER_CPU_REQUESTS|default("100m", true) }}
memory: {{ H5P_STATICFIILES_SERVER_MEMORY_REQUESTS|default("128Mi", true) }}

0 comments on commit b3dec47

Please sign in to comment.