Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure ingress for webapp #112

Merged
merged 3 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/
123 changes: 0 additions & 123 deletions webapp/deploy/helm/gfts-webapp/values.yaml

This file was deleted.

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
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
Loading