Skip to content

Commit

Permalink
Merge pull request #5 from jecklgamis/next
Browse files Browse the repository at this point in the history
Enable ingress for jecklgamis.com, update README
  • Loading branch information
jecklgamis authored Dec 20, 2023
2 parents b49fa6d + 15d417a commit 0575e73
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This is an example Spring Boot app using Java.
* Enables some actuator endpoints (health, metrics)

## Running The App
Ensure you have Java 8 or later.
Ensure you have Java 21 or later.
```
./mvnw clean package
java -jar target/spring-boot-java-example.jar
Expand Down
5 changes: 5 additions & 0 deletions deployment/k8s/helm/chart/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ spec:
secretName: {{ .secretName }}
{{- end }}
{{- end }}
defaultBackend:
service:
name: front-gate
port:
number: 80
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
Expand Down
24 changes: 14 additions & 10 deletions deployment/k8s/helm/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ replicaCount: 1

image:
repository: jecklgamis/spring-boot-java-example
pullPolicy: IfNotPresent
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: "main"

imagePullSecrets: [ ]
imagePullSecrets:
- name: dockerhub
nameOverride: ""
fullnameOverride: ""

Expand Down Expand Up @@ -41,20 +42,23 @@ service:
port: 80

ingress:
enabled: false
enabled: true
className: ""
annotations:
kubernetes.io/ingress.class: "nginx"
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/rewrite-target: /
cert-manager.io/issuer: "letsencrypt-prod"
nginx.ingress.kubernetes.io/proxy-body-size: "0"
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
hosts:
- host: spring-boot-java-example.local
- host: spring-boot-java-example.jecklgamis.com
paths:
- path: /
pathType: Prefix
tls: [ ]
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
tls:
- secretName: spring-boot-java-example
hosts:
- spring-boot-java-example.jecklgamis.com

resources: { }
# We usually recommend not to specify default resources and to leave this as a conscious
Expand All @@ -69,7 +73,7 @@ resources: { }
# memory: 128Mi

autoscaling:
enabled: true
enabled: false
minReplicas: 1
maxReplicas: 2
targetCPUUtilizationPercentage: 80
Expand Down

0 comments on commit 0575e73

Please sign in to comment.