Commit bea7e409 authored by Yann Garcia's avatar Yann Garcia
Browse files

Update PoC

parent dfe78e5e
Loading
Loading
Loading
Loading
+142 −128
Original line number Diff line number Diff line
@@ -30,17 +30,17 @@ repo:
    # user supplied resources
    user:
      # user supplied frontend UI located @ .meep/user/frontend
      frontend: true
      frontend: false
      # user supplied platform swagger UI located @ .meep/user/swagger
      # user supplied sandbox swagger UI located @ .meep/user/sandbox-swagger
      swagger: true
      swagger: false

    # platform ingress configuration
    ingress:
      # host name
      host: try-mec.etsi.org
      host: mec-platform.etsi.org
      # enable https only (redirect http requests to https port)
      https-only: true
      https-only: false
      # bind to host ports (true) or node ports (false)
      host-ports: true
      # http port number
@@ -67,27 +67,27 @@ repo:
      # GitHub OAuth provider config
      github:
        # enable GitHub OAuth
        enabled: truee
        enabled: false
        # authorization url
        auth-url: https://github.com/login/oauth/authorize
        # access token url
        token-url: https://github.com/login/oauth/access_token
        # OAuth redirect URI
        redirect-uri: https://try-mec.etsi.org/platform-ctrl/v1/authorize
        redirect-uri: https://mec-platform.etsi.org/auth/v1/authorize
        # OAuth k8s secret (data: client-id, secret)
        secret: meep-oauth-github
      # GitLab OAuth provider config
      gitlab:
        # enable GitLab OAuth
        enabled: true
        enabled: false
        # authorization url
        auth-url: https://forge.etsi.org/rep/oauth/authorize
        auth-url: https://gitlab.com/oauth/authorize
        # access token url
        token-url: https://forge.etsi.org/rep/oauth/token
        token-url: https://gitlab.com/oauth/token
        # OAuth redirect URI
        redirect-uri: https://try-mec.etsi.org/platform-ctrl/v1/authorize
        redirect-uri: https://mec-platform.etsi.org/auth/v1/authorize
        # GitLab api url
        api-url: https://forge.etsi.org/rep/api/v4
        # api-url: https://gitlab.com
        # OAuth k8s secret (data: client-id, secret)
        secret: meep-oauth-gitlab

@@ -96,9 +96,9 @@ repo:
      # Influx configuration
      influx:
        # enable influx data backups
        enabled: true
        enabled: false
        # object store url
        url: https://metrics.try-mec.etsi.org/
        url: my-object-store-fqdn
        # object store configuration secret
        secret: meep-influx-objstore-config
        # Number of days to retain daily data backups
@@ -108,7 +108,7 @@ repo:
        # external labels added to prometheus metrics
        external-labels:
          # deployment region (geographic or logical)
          region: etsi
          region: idcc
          # function being monitored
          monitor: advantedge
          # prometheus environment (dev|prod)
@@ -118,7 +118,7 @@ repo:
      # Thanos long-term storage
      thanos:
        # enable Thanos
        enabled: true
        enabled: false
        # object store configuration secret
        secret: meep-thanos-objstore-config
        # query component
@@ -148,7 +148,7 @@ repo:
      # Thanos long-term storage archive
      thanos-archive:
        # enable Thanos archive
        enabled: true
        enabled: false
        # archive object store configuration secret
        secret: meep-thanos-archive-objstore-config

@@ -167,7 +167,7 @@ repo:
      # Influx configuration
      influx:
        # enable influx garbage collection
        enabled: true
        enabled: false
        # list of databases that must not be removed
        exceptions:
        #   - my_db_to_keep
@@ -179,8 +179,14 @@ repo:

    # Default monitoring dashboards
    dashboards:
      mec-sandbox: dashboards/mec-sandbox.json
      network-metrics-point-to-point: dashboards/network-metrics-point-to-point.json
      network-metrics-aggregation: dashboards/network-metrics-aggregation.json
      wireless-metrics-point-to-point: dashboards/wireless-metrics-point-to-point.json
      wireless-metrics-aggregation: dashboards/wireless-metrics-aggregation.json
      http-single-log: dashboards/http-log-byId.json
      http-logs-aggregation: dashboards/http-loggers.json
      platform-advantedge: dashboards/platform-advantedge.json
      # platform-advantedge: dashboards/platform-advantedge-thanos.json
      platform-k8s: dashboards/platform-k8s.json
      runtime-environment-node: dashboards/runtime-environment-node.json
      runtime-environment-k8s-cluster: dashboards/runtime-environment-k8s-cluster.json
