Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes #23

Open
mitkox opened this issue Jul 26, 2023 · 6 comments
Open

Kubernetes #23

mitkox opened this issue Jul 26, 2023 · 6 comments
Labels
enhancement New feature or request tracked Tracked by an external ticketing system

Comments

@mitkox
Copy link

mitkox commented Jul 26, 2023

Problem or use case

Can you put the helm charts or deployment yaml files for running hivemq-edge on Kubernetes? Kubernetes for edge computing is becoming the standard.

Preferred solution or suggestions

@simon622 simon622 added the enhancement New feature or request label Jul 26, 2023
@simon622 simon622 added this to the 2023.3 milestone Jul 26, 2023
@simon622
Copy link
Collaborator

Hey Dimitar - we are aware and this is indeed coming shortly, thank you for the input.

@mitkox
Copy link
Author

mitkox commented Jul 26, 2023

apiVersion: apps/v1
kind: Deployment
metadata:
name: hivemq-deployment
spec:
replicas: 1
selector:
matchLabels:
app: hivemq
template:
metadata:
labels:
app: hivemq
spec:
containers:

  • name: hivemq
    image: mitko
    ports:
    - containerPort: 1883
    - containerPort: 2442
    - containerPort: 8080
    volumeMounts:
    - name: log-volume
    mountPath: /opt/hivemq/log
    volumes:
  • name: log-volume
    emptyDir: {}

@simon622
Copy link
Collaborator

Thank you for this input - this is being tracked and we are looking to include HELM in the next revision.

Thx.

@simon622 simon622 added the tracked Tracked by an external ticketing system label Jul 27, 2023
@simon622 simon622 modified the milestones: 2023.3, 2023.4 Aug 10, 2023
@simon622 simon622 removed this from the 2023.4 milestone Aug 19, 2023
@JMayrbaeurl
Copy link

That's the one I've recently used on AKS EE for the version 2023.3:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: hivemqedge
spec:
  replicas: 1
  selector:
    matchLabels:
      app: hivemq-edge
  template:
    metadata:
      labels:
        app: hivemq-edge
    spec:
      nodeSelector:
        "kubernetes.io/os": linux
      containers:
        - name: hivemq-edge
          image: hivemq/hivemq-edge:2023.3
          ports:
           - containerPort: 1883
           - containerPort: 8080
          volumeMounts:
           - name: hivemq-edge-log-volume
             mountPath: /opt/hivemq/log
      volumes:
        - name: hivemq-edge-log-volume
          emptyDir: {}
---
apiVersion: v1
kind: Service
metadata:
  name: hivemq-edge
spec:
  type: LoadBalancer
  ports:
    - port: 1883
      name: hme-mqtt
    - port: 8080
      name: hme-ui
  selector:
    app: hivemq-edge

@simon622
Copy link
Collaborator

Thank you for this input, please submit your contribution via a Pull Request, such that you receive the deserved attribution. I would ask that you accept our Contribution Agreement first, and I look forward to accepting your work into the repository!

@JMayrbaeurl
Copy link

And now available as helm chart:

helm install hivemq-edge https://raw.githubusercontent.com/jmayrbaeurl/helmchart-repo/master/index/hivemq-edge-0.1.0.tgz -n hivemq-edge --create-namespace

and access the portal at 127.0.0.1:8080 with kubectl --namespace hivemq-edge port-forward $POD_NAME 8080:8080 after replacing $POD_NAME with the real pod name of hivemq-edge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tracked Tracked by an external ticketing system
Projects
None yet
Development

No branches or pull requests

3 participants