Skip to content

Commit

Permalink
Configure ingress for webapp (#112)
Browse files Browse the repository at this point in the history
* Moved helm charts.
* Configured ingress.
* Disabled prettier on helm charts.
  • Loading branch information
pantierra authored Dec 6, 2024
1 parent 2017cce commit 3055c67
Show file tree
Hide file tree
Showing 14 changed files with 53 additions and 127 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-webapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ jobs:

- name: Update Helm dependencies
run: |
helm dependency update ./webapp/deploy/helm/gfts-webapp
helm dependency update ./webapp/deploy/helm
- name: Deploy to Kubernetes
run: |
helm upgrade --install \
--namespace webapp \
webapp \
./webapp/deploy/helm/gfts-webapp \
./webapp/deploy/helm \
--set image.repository=c63eqfuv.c1.gra9.container-registry.ovh.net/gfts/webapp \
--set image.tag=$(echo "${{ steps.meta.outputs.tags }}" | head -n 1)
env:
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
webapp/deploy/helm/
File renamed without changes.
File renamed without changes.
123 changes: 0 additions & 123 deletions webapp/deploy/helm/gfts-webapp/values.yaml

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
containerPort: {{ .Values.service.targetPort | default .Values.service.port }}
protocol: TCP
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12 }}
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
targetPort: {{ .Values.service.targetPort | default "http" }}
protocol: TCP
name: http
selector:
Expand Down
48 changes: 48 additions & 0 deletions webapp/deploy/helm/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
replicaCount: 1
image:
repository: c63eqfuv.c1.gra9.container-registry.ovh.net/gfts/webapp
pullPolicy: IfNotPresent
tag: "latest"

serviceAccount:
create: true
automount: true
annotations: {}
name: ""

service:
type: ClusterIP
port: 80
targetPort: 9000

ingress:
enabled: true
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: gfts.developmentseed.org
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

resources: {}
livenessProbe:
httpGet:
path: /
port: 9000
readinessProbe:
httpGet:
path: /
port: 9000

autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80

0 comments on commit 3055c67

Please sign in to comment.