@@ -231,7 +237,7 @@ repo:
          # location of entry script
          'entrypoint.sh': go-apps/meep-auth-svc/entrypoint.sh
          # location of REST API permissions file
          'permissions.yaml': config/permissions.yaml
          'permissions.yaml': config/permissions-open.yaml
      meep-ingress-certs:
        # enable meepctl build
        build: false
@@ -269,7 +275,7 @@ repo:
        lint: true
        # list of dependencies pods to monitor
        dependency-pods:
          - meep-cert-manager
          # - meep-cert-manager
          - meep-couchdb
          - meep-docker-registry
          - meep-grafana
@@ -284,23 +290,24 @@ repo:
        core-pods:
          - meep-mon-engine
          - meep-platform-ctrl
          - meep-sandbox-api
          - meep-virt-engine
          - meep-webhook
        # list of sandbox pods to monitor
        sandbox-pods:
          - meep-gis-engine
          # - meep-loc-serv
          - meep-loc-serv
          - meep-metrics-engine
          # - meep-mg-manager
          # - meep-rnis
          # - meep-dai
          # - meep-tm
          # - meep-wais
          # - meep-ams
          - meep-mg-manager
          - meep-rnis
          - meep-dai
          - meep-tm
          - meep-wais
          - meep-ams
          - meep-sandbox-ctrl
          # - meep-tc-engine
          # - meep-app-enablement
          # - meep-vis
          - meep-tc-engine
          - meep-app-enablement
          - meep-vis
        # location of API specifications
        api:
          - name: 'AdvantEDGE Monitoring Engine REST API'
@@ -344,6 +351,39 @@ repo:
          swagger: js-apps/meep-swagger-ui
          # location of AdvantEDGE frontend
          frontend: bin/meep-frontend
      meep-sandbox-api:
        # location of source code
        src: go-apps/meep-sandbox-api
        # location of binary
        bin: bin/meep-sandbox-api
        # location of deployment chart
        chart: charts/meep-sandbox-api
        # user supplied value file located @ .meep/user/values (use below file name)
        chart-user-values: meep-sandbox-api.yaml
        # enable meepctl build
        build: true
        # enable meepctl dockerize
        dockerize: true
        # enable meepctl deploy/delete
        deploy: true
        # supports code coverage measurement when built in codecov mode
        codecov: true
        # supports linting
        lint: true
        # location of API specifications
        api:
          - name: 'AdvantEDGE HTTP REST API'
            file: go-apps/meep-sandbox-api/api/swagger.yaml
        # location of user supplied API specifications
        user-api:
        # resources available to docker container image
        docker-data:
          # location of entry script
          'entrypoint.sh': go-apps/meep-sandbox-api/entrypoint.sh
          # location of Swagger UI
          swagger: js-apps/meep-swagger-ui
          # location of AdvantEDGE frontend
          frontend: bin/meep-frontend
      meep-virt-engine:
        # location of source code
        src: go-apps/meep-virt-engine
@@ -385,18 +425,18 @@ repo:
        # list of sandbox specific pods
        sandbox-pods:
          - meep-gis-engine
          # - meep-loc-serv
          - meep-loc-serv
          - meep-metrics-engine
          # - meep-mg-manager
          # - meep-rnis
          # - meep-dai
          # - meep-tm
          # - meep-wais
          # - meep-ams
          - meep-mg-manager
          - meep-rnis
          - meep-dai
          - meep-tm
          - meep-wais
          - meep-ams
          - meep-sandbox-ctrl
          # - meep-tc-engine
          # - meep-app-enablement
          # - meep-vis
          - meep-tc-engine
          - meep-app-enablement
          - meep-vis
      meep-webhook:
        # location of source code
        src: go-apps/meep-webhook
@@ -480,8 +520,6 @@ repo:
            file: go-apps/meep-ams/api/swagger.yaml
        # location of user supplied API specifications
        user-api:
          - name: 'Application Mobility Service REST API'
            file: config/api/ams-api.yaml
        # resources available to docker container image
        docker-data:
          # location of entry script
