From 73cae8abcef371821984772e48c3f7b700efc7fe Mon Sep 17 00:00:00 2001 From: Tejas <47889755+0xtejas@users.noreply.github.com> Date: Mon, 14 Oct 2024 22:24:22 +0530 Subject: [PATCH 1/5] Fix NOTIFY_INBOX_ONLY value in workspace deployment --- kube/workspace/workspace-deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube/workspace/workspace-deployment.yaml b/kube/workspace/workspace-deployment.yaml index 6660c40..1ae8ebb 100644 --- a/kube/workspace/workspace-deployment.yaml +++ b/kube/workspace/workspace-deployment.yaml @@ -48,7 +48,7 @@ spec: - name: TRANSACTOR_URL value: ws://transactor:3333;ws://localhost:3333 - name: NOTIFY_INBOX_ONLY - value: true + value: "true" image: hardcoreeng/workspace:latest name: workspace resources: From 6203ebb591229f1793993e040dd8407a48a8816e Mon Sep 17 00:00:00 2001 From: Tejas <47889755+0xtejas@users.noreply.github.com> Date: Mon, 14 Oct 2024 22:34:51 +0530 Subject: [PATCH 2/5] Update elastic-deployment.yaml with namespace, security context, and minor improvements - Added namespace: huly under metadata. - Added curl installation in the container's args. - Set initialDelaySeconds for livenessProbe to 60. --- kube/elastic/elastic-deployment.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/kube/elastic/elastic-deployment.yaml b/kube/elastic/elastic-deployment.yaml index e98300a..8711575 100644 --- a/kube/elastic/elastic-deployment.yaml +++ b/kube/elastic/elastic-deployment.yaml @@ -4,6 +4,7 @@ metadata: labels: app: elastic name: elastic + namespace: huly spec: replicas: 1 selector: @@ -16,11 +17,17 @@ spec: labels: app: elastic spec: + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + fsGroup: 1000 containers: - args: - /bin/sh - -c - |- + chown -R 1000:1000 /usr/share/elasticsearch/data; + apt-get update && apt-get install -y curl; ./bin/elasticsearch-plugin list | grep -q ingest-attachment || yes | ./bin/elasticsearch-plugin install --silent ingest-attachment; /usr/local/bin/docker-entrypoint.sh eswrapper env: @@ -40,9 +47,12 @@ spec: livenessProbe: exec: command: + - /bin/sh + - -c - curl -s http://localhost:9200/_cluster/health | grep -vq '"status":"red"' - failureThreshold: 10 + initialDelaySeconds: 60 periodSeconds: 20 + failureThreshold: 10 name: elastic ports: - containerPort: 9200 @@ -55,4 +65,4 @@ spec: volumes: - name: elastic persistentVolumeClaim: - claimName: elastic + claimName: elastic \ No newline at end of file From 1b81199f40c600d3582e0e7015deae9f9e450e0a Mon Sep 17 00:00:00 2001 From: Tejas <47889755+0xtejas@users.noreply.github.com> Date: Mon, 14 Oct 2024 22:45:21 +0530 Subject: [PATCH 3/5] Revert "Update elastic-deployment.yaml with namespace, security context, and minor improvements" This reverts commit 6203ebb591229f1793993e040dd8407a48a8816e. --- kube/elastic/elastic-deployment.yaml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/kube/elastic/elastic-deployment.yaml b/kube/elastic/elastic-deployment.yaml index 8711575..e98300a 100644 --- a/kube/elastic/elastic-deployment.yaml +++ b/kube/elastic/elastic-deployment.yaml @@ -4,7 +4,6 @@ metadata: labels: app: elastic name: elastic - namespace: huly spec: replicas: 1 selector: @@ -17,17 +16,11 @@ spec: labels: app: elastic spec: - securityContext: - runAsUser: 1000 - runAsGroup: 1000 - fsGroup: 1000 containers: - args: - /bin/sh - -c - |- - chown -R 1000:1000 /usr/share/elasticsearch/data; - apt-get update && apt-get install -y curl; ./bin/elasticsearch-plugin list | grep -q ingest-attachment || yes | ./bin/elasticsearch-plugin install --silent ingest-attachment; /usr/local/bin/docker-entrypoint.sh eswrapper env: @@ -47,12 +40,9 @@ spec: livenessProbe: exec: command: - - /bin/sh - - -c - curl -s http://localhost:9200/_cluster/health | grep -vq '"status":"red"' - initialDelaySeconds: 60 - periodSeconds: 20 failureThreshold: 10 + periodSeconds: 20 name: elastic ports: - containerPort: 9200 @@ -65,4 +55,4 @@ spec: volumes: - name: elastic persistentVolumeClaim: - claimName: elastic \ No newline at end of file + claimName: elastic From 7f567013c6521b9367aebc71a0ff247bd7018f33 Mon Sep 17 00:00:00 2001 From: Tejas <47889755+0xtejas@users.noreply.github.com> Date: Sat, 19 Oct 2024 11:54:29 +0530 Subject: [PATCH 4/5] Update workspace-deployment.yaml to remove unused environment variables --- kube/workspace/workspace-deployment.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/kube/workspace/workspace-deployment.yaml b/kube/workspace/workspace-deployment.yaml index 1ae8ebb..6857dd2 100644 --- a/kube/workspace/workspace-deployment.yaml +++ b/kube/workspace/workspace-deployment.yaml @@ -45,9 +45,6 @@ spec: secretKeyRef: name: huly-secret key: SERVER_SECRET - - name: TRANSACTOR_URL - value: ws://transactor:3333;ws://localhost:3333 - - name: NOTIFY_INBOX_ONLY value: "true" image: hardcoreeng/workspace:latest name: workspace From 8d99225c4c220150ccc8800659ea8b35aa84c3d0 Mon Sep 17 00:00:00 2001 From: Tejas <47889755+0xtejas@users.noreply.github.com> Date: Sun, 20 Oct 2024 12:12:15 +0530 Subject: [PATCH 5/5] Remove unused environment variable in workspace-deployment.yaml --- kube/workspace/workspace-deployment.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/kube/workspace/workspace-deployment.yaml b/kube/workspace/workspace-deployment.yaml index 6857dd2..2365f3f 100644 --- a/kube/workspace/workspace-deployment.yaml +++ b/kube/workspace/workspace-deployment.yaml @@ -45,7 +45,6 @@ spec: secretKeyRef: name: huly-secret key: SERVER_SECRET - value: "true" image: hardcoreeng/workspace:latest name: workspace resources: