From 38bfd8dfdec082456cb4786aa6829a3c0db5f7db Mon Sep 17 00:00:00 2001 From: Wojciech Galanciak Date: Wed, 19 Jun 2024 16:53:08 +0200 Subject: [PATCH 01/11] New release of the helm chart (#14) --- charts/live/Chart.yaml | 2 +- charts/live/templates/deployment.yaml | 2 ++ charts/live/values.yaml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/live/Chart.yaml b/charts/live/Chart.yaml index eeb8235..207375a 100644 --- a/charts/live/Chart.yaml +++ b/charts/live/Chart.yaml @@ -3,7 +3,7 @@ name: codetogether description: CodeTogether Live provides pair programming and collaborative coding type: application -version: 1.4.20 +version: 1.4.21 appVersion: "2024.2.0" kubeVersion: ">= 1.18.0" diff --git a/charts/live/templates/deployment.yaml b/charts/live/templates/deployment.yaml index 3fa84a1..e9d0e09 100644 --- a/charts/live/templates/deployment.yaml +++ b/charts/live/templates/deployment.yaml @@ -205,6 +205,8 @@ spec: key: systemBaseUrl - name: CT_SSO_SECURE_JWKS_ENDPT_ENABLE value: {{ .Values.sso.jwksEndPointEnabled | quote }} + - name: CT_REQUEST_OFFLINE_ACCESS + value: {{ .Values.sso.offlineAccessScope | default "true" | quote }} {{- end }} {{- if .Values.securityContext.readOnlyRootFilesystem}} diff --git a/charts/live/values.yaml b/charts/live/values.yaml index be0eb58..abfb15c 100644 --- a/charts/live/values.yaml +++ b/charts/live/values.yaml @@ -186,7 +186,7 @@ sso: clientSecret: "my-id-secret" # Set this value to 'true' if you are using Oracle IDCS OpenID Connect. jwksEndPointEnabled: false - + offlineAccessScope: true # # The following sections provide default configurations for the # container and normally do not need to be modified. From 13393b1e84bd2e847c262869696fc40e9c0dda66 Mon Sep 17 00:00:00 2001 From: Patrick Dodgen Date: Tue, 19 Nov 2024 17:27:44 -0700 Subject: [PATCH 02/11] portal helm chart --- charts/portal/Chart.yaml | 4 +++ charts/portal/templates/deployment.yaml | 26 +++++++++++++++++++ charts/portal/templates/ingress.yaml | 23 +++++++++++++++++ charts/portal/templates/service.yaml | 14 +++++++++++ charts/portal/values.yaml | 33 +++++++++++++++++++++++++ 5 files changed, 100 insertions(+) create mode 100644 charts/portal/Chart.yaml create mode 100644 charts/portal/templates/deployment.yaml create mode 100644 charts/portal/templates/ingress.yaml create mode 100644 charts/portal/templates/service.yaml create mode 100644 charts/portal/values.yaml diff --git a/charts/portal/Chart.yaml b/charts/portal/Chart.yaml new file mode 100644 index 0000000..e973a84 --- /dev/null +++ b/charts/portal/Chart.yaml @@ -0,0 +1,4 @@ +apiVersion: v2 +name: portal +description: A Helm chart for deploying the portal +version: 0.1.0 diff --git a/charts/portal/templates/deployment.yaml b/charts/portal/templates/deployment.yaml new file mode 100644 index 0000000..174e637 --- /dev/null +++ b/charts/portal/templates/deployment.yaml @@ -0,0 +1,26 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ .Release.Name }} + labels: + app: {{ .Release.Name }} +spec: + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + app: {{ .Release.Name }} + template: + metadata: + labels: + app: {{ .Release.Name }} + spec: + imagePullSecrets: + {{- toYaml .Values.imagePullSecrets | nindent 8 }} + containers: + - name: {{ .Chart.Name }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - containerPort: 80 + resources: + {{- toYaml .Values.resources | nindent 12 }} \ No newline at end of file diff --git a/charts/portal/templates/ingress.yaml b/charts/portal/templates/ingress.yaml new file mode 100644 index 0000000..641d716 --- /dev/null +++ b/charts/portal/templates/ingress.yaml @@ -0,0 +1,23 @@ +{{- if .Values.ingress.enabled -}} +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: {{ .Release.Name }} +spec: + ingressClassName: {{ .Values.ingress.className }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ .path }} + pathType: {{ .pathType }} + backend: + service: + name: {{ $.Release.Name }} + port: + number: {{ $.Values.service.port }} + {{- end }} + {{- end }} +{{- end }} \ No newline at end of file diff --git a/charts/portal/templates/service.yaml b/charts/portal/templates/service.yaml new file mode 100644 index 0000000..e4f4e56 --- /dev/null +++ b/charts/portal/templates/service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ .Release.Name }} + labels: + app: {{ .Release.Name }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: 80 + protocol: TCP + selector: + app: {{ .Release.Name }} \ No newline at end of file diff --git a/charts/portal/values.yaml b/charts/portal/values.yaml new file mode 100644 index 0000000..c8b176e --- /dev/null +++ b/charts/portal/values.yaml @@ -0,0 +1,33 @@ +# Default values for the application +replicaCount: 2 + +image: + repository: registry.digitalocean.com/codetogether-registry/portal + tag: latest + pullPolicy: Always + +imagePullSecrets: + - name: digitalocean-registry + +service: + type: ClusterIP + port: 80 + +ingress: + enabled: true + className: nginx + hosts: + - host: portal.dev.codetogether.com + paths: + - path: / + pathType: Prefix + +resources: + limits: + cpu: 500m + memory: 512Mi + requests: + cpu: 200m + memory: 256Mi + + From 8f40f508655b319f1d812e5d6a17ab6c735add25 Mon Sep 17 00:00:00 2001 From: Patrick Dodgen Date: Tue, 19 Nov 2024 17:35:24 -0700 Subject: [PATCH 03/11] adding workflow for dev/production deploys --- .github/workflows/portal-dev-deploy.yml | 36 +++++++++++++++++++ .../workflows/portal-production-deploy.yml | 31 ++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 .github/workflows/portal-dev-deploy.yml create mode 100644 .github/workflows/portal-production-deploy.yml diff --git a/.github/workflows/portal-dev-deploy.yml b/.github/workflows/portal-dev-deploy.yml new file mode 100644 index 0000000..58262ac --- /dev/null +++ b/.github/workflows/portal-dev-deploy.yml @@ -0,0 +1,36 @@ +name: Release Charts + +on: + push: + branches: + - main + paths: + - charts/portal/** + +jobs: + release: + # depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions + # see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token + permissions: + contents: write + runs-on: ubuntu-latest + defaults: + run: + working-directory: charts/portal + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up kubectl + uses: azure/k8s-set-context@v1 + with: + kubeconfig: ${{ secrets.DEV_KUBE_CONFIG }} + + - name: Install Helm + uses: azure/setup-helm@v3 + + - name: deploy portal to dev + run: | + helm upgrade portal portal -n portal -f portal/values.yaml -f portal/environments/dev.yaml diff --git a/.github/workflows/portal-production-deploy.yml b/.github/workflows/portal-production-deploy.yml new file mode 100644 index 0000000..118b365 --- /dev/null +++ b/.github/workflows/portal-production-deploy.yml @@ -0,0 +1,31 @@ +name: Deploy to Production + +# on: +# push: +# branches: +# - main + +env: + KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} + DOCKER_REGISTRY: your-registry + DOCKER_IMAGE: your-app + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up kubectl + uses: azure/k8s-set-context@v1 + with: + kubeconfig: ${{ secrets.PRODUCTION_KUBE_CONFIG }} + + - name: Install Helm + uses: azure/setup-helm@v3 + with: + version: 'v3.12.0' + + - name: Deploy to production + run: | + helm upgrade portal portal -n portal -f portal/values.yaml -f portal/environments/production.yaml From 53784a48703a84b593d10f30cfc77414aa1c0e3c Mon Sep 17 00:00:00 2001 From: Patrick Dodgen Date: Tue, 19 Nov 2024 17:37:42 -0700 Subject: [PATCH 04/11] removing workflow for now --- .github/workflows/portal-dev-deploy.yml | 36 ------------------- .../workflows/portal-production-deploy.yml | 31 ---------------- 2 files changed, 67 deletions(-) delete mode 100644 .github/workflows/portal-dev-deploy.yml delete mode 100644 .github/workflows/portal-production-deploy.yml diff --git a/.github/workflows/portal-dev-deploy.yml b/.github/workflows/portal-dev-deploy.yml deleted file mode 100644 index 58262ac..0000000 --- a/.github/workflows/portal-dev-deploy.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Release Charts - -on: - push: - branches: - - main - paths: - - charts/portal/** - -jobs: - release: - # depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions - # see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token - permissions: - contents: write - runs-on: ubuntu-latest - defaults: - run: - working-directory: charts/portal - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Set up kubectl - uses: azure/k8s-set-context@v1 - with: - kubeconfig: ${{ secrets.DEV_KUBE_CONFIG }} - - - name: Install Helm - uses: azure/setup-helm@v3 - - - name: deploy portal to dev - run: | - helm upgrade portal portal -n portal -f portal/values.yaml -f portal/environments/dev.yaml diff --git a/.github/workflows/portal-production-deploy.yml b/.github/workflows/portal-production-deploy.yml deleted file mode 100644 index 118b365..0000000 --- a/.github/workflows/portal-production-deploy.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Deploy to Production - -# on: -# push: -# branches: -# - main - -env: - KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} - DOCKER_REGISTRY: your-registry - DOCKER_IMAGE: your-app - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Set up kubectl - uses: azure/k8s-set-context@v1 - with: - kubeconfig: ${{ secrets.PRODUCTION_KUBE_CONFIG }} - - - name: Install Helm - uses: azure/setup-helm@v3 - with: - version: 'v3.12.0' - - - name: Deploy to production - run: | - helm upgrade portal portal -n portal -f portal/values.yaml -f portal/environments/production.yaml From 4381a285bc5dd50658d7778a62ff82e1ec30d945 Mon Sep 17 00:00:00 2001 From: Patrick Dodgen Date: Wed, 20 Nov 2024 16:37:21 -0700 Subject: [PATCH 05/11] final touches to helm chart, relies on a secret that will have to be created manually until we implement a secure secret storage solution --- charts/portal/environments/dev.yaml | 20 ++++++++++++++++++++ charts/portal/environments/production.yaml | 17 +++++++++++++++++ charts/portal/templates/deployment.yaml | 5 ++++- 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 charts/portal/environments/dev.yaml create mode 100644 charts/portal/environments/production.yaml diff --git a/charts/portal/environments/dev.yaml b/charts/portal/environments/dev.yaml new file mode 100644 index 0000000..490f8cd --- /dev/null +++ b/charts/portal/environments/dev.yaml @@ -0,0 +1,20 @@ +image: + tag: c819a2996f8d96cfcadc73cba625d01d70f8df2b + +environment: dev +replicaCount: 1 + +ingress: + hosts: + - host: staging.app.example.com + paths: + - path: / + pathType: Prefix + +resources: + limits: + cpu: 300m + memory: 384Mi + requests: + cpu: 100m + memory: 128Mi diff --git a/charts/portal/environments/production.yaml b/charts/portal/environments/production.yaml new file mode 100644 index 0000000..6757221 --- /dev/null +++ b/charts/portal/environments/production.yaml @@ -0,0 +1,17 @@ +environment: production +replicaCount: 3 + +ingress: + hosts: + - host: app.example.com + paths: + - path: / + pathType: Prefix + +resources: + limits: + cpu: 500m + memory: 512Mi + requests: + cpu: 200m + memory: 256Mi \ No newline at end of file diff --git a/charts/portal/templates/deployment.yaml b/charts/portal/templates/deployment.yaml index 174e637..9886062 100644 --- a/charts/portal/templates/deployment.yaml +++ b/charts/portal/templates/deployment.yaml @@ -23,4 +23,7 @@ spec: ports: - containerPort: 80 resources: - {{- toYaml .Values.resources | nindent 12 }} \ No newline at end of file + {{- toYaml .Values.resources | nindent 12 }} + envFrom: + - secretRef: + name: portal-secrets From e5a8a593062295cdc3ae8d98dfc17ec7e6fa6f01 Mon Sep 17 00:00:00 2001 From: Patrick Dodgen Date: Wed, 20 Nov 2024 19:24:36 -0700 Subject: [PATCH 06/11] github actions & environment files --- .github/workflows/portal-dev-deploy.yml | 46 +++++++++++++++++++ .../workflows/portal-production-deploy.yml | 46 +++++++++++++++++++ charts/portal/environments/dev.yaml | 2 +- charts/portal/environments/production.yaml | 6 ++- 4 files changed, 97 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/portal-dev-deploy.yml create mode 100644 .github/workflows/portal-production-deploy.yml diff --git a/.github/workflows/portal-dev-deploy.yml b/.github/workflows/portal-dev-deploy.yml new file mode 100644 index 0000000..3ffcf2c --- /dev/null +++ b/.github/workflows/portal-dev-deploy.yml @@ -0,0 +1,46 @@ +name: Deploy to Production + +on: + workflow_dispatch: + inputs: + tag: + type: string + description: The tag to deploy + required: true + +env: + KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} + DOCKER_REGISTRY: your-registry + DOCKER_IMAGE: your-app + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up kubectl + uses: azure/k8s-set-context@v1 + with: + kubeconfig: ${{ secrets.DEV_KUBE_CONFIG }} + + - name: Install Helm + uses: azure/setup-helm@v3 + with: + version: 'v3.12.0' + + - name: Update image tag in values file + run: | + sed -i "s/tag: .*/tag: ${{ github.event.inputs.tag }}/" charts/portal/environments/dev.yaml + + - name: Commit changes + run: | + git config --global user.name 'GitHub Actions' + git config --global user.email 'github-actions@github.com' + git add charts/portal/environments/dev.yaml + git commit -m "Update image tag to ${{ github.event.inputs.tag }}" + git push + + - name: Deploy to dev + run: | + helm upgrade portal portal -n portal -f portal/values.yaml -f portal/environments/dev.yaml diff --git a/.github/workflows/portal-production-deploy.yml b/.github/workflows/portal-production-deploy.yml new file mode 100644 index 0000000..9f80e7e --- /dev/null +++ b/.github/workflows/portal-production-deploy.yml @@ -0,0 +1,46 @@ +name: Deploy to Production + +on: + workflow_dispatch: + inputs: + tag: + type: string + description: The tag to deploy + required: true + +env: + KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} + DOCKER_REGISTRY: your-registry + DOCKER_IMAGE: your-app + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up kubectl + uses: azure/k8s-set-context@v1 + with: + kubeconfig: ${{ secrets.PRODUCTION_KUBE_CONFIG }} + + - name: Install Helm + uses: azure/setup-helm@v3 + with: + version: 'v3.12.0' + + - name: Update image tag in values file + run: | + sed -i "s/tag: .*/tag: ${{ github.event.inputs.tag }}/" charts/portal/environments/production.yaml + + - name: Commit changes + run: | + git config --global user.name 'GitHub Actions' + git config --global user.email 'github-actions@github.com' + git add charts/portal/environments/production.yaml + git commit -m "Update image tag to ${{ github.event.inputs.tag }}" + git push + + - name: Deploy to production + run: | + helm upgrade portal portal -n portal -f portal/values.yaml -f portal/environments/production.yaml diff --git a/charts/portal/environments/dev.yaml b/charts/portal/environments/dev.yaml index 490f8cd..c53a732 100644 --- a/charts/portal/environments/dev.yaml +++ b/charts/portal/environments/dev.yaml @@ -6,7 +6,7 @@ replicaCount: 1 ingress: hosts: - - host: staging.app.example.com + - host: portal.dev.codetogether.com paths: - path: / pathType: Prefix diff --git a/charts/portal/environments/production.yaml b/charts/portal/environments/production.yaml index 6757221..f1696ed 100644 --- a/charts/portal/environments/production.yaml +++ b/charts/portal/environments/production.yaml @@ -1,9 +1,11 @@ environment: production -replicaCount: 3 +replicaCount: 2 +image: + tag: c819a2996f8d96cfcadc73cba625d01d70f8df2b ingress: hosts: - - host: app.example.com + - host: app.codetogether.com paths: - path: / pathType: Prefix From 76b12c58e2d82216d3ee3bea88340a5f75a636b2 Mon Sep 17 00:00:00 2001 From: Patrick Dodgen Date: Thu, 12 Dec 2024 11:55:56 -0700 Subject: [PATCH 07/11] updates for portal chart --- charts/portal/environments/production.yaml | 3 ++- charts/portal/templates/deployment.yaml | 28 +++++++++++++++++++++- charts/portal/templates/service.yaml | 2 +- charts/portal/values.yaml | 2 +- 4 files changed, 31 insertions(+), 4 deletions(-) diff --git a/charts/portal/environments/production.yaml b/charts/portal/environments/production.yaml index f1696ed..b93ef3e 100644 --- a/charts/portal/environments/production.yaml +++ b/charts/portal/environments/production.yaml @@ -1,9 +1,10 @@ environment: production replicaCount: 2 image: - tag: c819a2996f8d96cfcadc73cba625d01d70f8df2b + tag: dev-6a0ed36693d3b7ce4fd1b1141a160a24e9ec8ba6 ingress: + enabled: false hosts: - host: app.codetogether.com paths: diff --git a/charts/portal/templates/deployment.yaml b/charts/portal/templates/deployment.yaml index 9886062..a1e93a4 100644 --- a/charts/portal/templates/deployment.yaml +++ b/charts/portal/templates/deployment.yaml @@ -20,10 +20,36 @@ spec: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + command: [ "yarn", "run", "start:backend" ] + args: [ "--hostname=0.0.0.0", "--port=3000" ] ports: - - containerPort: 80 + - containerPort: 3000 resources: {{- toYaml .Values.resources | nindent 12 }} envFrom: - secretRef: name: portal-secrets + readinessProbe: + httpGet: + path: /dashboard + port: 3000 + initialDelaySeconds: 5 + periodSeconds: 5 + failureThreshold: 5 + successThreshold: 1 + livenessProbe: + httpGet: + path: /dashboard + port: 3000 + initialDelaySeconds: 5 + periodSeconds: 5 + failureThreshold: 5 + successThreshold: 1 + startupProbe: + httpGet: + path: /dashboard + port: 3000 + initialDelaySeconds: 5 + periodSeconds: 5 + failureThreshold: 20 + successThreshold: 1 diff --git a/charts/portal/templates/service.yaml b/charts/portal/templates/service.yaml index e4f4e56..f95d4ed 100644 --- a/charts/portal/templates/service.yaml +++ b/charts/portal/templates/service.yaml @@ -8,7 +8,7 @@ spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }} - targetPort: 80 + targetPort: 3000 protocol: TCP selector: app: {{ .Release.Name }} \ No newline at end of file diff --git a/charts/portal/values.yaml b/charts/portal/values.yaml index c8b176e..bbae5ee 100644 --- a/charts/portal/values.yaml +++ b/charts/portal/values.yaml @@ -11,7 +11,7 @@ imagePullSecrets: service: type: ClusterIP - port: 80 + port: 3000 ingress: enabled: true From dcf9c549b8ddc94b09fbf5b9391d406be8dfba94 Mon Sep 17 00:00:00 2001 From: Patrick Dodgen Date: Thu, 12 Dec 2024 16:45:56 -0700 Subject: [PATCH 08/11] changing base path to saas-admin --- charts/portal/environments/production.yaml | 2 +- charts/portal/templates/deployment.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/portal/environments/production.yaml b/charts/portal/environments/production.yaml index b93ef3e..313bff2 100644 --- a/charts/portal/environments/production.yaml +++ b/charts/portal/environments/production.yaml @@ -1,7 +1,7 @@ environment: production replicaCount: 2 image: - tag: dev-6a0ed36693d3b7ce4fd1b1141a160a24e9ec8ba6 + tag: prod-1c73b5aa304002a7412eadd86f063350ec78db8d ingress: enabled: false diff --git a/charts/portal/templates/deployment.yaml b/charts/portal/templates/deployment.yaml index a1e93a4..dce7771 100644 --- a/charts/portal/templates/deployment.yaml +++ b/charts/portal/templates/deployment.yaml @@ -31,7 +31,7 @@ spec: name: portal-secrets readinessProbe: httpGet: - path: /dashboard + path: /saas-admin port: 3000 initialDelaySeconds: 5 periodSeconds: 5 @@ -39,7 +39,7 @@ spec: successThreshold: 1 livenessProbe: httpGet: - path: /dashboard + path: /saas-admin port: 3000 initialDelaySeconds: 5 periodSeconds: 5 @@ -47,7 +47,7 @@ spec: successThreshold: 1 startupProbe: httpGet: - path: /dashboard + path: /saas-admin port: 3000 initialDelaySeconds: 5 periodSeconds: 5 From 680388b099ae326d4338d93f77bda9a9e79c58ea Mon Sep 17 00:00:00 2001 From: Patrick Dodgen Date: Thu, 12 Dec 2024 17:20:49 -0700 Subject: [PATCH 09/11] adding configmap for kubeconfig --- charts/portal/templates/deployment.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/charts/portal/templates/deployment.yaml b/charts/portal/templates/deployment.yaml index dce7771..dc9d8f5 100644 --- a/charts/portal/templates/deployment.yaml +++ b/charts/portal/templates/deployment.yaml @@ -53,3 +53,12 @@ spec: periodSeconds: 5 failureThreshold: 20 successThreshold: 1 + volumeMounts: + - name: kubeconfig + mountPath: /root/.kube/config + subPath: kube-config + volumes: + - name: kubeconfig + configMap: + name: portal-kubeconfig + \ No newline at end of file From 640d40a43e4ca675bd24a5eb2cc3c4434ea4f66f Mon Sep 17 00:00:00 2001 From: Patrick Dodgen Date: Wed, 25 Dec 2024 21:30:51 -0700 Subject: [PATCH 10/11] fixing kubernetes config file warning --- charts/portal/templates/deployment.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/portal/templates/deployment.yaml b/charts/portal/templates/deployment.yaml index dc9d8f5..48d6902 100644 --- a/charts/portal/templates/deployment.yaml +++ b/charts/portal/templates/deployment.yaml @@ -61,4 +61,5 @@ spec: - name: kubeconfig configMap: name: portal-kubeconfig + defaultMode: 0600 \ No newline at end of file From 3ac63758b0d91ef15d6b3a71afc3307736ecebd4 Mon Sep 17 00:00:00 2001 From: Patrick Dodgen Date: Fri, 31 Jan 2025 09:26:10 -0700 Subject: [PATCH 11/11] removing ingress configuration for portal --- charts/portal/values.yaml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/charts/portal/values.yaml b/charts/portal/values.yaml index bbae5ee..b6f6939 100644 --- a/charts/portal/values.yaml +++ b/charts/portal/values.yaml @@ -13,15 +13,6 @@ service: type: ClusterIP port: 3000 -ingress: - enabled: true - className: nginx - hosts: - - host: portal.dev.codetogether.com - paths: - - path: / - pathType: Prefix - resources: limits: cpu: 500m