Skip to content

Commit

Permalink
Deploy quarkus-reactive
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-eberle committed Feb 15, 2024
1 parent 621c790 commit 39b4092
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/k8s-quarkus-reactive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Quarkus Reactive Build & Deploy on k8s

on:
push:
branches:
- '**'
paths:
- bookstore-quarkus-reactive/**


jobs:
build:
name: build & push
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: build & deploy quarkus
uses: ./.github/actions/k8s/build-deploy-quarkus
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
kube-config: ${{ secrets.KUBECONFIG }}
working-directory: ./bookstore-quarkus-reactive

- name: deploy postgres
uses: ./.github/actions/k8s/deploy-postgres
with:
release-name: bookstore-quarkus-reactive
anti-affinity-value: bookstore-quarkus-reactive
kube-config: ${{ secrets.KUBECONFIG }}
1 change: 1 addition & 0 deletions bookstore-quarkus-reactive/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ dependencies {
implementation("io.quarkus:quarkus-smallrye-health")

implementation("io.quarkus:quarkus-container-image-jib")
implementation("io.quarkus:quarkus-kubernetes")

testImplementation("io.quarkus:quarkus-junit5")
testImplementation("io.rest-assured:rest-assured")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,18 @@ quarkus.datasource.reactive.reconnect-attempts=3
quarkus.flyway.migrate-at-start=false
quarkus.flyway.clean-at-start=false
quarkus.flyway.baseline-on-migrate=true
# Health
quarkus.health.extensions.enabled=false
#
# Kubernetes Deployment Config
quarkus.kubernetes.resources.requests.memory=64Mi
quarkus.kubernetes.resources.requests.cpu=50m
quarkus.kubernetes.resources.limits.memory=512Mi
quarkus.kubernetes.resources.limits.cpu=1000m
quarkus.kubernetes.ingress.expose=true
quarkus.kubernetes.ingress.host=${quarkus.application.name}.benchmarks.k8s.dev.arconsis.com
quarkus.kubernetes.ingress.tls.bookstore-quarkus-reactive-tls.enabled=true
quarkus.kubernetes.ingress.tls.bookstore-quarkus-reactive-tls.hosts=${quarkus.kubernetes.ingress.host}
quarkus.kubernetes.ingress.annotations."cert-manager.io/cluster-issuer"=letsencrypt-prod
quarkus.kubernetes.ingress.annotations."kubernetes.io/tls-acme"=true
quarkus.kubernetes.env.mapping.DB_PASSWORD.from-secret=${quarkus.application.name}-postgresql
quarkus.kubernetes.env.mapping.DB_PASSWORD.with-key=postgres-password
quarkus.kubernetes.env.vars.DB_HOST=${quarkus.application.name}-postgresql

0 comments on commit 39b4092

Please sign in to comment.