initial commit

This commit is contained in:
2024-11-04 01:22:29 +01:00
commit 23c38fe67b
44 changed files with 1307 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
dev_env: true
storage:
db:
type: mongodb
mongodb:
host: mongodb
port: 27017
db_name: coopgo_platform
kv:
type: etcd
etcd:
endpoints:
- etcd:2379
prefix: mobilityaccounts/
services:
grpc:
enable: true
port: 8080
oidc_provider:
enable: true
csrf_key: 32-byte-long-auth-key-----------
port: 80
namespaces:
parcoursmob:
namespace: parcoursmob
secret_key: some-cool-secret-that-is-32bytes
templates_dir: /oidc-provider/templates/parcoursmob
match_claims:
groups: groups
first_name: first_name
last_name: last_name
display_name: display_name
clients:
- id: abcdef
oidc: true
secret: $2y$10$0GwBc17u9HjZnVlFjhIv2u.Jq..5NyzdUENpGa8jUtok2zHj/STmm
token_endpoint_auth_method: client_secret_post
response_types:
- code
grant_types:
- authorization_code
redirect_uris:
- http://parcoursmob.tilt-dev.svc.cluster.local/api/oauth2/callback
scopes:
- openid
- profile
- groups
- email
- first_name
- last_name
- display_name

View File

@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: mobility-accounts
spec:
selector:
matchLabels:
app: mobility-accounts
template:
metadata:
labels:
app: mobility-accounts
spec:
containers:
- name: mobility-accounts
image: git.coopgo.io/coopgo-platform/mobility-accounts
ports:
- name: grpc
containerPort: 8080
protocol: TCP
- name: http
containerPort: 80
protocol: TCP
volumeMounts:
- name: mobility-accounts-config-volume
mountPath: /config.yaml
subPath: config.yaml
volumes:
- name: mobility-accounts-config-volume
configMap:
name: mobility-accounts-config
items:
- key: config.yaml
path: config.yaml

View File

@@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: mobility-accounts
labels:
name: mobility-accounts
spec:
rules:
- host: mobility-accounts.tilt-dev.svc.cluster.local
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: mobility-accounts
port:
number: 80

View File

@@ -0,0 +1,9 @@
resources:
- deployment.yaml
- service.yaml
- ingress.yaml
configMapGenerator:
- name: mobility-accounts-config
files:
- config.yaml

View File

@@ -0,0 +1,23 @@
apiVersion: v1
kind: Service
metadata:
name: mobility-accounts
spec:
selector:
app: mobility-accounts
ports:
- port: 8080
name: grpc
targetPort: 8080
- port: 80
name: http
targetPort: 80
# ---
# apiVersion: v1
# kind: Service
# metadata:
# name: auth
# spec:
# type: ExternalName
# externalName: mobility-accounts