initial commit
This commit is contained in:
56
k8s_config/dev/mobility-accounts/config.yaml
Normal file
56
k8s_config/dev/mobility-accounts/config.yaml
Normal 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
|
||||
|
||||
|
||||
34
k8s_config/dev/mobility-accounts/deployment.yaml
Normal file
34
k8s_config/dev/mobility-accounts/deployment.yaml
Normal 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
|
||||
18
k8s_config/dev/mobility-accounts/ingress.yaml
Normal file
18
k8s_config/dev/mobility-accounts/ingress.yaml
Normal 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
|
||||
9
k8s_config/dev/mobility-accounts/kustomization.yaml
Normal file
9
k8s_config/dev/mobility-accounts/kustomization.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
||||
|
||||
configMapGenerator:
|
||||
- name: mobility-accounts-config
|
||||
files:
|
||||
- config.yaml
|
||||
23
k8s_config/dev/mobility-accounts/service.yaml
Normal file
23
k8s_config/dev/mobility-accounts/service.yaml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user