@@ -516,10 +554,6 @@ repo:
            file: go-apps/meep-app-enablement/api/service-mgmt/swagger.yaml
        # location of user supplied API specifications
        user-api:
          - name: 'MEC Application Support API'
            file: config/api/app-support.yaml
          - name: 'MEC Service Management API'
            file: config/api/service-mgmt.yaml
        # resources available to docker container image
        docker-data:
          # location of entry script
@@ -581,8 +615,6 @@ repo:
            file: go-apps/meep-loc-serv/api/swagger.yaml
        # location of user supplied API specifications
        user-api:
          - name: 'Location Service REST API'
            file: config/api/loc-serv-api.yaml
        # resources available to docker container image
        docker-data:
          # location of entry script
@@ -631,15 +663,15 @@ repo:
        # user supplied value file located @ .meep/user/values (use below file name)
        chart-user-values: meep-mg-manager.yaml
        # enable meepctl build
        build: false
        build: true
        # enable meepctl dockerize
        dockerize: false
        dockerize: true
        # enable meepctl deploy/delete
        deploy: false
        deploy: true
        # supports code coverage measurement when built in codecov mode
        codecov: true
        # supports linting
        lint: false
        lint: true
        # location of API specifications
        api:
          - name: 'AdvantEDGE Mobility Group Service REST API'
@@ -727,15 +759,15 @@ repo:
        # user supplied value file located @ .meep/user/values (use below file name)
        chart-user-values: meep-tc-engine.yaml
        # enable meepctl build
        build: false
        build: true
        # enable meepctl dockerize
        dockerize: false
        dockerize: true
        # enable meepctl deploy/delete
        deploy: false
        deploy: true
        # supports code coverage measurement when built in codecov mode
        codecov: true
        # supports linting
        lint: false
        lint: true
      meep-tc-sidecar:
        # location of source code
        src: go-apps/meep-tc-sidecar
@@ -751,15 +783,15 @@ repo:
        codecov: false
        # supports linting
        lint: true
      meep-wais:
      meep-tm:
        # location of source code
        src: go-apps/meep-wais
        src: go-apps/meep-tm
        # location of binary
        bin: bin/meep-wais
        bin: bin/meep-tm
        # location of deployment chart
        chart: charts/meep-wais
        chart: charts/meep-tm
        # user supplied value file located @ .meep/user/values (use below file name)
        chart-user-values: meep-wais.yaml
        chart-user-values: meep-tm.yaml
        # extra build flags
        build-flags:
          - -mod=vendor
@@ -775,25 +807,25 @@ repo:
        lint: true
        # location of API specifications
        api:
          - name: 'AdvantEDGE WLAN Access Information REST API'
            file: go-apps/meep-wais/api/swagger.yaml
          - name: 'AdvantEDGE MEC Bandwidth Management REST API'
            file: go-apps/meep-tm/api/bwm/swagger.yaml
          - name: 'AdvantEDGE MEC Multi-access Traffic Steering REST API'
            file: go-apps/meep-tm/api/mts/swagger.yaml
        # location of user supplied API specifications
        user-api:
          - name: 'WLAN Access Information Service REST API'
            file: config/api/wais-api.yaml
        # resources available to docker container image
        docker-data:
          # location of entry script
          'entrypoint.sh': go-apps/meep-wais/entrypoint.sh
      meep-tm:
          'entrypoint.sh': go-apps/meep-tm/entrypoint.sh
      meep-wais:
        # location of source code
        src: go-apps/meep-tm
        src: go-apps/meep-wais
        # location of binary
        bin: bin/meep-tm
        bin: bin/meep-wais
        # location of deployment chart
        chart: charts/meep-tm
        chart: charts/meep-wais
        # user supplied value file located @ .meep/user/values (use below file name)
        chart-user-values: meep-tm.yaml
        chart-user-values: meep-wais.yaml
        # extra build flags
        build-flags:
          - -mod=vendor
