From ade97294f235d31b38a71ef50ec5e890003657fe Mon Sep 17 00:00:00 2001 From: Gianni Carafa Date: Tue, 19 Nov 2024 23:17:14 +0100 Subject: [PATCH 1/2] Template / Add Logto --- services/logto/app.yaml | 68 +++++++++++++++++++++++++ services/logto/logto-admin-ingress.yaml | 44 ++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100644 services/logto/app.yaml create mode 100644 services/logto/logto-admin-ingress.yaml diff --git a/services/logto/app.yaml b/services/logto/app.yaml new file mode 100644 index 00000000..d1153493 --- /dev/null +++ b/services/logto/app.yaml @@ -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.tags: '["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 diff --git a/services/logto/logto-admin-ingress.yaml b/services/logto/logto-admin-ingress.yaml new file mode 100644 index 00000000..e2a4225f --- /dev/null +++ b/services/logto/logto-admin-ingress.yaml @@ -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: {} \ No newline at end of file From e808c84ad01b6d7986796673dc6c43c1382eca4d Mon Sep 17 00:00:00 2001 From: Gianni Carafa Date: Mon, 23 Dec 2024 22:51:10 +0100 Subject: [PATCH 2/2] fix categories in template --- services/logto/app.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/logto/app.yaml b/services/logto/app.yaml index d1153493..25ec339f 100644 --- a/services/logto/app.yaml +++ b/services/logto/app.yaml @@ -11,7 +11,7 @@ metadata: 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.tags: '["identity", "access", "management"]' + kubero.dev/template.categories: '["identity", "access", "management"]' kubero.dev/template.title: "logto" kubero.dev/template.website: "https://logto.io/" labels: