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

Support deploying own ERP container on K8s via ECK #783

Open
a03nikki opened this issue Dec 2, 2021 · 4 comments
Open

Support deploying own ERP container on K8s via ECK #783

a03nikki opened this issue Dec 2, 2021 · 4 comments
Labels
enhancement New feature or request Team:Ecosystem Label for the Packages Ecosystem team

Comments

@a03nikki
Copy link

a03nikki commented Dec 2, 2021

The documentation describes how to run a EPR (Elastic Package Registry) using Docker. It would be great if ECK (Elastic Cloud on Kubernetes) could deploy the container to a Kubernetes (K8s) cluster.

Related documentation: https://www.elastic.co/guide/en/integrations-developer/current/air-gapped.html#air-gapped-diy-epr
Related issue: elastic/cloud-on-k8s#5107

@a03nikki a03nikki added the enhancement New feature or request label Dec 2, 2021
@Kushmaro
Copy link

Hey @a03nikki :) heard about this and thought I'd investigate
Is there any specific value in ECK doing this, vs. just deployment of the EPR container regularly on k8s?

@jsoriano jsoriano added the Team:Ecosystem Label for the Packages Ecosystem team label Jan 20, 2022
@a03nikki
Copy link
Author

a03nikki commented Feb 27, 2023

@Kushmaro : ECK could do the configuration for Kibana to use the custom EPR endpoint as the pod would then be controlled by the operator.

If it won't be done, it would be nice to have the K8s "best practice for deploying an ERP pod" in the documentation somewhere.

@omlet05
Copy link

omlet05 commented Nov 29, 2023

On my side I did something like this to run EPR on Kubernetes. Could you add something similar (or better) to the documentation? Or maybe provide a helm deployment?

apiVersion: apps/v1
kind: Deployment
metadata:
  name: elastic-package-registry-deployment
spec:
  selector:
    matchLabels:
      app: elastic-package-registry
  replicas: 1
  template:
    metadata:
      labels:
        app: elastic-package-registry
    spec:
      containers:
      - name: elastic-package-registry
        image: docker.elastic.co/package-registry/distribution:8.11.1
        imagePullPolicy: Always
        resources:
          limits:
            memory: "1024Mi"
            cpu: 1
          requests:
            memory: "1024Mi"
            cpu: 100m
      securityContext:
        runAsUser: 1000
        runAsGroup: 1000
        fsGroup: 1000
apiVersion: v1
kind: Service
metadata:
  name: elastic-package-registry-http
  labels:
    run: elastic-package-registry
spec:
  ports:
  - protocol: TCP
    port: 80
    targetPort: 8080
  selector:
    app: elastic-package-registry

@QuinnBast
Copy link

Agreed. Or even better, add it to the ECK operator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Team:Ecosystem Label for the Packages Ecosystem team
Projects
None yet
Development

No branches or pull requests

5 participants