@@ -809,29 +841,23 @@ repo:
        lint: true
        # location of API specifications
        api:
          - name: 'AdvantEDGE MEC Bandwidth Management REST API'
            file: go-apps/meep-tm/api/bwm/swagger.yaml
          - name: 'AdvantEDGE MEC Multi-access Traffic Steering REST API'
            file: go-apps/meep-tm/api/mts/swagger.yaml
          - name: 'AdvantEDGE WLAN Access Information REST API'
            file: go-apps/meep-wais/api/swagger.yaml
        # location of user supplied API specifications
        user-api:
        # resources available to docker container image
          - name: 'Bandwidth Management REST API'
            file: config/api/bwm-api.yaml
          - name: 'Multi-access Traffic Steering REST API'
            file: config/api/mts-api.yaml
        docker-data:
          # location of entry script
          'entrypoint.sh': go-apps/meep-tm/entrypoint.sh
      meep-dai:
          'entrypoint.sh': go-apps/meep-wais/entrypoint.sh
      meep-vis:
        # location of source code
        src: go-apps/meep-dai
        src: go-apps/meep-vis
        # location of binary
        bin: bin/meep-dai
        bin: bin/meep-vis
        # location of deployment chart
        chart: charts/meep-dai
        chart: charts/meep-vis
        # user supplied value file located @ .meep/user/values (use below file name)
        chart-user-values: meep-dai.yaml
        chart-user-values: meep-vis.yaml
        # extra build flags
        build-flags:
          - -mod=vendor
@@ -843,31 +869,27 @@ repo:
        deploy: true
        # supports code coverage measurement when built in codecov mode
        codecov: true
        # supports onboarded device application instantiation
        onboardedapp: true
        # supports linting
        lint: true
        # location of API specifications
        api:
          - name: 'AdvantEDGE Device Application Interface REST API'
            file: go-apps/meep-dai/api/swagger.yaml
          - name: 'AdvantEDGE V2X Information Service REST API'
            file: go-apps/meep-vis/api/swagger.yaml
        # location of user supplied API specifications
        user-api:
          - name: 'Device Application Interface REST API'
            file: config/api/dai-api.yaml
        # resources available to docker container image
        docker-data:
          # location of entry script
          'entrypoint.sh': go-apps/meep-dai/entrypoint.sh
      meep-vis:
          'entrypoint.sh': go-apps/meep-vis/entrypoint.sh
      meep-dai:
        # location of source code
        src: go-apps/meep-vis
        src: go-apps/meep-dai
        # location of binary
        bin: bin/meep-vis
        bin: bin/meep-dai
        # location of deployment chart
        chart: charts/meep-vis
        chart: charts/meep-dai
        # user supplied value file located @ .meep/user/values (use below file name)
        chart-user-values: meep-vis.yaml
        chart-user-values: meep-dai.yaml
        # extra build flags
        build-flags:
          - -mod=vendor
@@ -879,22 +901,20 @@ repo:
        deploy: true
        # supports code coverage measurement when built in codecov mode
        codecov: true
        # supports onboarded device application instantiation
        onboardedapp: true
        # supports linting
        lint: true
        # location of API specifications
        api:
          - name: 'AdvantEDGE V2X Information REST API'
            file: go-apps/meep-vis/api/swagger.yaml
          - name: 'AdvantEDGE Device Application Interface Service REST API'
            file: go-apps/meep-dai/api/swagger.yaml
        # location of user supplied API specifications
        user-api:
          - name: 'V2X Information Service REST API'
            file: config/api/vis-api.yaml
        # resources available to docker container image
        docker-data:
          # location of entry script
          'entrypoint.sh': go-apps/meep-vis/entrypoint.sh
          # location of grid map file
          'grid_map.yaml': go-packages/meep-vis-traffic-mgr/grid_map.yaml
          'entrypoint.sh': go-apps/meep-dai/entrypoint.sh

  #------------------------------
  #  Dependencies
@@ -977,17 +997,6 @@ repo:
      chart: charts/kube-state-metrics
      # user supplied value file located @ .meep/user/values (use below file name)
      chart-user-values: meep-kube-state-metrics.yaml
    meep-minio:
      # enable meepctl build -> deps are never built
      build: false
      # enable meepctl dockerize -> deps are never dockerized
      dockerize: false
      # enable meepctl deploy/delete
      deploy: false
      # location of deployment chart
      chart: charts/minio
      # user supplied value file located @ .meep/user/values (use below file name)
      chart-user-values: meep-minio.yaml
    meep-open-map-tiles:
      # enable meepctl build -> deps are never built
      build: false
@@ -1038,7 +1047,7 @@ repo:
      # enable meepctl dockerize -> deps are never dockerized
      dockerize: false
      # enable meepctl deploy/delete
      deploy: true
      deploy: false
      # location of deployment chart
      chart: charts/thanos
      # user supplied value file located @ .meep/user/values (use below file name)
