diff --git a/k8s/templates/admin-ui/admin-ui-deployment.yaml b/k8s/templates/admin-ui/admin-ui-deployment.yaml index 79b965b..b6aaf2a 100644 --- a/k8s/templates/admin-ui/admin-ui-deployment.yaml +++ b/k8s/templates/admin-ui/admin-ui-deployment.yaml @@ -12,6 +12,7 @@ spec: template: metadata: annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} kompose.cmd: kompose convert -c kompose.version: 1.21.0 (992df58d8) labels: diff --git a/k8s/templates/api-recovery/api-recovery-deployment.yaml b/k8s/templates/api-recovery/api-recovery-deployment.yaml index d9a7992..3417310 100644 --- a/k8s/templates/api-recovery/api-recovery-deployment.yaml +++ b/k8s/templates/api-recovery/api-recovery-deployment.yaml @@ -10,6 +10,7 @@ spec: template: metadata: annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} kompose.cmd: kompose convert -c kompose.version: 1.21.0 (992df58d8) labels: diff --git a/k8s/templates/backend/backend-deployment.yaml b/k8s/templates/backend/backend-deployment.yaml index aefb618..6ed1281 100644 --- a/k8s/templates/backend/backend-deployment.yaml +++ b/k8s/templates/backend/backend-deployment.yaml @@ -17,6 +17,7 @@ spec: template: metadata: annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} kompose.cmd: kompose convert -c kompose.version: 1.21.0 (992df58d8) labels: diff --git a/k8s/templates/celery-worker/celery-worker-deployment.yaml b/k8s/templates/celery-worker/celery-worker-deployment.yaml index ccf58d3..c18a17b 100644 --- a/k8s/templates/celery-worker/celery-worker-deployment.yaml +++ b/k8s/templates/celery-worker/celery-worker-deployment.yaml @@ -17,6 +17,7 @@ spec: template: metadata: annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} kompose.cmd: kompose convert -c kompose.version: 1.21.0 (992df58d8) labels: diff --git a/k8s/templates/confd/confd-deployment.yaml b/k8s/templates/confd/confd-deployment.yaml index 2dd962d..8e2ec6d 100644 --- a/k8s/templates/confd/confd-deployment.yaml +++ b/k8s/templates/confd/confd-deployment.yaml @@ -17,6 +17,7 @@ spec: template: metadata: annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} kompose.cmd: kompose convert -c kompose.version: 1.21.0 (992df58d8) labels: diff --git a/k8s/templates/documentation/documentation-deployment.yaml b/k8s/templates/documentation/documentation-deployment.yaml index b3f354a..93f0bba 100644 --- a/k8s/templates/documentation/documentation-deployment.yaml +++ b/k8s/templates/documentation/documentation-deployment.yaml @@ -12,6 +12,7 @@ spec: template: metadata: annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} kompose.cmd: kompose convert -c kompose.version: 1.21.0 (992df58d8) labels: diff --git a/k8s/templates/frontend/frontend-deployment.yaml b/k8s/templates/frontend/frontend-deployment.yaml index 2a75544..6f5eea5 100644 --- a/k8s/templates/frontend/frontend-deployment.yaml +++ b/k8s/templates/frontend/frontend-deployment.yaml @@ -17,6 +17,7 @@ spec: template: metadata: annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} kompose.cmd: kompose convert -c kompose.version: 1.21.0 (992df58d8) labels: diff --git a/k8s/templates/module-compilation/module-compilation-deployment.yaml b/k8s/templates/module-compilation/module-compilation-deployment.yaml index 811d57d..a988ef8 100644 --- a/k8s/templates/module-compilation/module-compilation-deployment.yaml +++ b/k8s/templates/module-compilation/module-compilation-deployment.yaml @@ -17,6 +17,7 @@ spec: template: metadata: annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} kompose.cmd: kompose convert -c kompose.version: 1.21.0 (992df58d8) labels: diff --git a/k8s/templates/rabbit/rabbit-deployment.yaml b/k8s/templates/rabbit/rabbit-deployment.yaml index 529753b..d555a36 100644 --- a/k8s/templates/rabbit/rabbit-deployment.yaml +++ b/k8s/templates/rabbit/rabbit-deployment.yaml @@ -18,6 +18,7 @@ spec: metadata: annotations: NAME: rabbitmq1 + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} kompose.cmd: kompose convert -c kompose.version: 1.21.0 (992df58d8) labels: diff --git a/k8s/templates/redis/redis-deployment.yaml b/k8s/templates/redis/redis-deployment.yaml index 2f1c0ef..3c34316 100644 --- a/k8s/templates/redis/redis-deployment.yaml +++ b/k8s/templates/redis/redis-deployment.yaml @@ -15,6 +15,7 @@ spec: template: metadata: annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} kompose.cmd: kompose convert -c kompose.version: 1.21.0 (992df58d8) labels: diff --git a/k8s/templates/yangcatalog-ui/yangcatalog-ui-deployment.yaml b/k8s/templates/yangcatalog-ui/yangcatalog-ui-deployment.yaml index 6d97f6c..9682a01 100644 --- a/k8s/templates/yangcatalog-ui/yangcatalog-ui-deployment.yaml +++ b/k8s/templates/yangcatalog-ui/yangcatalog-ui-deployment.yaml @@ -12,6 +12,7 @@ spec: template: metadata: annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} kompose.cmd: kompose convert -c kompose.version: 1.21.0 (992df58d8) labels: diff --git a/k8s/templates/yangre/yangre-deployment.yaml b/k8s/templates/yangre/yangre-deployment.yaml index ecf67c0..0558ce8 100644 --- a/k8s/templates/yangre/yangre-deployment.yaml +++ b/k8s/templates/yangre/yangre-deployment.yaml @@ -17,6 +17,7 @@ spec: template: metadata: annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} kompose.cmd: kompose convert -c kompose.version: 1.21.0 (992df58d8) labels: diff --git a/k8s/templates/yangvalidator/yangvalidator-deployment.yaml b/k8s/templates/yangvalidator/yangvalidator-deployment.yaml index 7d30a12..03a3c93 100644 --- a/k8s/templates/yangvalidator/yangvalidator-deployment.yaml +++ b/k8s/templates/yangvalidator/yangvalidator-deployment.yaml @@ -17,6 +17,7 @@ spec: template: metadata: annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} kompose.cmd: kompose convert -c kompose.version: 1.21.0 (992df58d8) labels: diff --git a/kubescripts/k8s-upgrade-deploy.sh b/kubescripts/k8s-upgrade-deploy.sh new file mode 100644 index 0000000..ea5a4ef --- /dev/null +++ b/kubescripts/k8s-upgrade-deploy.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# Pass name of the existing helm release as an argument +microk8s helm3 upgrade -f /home/yang/deployment/k8s/values.yaml $1 /home/yang/deployment/k8s