Skip to content

Commit

Permalink
BC-5112 - add Annotations to deployment for Restart (#981)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamutmk5 authored Sep 30, 2024
1 parent 21689bc commit d6652c0
Show file tree
Hide file tree
Showing 18 changed files with 105 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ansible/host_vars/brb_host/cfg.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
NEXTCLOUD_REDIRECT_URL: https://nextcloud-brb.dbildungscloud.dev/apps/files/?dir=/
NEXTCLOUD_BASE_URL: https://nextcloud-brb.dbildungscloud.dev/
BETTERMARKS_APPS_URL: "https://apps.bettermarks.brb.dbildungscloud.dev"
BETTERMARKS_SCHOOL_URL: "https://school.bettermarks.brb.dbildungscloud.dev"
BETTERMARKS_SCHOOL_URL: "https://school.bettermarks.brb.dbildungscloud.dev"
ANNOTATIONS: true
RELOADER: true
6 changes: 6 additions & 0 deletions ansible/roles/clamav/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ kind: Deployment
metadata:
name: clamav-deployment
namespace: {{ NAMESPACE }}
{% if ANNOTATIONS is defined and ANNOTATIONS|bool %}
annotations:
{% if RELOADER is defined and RELOADER|bool %}
reloader.stakater.com/auto: "true"
{% endif %}
{% endif %}
labels:
app: clamav
app.kubernetes.io/part-of: schulcloud-verbund
Expand Down
6 changes: 6 additions & 0 deletions ansible/roles/clammit/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ kind: Deployment
metadata:
name: clammit-deployment
namespace: {{ NAMESPACE }}
{% if ANNOTATIONS is defined and ANNOTATIONS|bool %}
annotations:
{% if RELOADER is defined and RELOADER|bool %}
reloader.stakater.com/auto: "true"
{% endif %}
{% endif %}
labels:
app: clammit
app.kubernetes.io/part-of: schulcloud-verbund
Expand Down
6 changes: 6 additions & 0 deletions ansible/roles/dof_etherpad/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ kind: Deployment
metadata:
name: etherpad-deployment
namespace: {{ NAMESPACE }}
{% if ANNOTATIONS is defined and ANNOTATIONS|bool %}
annotations:
{% if RELOADER is defined and RELOADER|bool %}
reloader.stakater.com/auto: "true"
{% endif %}
{% endif %}
labels:
app: etherpad
app.kubernetes.io/part-of: schulcloud-verbund
Expand Down
6 changes: 6 additions & 0 deletions ansible/roles/dof_etherpad_nginx/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ kind: Deployment
metadata:
name: etherpad-nginx-deployment
namespace: {{ NAMESPACE }}
{% if ANNOTATIONS is defined and ANNOTATIONS|bool %}
annotations:
{% if RELOADER is defined and RELOADER|bool %}
reloader.stakater.com/auto: "true"
{% endif %}
{% endif %}
labels:
app: etherpad-nginx
app.kubernetes.io/part-of: schulcloud-verbund
Expand Down
6 changes: 6 additions & 0 deletions ansible/roles/dof_mailcatcher/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ kind: Deployment
metadata:
name: mailcatcher-deployment
namespace: {{ NAMESPACE }}
{% if ANNOTATIONS is defined and ANNOTATIONS|bool %}
annotations:
{% if RELOADER is defined and RELOADER|bool %}
reloader.stakater.com/auto: "true"
{% endif %}
{% endif %}
labels:
app: mailcatcher
app.kubernetes.io/part-of: schulcloud-verbund
Expand Down
6 changes: 6 additions & 0 deletions ansible/roles/dof_mongo/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ kind: Deployment
metadata:
name: mongo-deployment
namespace: {{ NAMESPACE }}
{% if ANNOTATIONS is defined and ANNOTATIONS|bool %}
annotations:
{% if RELOADER is defined and RELOADER|bool %}
reloader.stakater.com/auto: "true"
{% endif %}
{% endif %}
labels:
app: mongo
app.kubernetes.io/part-of: schulcloud-verbund
Expand Down
6 changes: 6 additions & 0 deletions ansible/roles/dof_postgresql/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ kind: Deployment
metadata:
name: postgres-deployment
namespace: {{ NAMESPACE }}
{% if ANNOTATIONS is defined and ANNOTATIONS|bool %}
annotations:
{% if RELOADER is defined and RELOADER|bool %}
reloader.stakater.com/auto: "true"
{% endif %}
{% endif %}
labels:
app: postgres
app.kubernetes.io/part-of: schulcloud-verbund
Expand Down
6 changes: 6 additions & 0 deletions ansible/roles/dof_redis/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ kind: Deployment
metadata:
name: redis-deployment
namespace: {{ NAMESPACE }}
{% if ANNOTATIONS is defined and ANNOTATIONS|bool %}
annotations:
{% if RELOADER is defined and RELOADER|bool %}
reloader.stakater.com/auto: "true"
{% endif %}
{% endif %}
labels:
app: redis
app.kubernetes.io/part-of: schulcloud-verbund
Expand Down
6 changes: 6 additions & 0 deletions ansible/roles/erwin-idm/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ kind: Deployment
metadata:
name: erwinidm-deployment
namespace: {{ NAMESPACE }}
{% if ANNOTATIONS is defined and ANNOTATIONS|bool %}
annotations:
{% if RELOADER is defined and RELOADER|bool %}
reloader.stakater.com/auto: "true"
{% endif %}
{% endif %}
labels:
app: erwinidm
app.kubernetes.io/part-of: schulcloud-verbund
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ kind: Deployment
metadata:
name: api-h5p-proxy-deployment
namespace: {{ NAMESPACE }}
{% if ANNOTATIONS is defined and ANNOTATIONS|bool %}
annotations:
{% if RELOADER is defined and RELOADER|bool %}
reloader.stakater.com/auto: "true"
{% endif %}
{% endif %}
labels:
app: api-h5p-proxy
app.kubernetes.io/part-of: schulcloud-verbund
Expand Down
6 changes: 6 additions & 0 deletions ansible/roles/hydra/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ kind: Deployment
metadata:
name: hydra-deployment
namespace: {{ NAMESPACE }}
{% if ANNOTATIONS is defined and ANNOTATIONS|bool %}
annotations:
{% if RELOADER is defined and RELOADER|bool %}
reloader.stakater.com/auto: "true"
{% endif %}
{% endif %}
labels:
app: hydra
app.kubernetes.io/part-of: schulcloud-verbund
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ kind: Deployment
metadata:
name: default-backend-404-deployment
namespace: {{ NAMESPACE }}
{% if ANNOTATIONS is defined and ANNOTATIONS|bool %}
annotations:
{% if RELOADER is defined and RELOADER|bool %}
reloader.stakater.com/auto: "true"
{% endif %}
{% endif %}
labels:
app: default-backend-404
app.kubernetes.io/part-of: schulcloud-verbund
Expand Down
6 changes: 6 additions & 0 deletions ansible/roles/libreoffice/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ kind: Deployment
metadata:
name: libreoffice-deployment
namespace: {{ NAMESPACE }}
{% if ANNOTATIONS is defined and ANNOTATIONS|bool %}
annotations:
{% if RELOADER is defined and RELOADER|bool %}
reloader.stakater.com/auto: "true"
{% endif %}
{% endif %}
labels:
app: libreoffice
app.kubernetes.io/part-of: schulcloud-verbund
Expand Down
6 changes: 6 additions & 0 deletions ansible/roles/maildrop/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ kind: Deployment
metadata:
name: maildrop-deployment
namespace: {{ NAMESPACE }}
{% if ANNOTATIONS is defined and ANNOTATIONS|bool %}
annotations:
{% if RELOADER is defined and RELOADER|bool %}
reloader.stakater.com/auto: "true"
{% endif %}
{% endif %}
labels:
app: maildrop
app.kubernetes.io/part-of: schulcloud-verbund
Expand Down
6 changes: 6 additions & 0 deletions ansible/roles/oidcmock/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ kind: Deployment
metadata:
name: oidcmock-deployment
namespace: {{ NAMESPACE }}
{% if ANNOTATIONS is defined and ANNOTATIONS|bool %}
annotations:
{% if RELOADER is defined and RELOADER|bool %}
reloader.stakater.com/auto: "true"
{% endif %}
{% endif %}
labels:
app: oidcmock
app.kubernetes.io/part-of: schulcloud-verbund
Expand Down
6 changes: 6 additions & 0 deletions ansible/roles/rocketchat/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ kind: Deployment
metadata:
name: rocketchat-deployment
#namespace: {{ NAMESPACE }}
{% if ANNOTATIONS is defined and ANNOTATIONS|bool %}
annotations:
{% if RELOADER is defined and RELOADER|bool %}
reloader.stakater.com/auto: "true"
{% endif %}
{% endif %}
labels:
app: rocketchat
app.kubernetes.io/part-of: schulcloud-verbund
Expand Down
6 changes: 6 additions & 0 deletions ansible/roles/storage/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ kind: Deployment
metadata:
name: storage-deployment
namespace: {{ NAMESPACE }}
{% if ANNOTATIONS is defined and ANNOTATIONS|bool %}
annotations:
{% if RELOADER is defined and RELOADER|bool %}
reloader.stakater.com/auto: "true"
{% endif %}
{% endif %}
labels:
app: storage
app.kubernetes.io/part-of: schulcloud-verbund
Expand Down

0 comments on commit d6652c0

Please sign in to comment.