@@ -1049,7 +1058,7 @@ repo:
      # enable meepctl dockerize -> deps are never dockerized
      dockerize: false
      # enable meepctl deploy/delete
      deploy: true
      deploy: false
      # location of deployment chart
      chart: charts/thanos
      # user supplied value file located @ .meep/user/values (use below file name)
@@ -1231,16 +1240,6 @@ repo:
        src: go-packages/meep-users
        # supports linting
        lint: true
      meep-dai-client:
        # location of source code
        src: go-packages/meep-dai-client
        # supports linting
        lint: false
      meep-wais-client:
        # location of source code
        src: go-packages/meep-wais-client
        # supports linting
        lint: false
      meep-vis-client:
        # location of source code
        src: go-packages/meep-vis-client
@@ -1250,6 +1249,11 @@ repo:
        # location of source code
        src: go-packages/meep-vis-traffic-mgr
        # supports linting
        lint: true
      meep-wais-client:
        # location of source code
        src: go-packages/meep-wais-client
        # supports linting
        lint: false
      meep-watchdog:
        # location of source code
@@ -1261,6 +1265,11 @@ repo:
        src: go-packages/meep-websocket
        # supports linting
        lint: true
      meep-dai-client:
        # location of source code
        src: go-packages/meep-dai-client
        # supports linting
        lint: false

    # Javascript Packages
    js-packages:
@@ -1289,6 +1298,11 @@ repo:
        src: js-packages/meep-platform-ctrl-client
        # supports linting
        lint: false
      meep-sandbox-api-client:
        # location of source code
        src: go-packages/meep-sandbox-api-client
        # supports linting
        lint: false
      meep-sandbox-ctrl-client:
        # location of source code
        src: js-packages/meep-sandbox-ctrl-client
+82 −0
Original line number Diff line number Diff line
@@ -621,6 +621,88 @@ services:
        roles:
          admin: 'allow'
          user: 'block'
  #------------------------------
  #  Sandbox API
  #------------------------------
  - name: 'meep-sandbox-api'
    path: '/sandbox-api/v1'
    sbox: true
    default:
      mode: 'allow'
    fileservers:
      - name: 'Api'
        path: '/api'
        mode: 'allow'
        roles:
          admin: 'allow'
          user: 'allow'
      - name: 'UserApi'
        path: '/user-api'
        mode: 'allow'
        roles:
          admin: 'allow'
          user: 'allow'
    endpoints:
      - name: 'Index'
        path: '/'
        method: 'GET'
        mode: 'allow'
      - name: 'login'
        path: '/login'
        method: 'POST'
        mode: 'allow'
        roles:
          admin: 'allow'
          user: 'allow'
      - name: 'logout'
        path: '/logout'
        method: 'POST'
        mode: 'allow'
        roles:
          admin: 'allow'
          user: 'allow'
      - name: 'sandboxAppInstancesGET'
        path: '/sandboxAppInstances'
        method: 'GET'
        mode: 'allow'
        roles:
          admin: 'allow'
          user: 'allow'
      - name: 'sandboxLogsSubscriptionsPOST'
        path: '/sandboxLogsSubscriptions'
        method: 'POST'
        mode: 'allow'
        roles:
          admin: 'allow'
          user: 'allow'
      - name: 'sandboxLogsSubscriptionsDELETE'
        path: '/sandboxLogsSubscriptions/{subscription_reference}'
        method: 'DELETE'
        mode: 'allow'
        roles:
          admin: 'allow'
          user: 'allow'
      - name: 'sandboxNetworkScenariosGET'
        path: '/sandboxNetworkScenarios'
        method: 'GET'
        mode: 'allow'
        roles:
          admin: 'allow'
          user: 'allow'
      - name: 'sandboxNetworkScenariosPOST'
        path: 'sandboxNetworkScenarios/{network_scenario_id}'
        method: 'POST'
        mode: 'allow'
        roles:
          admin: 'allow'
          user: 'allow'
      - name: 'SandboxNetworkScenariosDELETE'
        path: 'sandboxNetworkScenarios/{network_scenario_id}'
        method: 'DELETE'
        mode: 'allow'
        roles:
          admin: 'allow'
          user: 'allow'
 #------------------------------
  #  RNI Service (Sbox)
  #------------------------------