Skip to content

Commit

Permalink
Changes to infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Barbaro committed Feb 6, 2023
1 parent 84dc580 commit 6b6a731
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 6 deletions.
8 changes: 6 additions & 2 deletions infra/kubernetes/manifest/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@ metadata:
name: leaderboards-deployment
labels:
app: leaderboards
tier: deployment
spec:
replicas: 1
selector:
matchLabels:
app: leaderboards
tier: container
template:
metadata:
labels:
app: leaderboards
tier: container
spec:
imagePullSecrets:
- name: github-image-pull-token
containers:
- name: leaderboards
image: 'lunatech-leaderboards:latest'
imagePullPolicy: Never
image: 'ghcr.io/lunatech-labs/lunatech-leaderboards:latest'
ports:
- containerPort: 8080
name: http-web-svc
Expand Down
30 changes: 30 additions & 0 deletions infra/kubernetes/manifest/ingress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: leaderboards-ingress
namespace: leaderboards
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
external-dns.alpha.kubernetes.io/hostname: api.lunatech.cloud
ingress.kubernetes.io/proxy-body-size: 100M
ingress.kubernetes.io/app-root: "/leaderboard"
nginx.ingress.kubernetes.io/auth-url: "http://auth-provider.lunacloud.svc.cluster.local:8080/verify"
nginx.ingress.kubernetes.io/auth-signin: "https://lunatech.cloud/oauth2/start?rd=https://api.lunatech.cloud$escaped_request_uri"
nginx.ingress.kubernetes.io/auth-response-headers: Authorization
spec:
ingressClassName: nginx
tls:
- hosts:
- api.lunatech.cloud
secretName: api-tls
rules:
- host: api.lunatech.cloud
- http:
paths:
- path: /leaderboards
pathType: Prefix
backend:
service:
name: leaderboards-service
port:
name: http-web-svc
1 change: 1 addition & 0 deletions infra/kubernetes/manifest/kustomization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ resources:
- database.yml
- deployment.yml
- service.yml
- ingress.yml
5 changes: 2 additions & 3 deletions infra/kubernetes/manifest/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ kind: Service
metadata:
name: leaderboards-service
namespace: leaderboards
labels:
app: leaderboards
spec:
selector:
app: leaderboards
tier: container
ports:
- name: http
protocol: TCP
port: 80
targetPort: http-web-svc
targetPort: 8080
type: ClusterIP
2 changes: 1 addition & 1 deletion leaderboards-app/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ quarkus:
# Building
container-image:
group: lunatech-labs
name: lunacloud-leaderboards
name: lunatech-leaderboards
registry: ghcr.io
additional-tags: latest

0 comments on commit 6b6a731

Please sign in to comment.