Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

multi edgex instance support #10

Open
huiwq1990 opened this issue Mar 10, 2022 · 2 comments
Open

multi edgex instance support #10

huiwq1990 opened this issue Mar 10, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@huiwq1990
Copy link
Member

1)If I want to deploy multi edgex instaces in same namespace, yurt-edgex-manager generate solid uniteddeployments, like edgex-core-consul. Could we generate uniteddeployments with nodepool name as prefix?
2) Config crd edgex is too complex , if I want add a ui component, I need write complex yamls. As a demo below:

apiVersion: device.openyurt.io/v1alpha1
kind: EdgeX
metadata:
  name: edgex-sample-$WORKER_NODEPOOL
spec:
  version: hanoi
  poolname: $WORKER_NODEPOOL
  additinalservices:
  - metadata:
      name: edgex-device-virtual
    spec:
      type: NodePort
      selector:
        app: edgex-device-virtual
      ports:
      - name: http
        port: 49990
        protocol: TCP
        targetPort: 49990
        nodePort: 30090
  - metadata:
      name: edgex-device-rest
    spec:
      type: NodePort
      selector:
        app: edgex-device-rest
      ports:
      - name: http
        port: 49986
        protocol: TCP
        targetPort: 49986
  1. yurt-edgex-manager use EdgeXConfig as template, if deploy multi instances, error occur as below:
  Version:        jakarta
Status:
  Conditions:
    Last Transition Time:  2022-03-10T08:59:37Z
    Message:               Service "edgex-core-consul" is invalid: spec.ports[0].nodePort: Invalid value: 30850: provided port is already allocated
    Reason:                ServiceProvisioningFailed
    Severity:              Warning
    Status:                False
    Type:                  Ready
    Last Transition Time:  2022-03-10T08:59:37Z
    Status:                True
    Type:                  ConfigmapAvailable
    Last Transition Time:  2022-03-10T08:59:37Z
    Message:               Service "edgex-core-consul" is invalid: spec.ports[0].nodePort: Invalid value: 30850: provided port is already allocated
    Reason:                ServiceProvisioningFailed
    Severity:              Warning
    Status:                False
    Type:                  ServiceAvailable
  Initialized:             true

Could we use helm as template render, and user can custom select deploy which component and set component values.

@lwmqwer
Copy link
Member

lwmqwer commented Mar 10, 2022

1)If I want to deploy multi edgex instaces in same namespace, yurt-edgex-manager generate solid uniteddeployments, like edgex-core-consul. Could we generate uniteddeployments with nodepool name as prefix?
3) yurt-edgex-manager use EdgeXConfig as template, if deploy multi instances, error occur as below:
In our design, now we only support one instance in a nodepool. so this will not support.

  1. Config crd edgex is too complex , if I want add a ui component, I need write complex yamls. As a demo below:
    The additional component of edgex, is complicate, we feel the same it about it, we could enhance the config of additional component.

@lwmqwer lwmqwer added the bug Something isn't working label Jun 6, 2022
@lwmqwer
Copy link
Member

lwmqwer commented Jun 6, 2022

This first one should fixed by set the ud nodepool patch field.
This second one track by #32

@lwmqwer lwmqwer moved this to Todo in IoT-v0.3 Jun 7, 2022
@lwmqwer lwmqwer added this to IoT-v0.3 Jun 7, 2022
@wawlian wawlian moved this from Todo to In Progress in IoT-v0.3 Jun 22, 2022
@gnunu gnunu closed this as completed Jun 28, 2022
Repository owner moved this from In Progress to Done in IoT-v0.3 Jun 28, 2022
@gnunu gnunu reopened this Jun 28, 2022
@gnunu gnunu moved this from Done to In Progress in IoT-v0.3 Jun 28, 2022
@lwmqwer lwmqwer moved this from In Progress to Todo in IoT-v0.3 Sep 26, 2022
@lwmqwer lwmqwer moved this from Todo to In Progress in IoT-v0.3 Sep 26, 2022
@lwmqwer lwmqwer removed this from IoT-v0.3 Oct 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants