initial commit
This commit is contained in:
100
k8s_config/dev/parcoursmob/config.yaml
Normal file
100
k8s_config/dev/parcoursmob/config.yaml
Normal file
@@ -0,0 +1,100 @@
|
||||
dev_env: true
|
||||
|
||||
server:
|
||||
listen: 0.0.0.0:80
|
||||
|
||||
templates:
|
||||
root: /themes/default/
|
||||
public_dir: /themes/default/web/public/
|
||||
|
||||
identification:
|
||||
oidc:
|
||||
provider: http://mobility-accounts.tilt-dev.svc.cluster.local/parcoursmob
|
||||
provider_config:
|
||||
issuer_url: http://mobility-accounts.tilt-dev.svc.cluster.local/parcoursmob
|
||||
auth_url: http://mobility-accounts.tilt-dev.svc.cluster.local/parcoursmob/auth
|
||||
token_url: http://mobility-accounts.tilt-dev.svc.cluster.local/parcoursmob/token
|
||||
user_info_url: http://mobility-accounts.tilt-dev.svc.cluster.local/parcoursmob/user_info
|
||||
jwks_url: http://mobility-accounts.tilt-dev.svc.cluster.local/parcoursmob/.well_known/jwks.json
|
||||
client_id: abcdef
|
||||
client_secret: ghijkl
|
||||
redirect_url: http://parcoursmob.tilt-dev.svc.cluster.local/api/oauth2/callback
|
||||
|
||||
services:
|
||||
grpc:
|
||||
mobilityaccounts:
|
||||
dial: mobility-accounts:8080
|
||||
groupsmanagement:
|
||||
dial: groups-management:8080
|
||||
fleets:
|
||||
dial: fleets:8080
|
||||
agenda:
|
||||
dial: agenda:8080
|
||||
navitia:
|
||||
api_key: abcd
|
||||
|
||||
storage:
|
||||
kv:
|
||||
type: etcd
|
||||
etcd:
|
||||
endpoints:
|
||||
- etcd:2379
|
||||
prefix: parcoursmob/cache/
|
||||
files:
|
||||
type: minio
|
||||
minio:
|
||||
endpoint: minio:9000
|
||||
access_key: minio
|
||||
secret_key: minio123
|
||||
use_ssl: false
|
||||
bucket_name: parcoursmob
|
||||
location: fr-par
|
||||
file_types:
|
||||
driving_licence: Permis de conduire
|
||||
work_contract: Contrat de travail ou de formation
|
||||
identity_proof: Pièce d'identité
|
||||
other: Autre
|
||||
|
||||
emailing:
|
||||
smtp:
|
||||
host: smtp4dev
|
||||
port: 25
|
||||
username: noreply@parcoursmob.fr
|
||||
password: 12345678
|
||||
|
||||
modules:
|
||||
beneficiaries:
|
||||
enable: true
|
||||
documents_types:
|
||||
- identity_proof
|
||||
- driving_licence
|
||||
- work_contract
|
||||
- other
|
||||
fleets:
|
||||
enabled: true
|
||||
vehicle_types:
|
||||
- Voiture
|
||||
- Voiture sans permis
|
||||
- Scooter
|
||||
- Vélo électrique
|
||||
- Trottinette
|
||||
booking_documents:
|
||||
mandatory:
|
||||
- driving_licence
|
||||
- identity_proof
|
||||
- work_contract
|
||||
agenda:
|
||||
enabled: true
|
||||
events_types:
|
||||
- name: Accompagnements individuels
|
||||
- name: Permis accéléré
|
||||
subscription_tags:
|
||||
- Non présenté à l'information collective
|
||||
- Parcours validé
|
||||
- Abandon pendant le parcours
|
||||
- Succès à l'examen
|
||||
- Echec à l'examen
|
||||
- name: Auto-école sociale (classique)
|
||||
- name: Information collective
|
||||
- name: Autre
|
||||
|
||||
29
k8s_config/dev/parcoursmob/deployment.yaml
Normal file
29
k8s_config/dev/parcoursmob/deployment.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: parcoursmob
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: parcoursmob
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: parcoursmob
|
||||
spec:
|
||||
containers:
|
||||
- name: parcoursmob
|
||||
image: git.coopgo.io/coopgo-apps/parcoursmob
|
||||
ports:
|
||||
- containerPort: 80
|
||||
volumeMounts:
|
||||
- name: parcoursmob-config-volume
|
||||
mountPath: /config.yaml
|
||||
subPath: config.yaml
|
||||
volumes:
|
||||
- name: parcoursmob-config-volume
|
||||
configMap:
|
||||
name: parcoursmob-config
|
||||
items:
|
||||
- key: config.yaml
|
||||
path: config.yaml
|
||||
18
k8s_config/dev/parcoursmob/ingress.yaml
Normal file
18
k8s_config/dev/parcoursmob/ingress.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: parcoursmob
|
||||
labels:
|
||||
name: parcoursmob
|
||||
spec:
|
||||
rules:
|
||||
- host: parcoursmob.tilt-dev.svc.cluster.local
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: parcoursmob
|
||||
port:
|
||||
number: 80
|
||||
9
k8s_config/dev/parcoursmob/kustomization.yaml
Normal file
9
k8s_config/dev/parcoursmob/kustomization.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
||||
|
||||
configMapGenerator:
|
||||
- name: parcoursmob-config
|
||||
files:
|
||||
- config.yaml
|
||||
11
k8s_config/dev/parcoursmob/service.yaml
Normal file
11
k8s_config/dev/parcoursmob/service.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: parcoursmob
|
||||
spec:
|
||||
selector:
|
||||
app: parcoursmob
|
||||
ports:
|
||||
- port: 80
|
||||
name: http
|
||||
targetPort: 80
|
||||
Reference in New Issue
Block a user