Skip to content

Commit

Permalink
Merge pull request #517 from kubero-dev/template/add-logto
Browse files Browse the repository at this point in the history
Template / Add Logto
  • Loading branch information
mms-gianni authored Dec 30, 2024
2 parents 0cefbc4 + e808c84 commit a5a0f68
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 0 deletions.
68 changes: 68 additions & 0 deletions services/logto/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
apiVersion: application.kubero.dev/v1alpha1
kind: KuberoApp
metadata:
name: logto
annotations:
kubero.dev/template.architecture: "[]"
kubero.dev/template.description: "Logto is an open-source Identity and Access Management (IAM) platform designed to streamline Customer Identity and Access Management (CIAM) and Workforce Identity Management. "
kubero.dev/template.icon: "https://avatars.githubusercontent.com/u/84981374"
kubero.dev/template.installation: "run kubectl `apply -f https://raw.githubusercontent.com/kubero-dev/kubero/main/services/logto/logto-admin-ingress.yaml` to enable the admin interface.
A list of all available environment variables can be found here : https://docs.logto.io/docs/references/core/configuration/"
kubero.dev/template.links: '["https://docs.logto.io/"]'
kubero.dev/template.screenshots: "[]"
kubero.dev/template.source: "https://github.com/logto-io/logto"
kubero.dev/template.categories: '["identity", "access", "management"]'
kubero.dev/template.title: "logto"
kubero.dev/template.website: "https://logto.io/"
labels:
manager: kubero
spec:
name: logto
deploymentstrategy: docker
envVars:
- name: DB_URL
value: postgresql://postgres:logto@logto-postgresql:5432/logto
- name: TRUST_PROXY_HEADER
value: "1"
- name: ENDPOINT
value: https://logto.localhost
- name: ADMIN_ENDPOINT
value: https://admin.logto.localhost
extraVolumes: []
cronjobs: []
addons:
- displayName: Postgresql
env: []
icon: /img/addons/pgsql.svg
id: kubero-operator
kind: KuberoPostgresql
resourceDefinitions:
KuberoPostgresql:
apiVersion: application.kubero.dev/v1alpha1
kind: KuberoPostgresql
metadata:
name: logto-postgresql
spec:
postgresql:
global:
postgresql:
auth:
database: postgresql
password: logto
postgresPassword: logto
username: logto
storageClass: standard
primary:
persistence:
size: 1Gi
version:
latest: 0.1.5
web:
replicaCount: 1
worker:
replicaCount: 0
image:
containerPort: 8080
pullPolicy: Always
repository: svhd/logto
tag: latest
44 changes: 44 additions & 0 deletions services/logto/logto-admin-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
kubernetes.io/tls-acme: "true"
name: logto-kuberoapp-admin
spec:
ingressClassName: nginx
rules:
- host: admin.logto.localhost
http:
paths:
- backend:
service:
name: logto-kuberoapp-admin
port:
number: 81
path: /
pathType: ImplementationSpecific
tls:
- secretName: logto-tls
status:
loadBalancer:
ingress:
- hostname: localhost
---
apiVersion: v1
kind: Service
metadata:
name: logto-kuberoapp-admin
spec:
ports:
- name: http
port: 81
protocol: TCP
targetPort: 3002
selector:
app.kubernetes.io/instance: logto-web
app.kubernetes.io/name: kuberoapp
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}

0 comments on commit a5a0f68

Please sign in to comment.