Table of Contents

You may use the official Helm chart to install Reposilite on Kubernetes.
Requirements: Kubernetes: 1.14+,

Before you can use the Reposilite chart, you need to add the chart repository to Helm:
# Add the repository
$ helm repo add reposilite https://helm.reposilite.com/

# Update local repository information
$ helm repo update

Basic installation without changing any of the default chart values.
By default, the Helm chart will use 4 GB of disk and 32 MB of RAM, to increase or decrease these settings, see .
# Create the 'reposilite' namespace
$ kubectl create namespace reposilite

# Install the Helm chart into the namespace 'reposilite'
$ helm install reposilite reposilite/reposilite -n reposilite

Advanced installation with custom chart values (recommended).
# Save the default chart values to 'values.yaml'
$ helm show values reposilite/reposilite > values.yaml

# Modify the chart values ('values.yaml') using VI (or your preferred text editor)
$ vi values.yaml

# Create the 'reposilite' namespace
$ kubectl create namespace reposilite

# Install the Helm chart into the namespace 'reposilite', using the custom values
$ helm install reposilite reposilite/reposilite -n reposilite -f values.yaml

After installing the Reposilite Helm chart, depending on whether you configured the ingress using custom chart values, you may be unable to access the Reposilite frontend.
As Kubernetes ingress is generally different depending on the Ingress controller you are using, we are unable to document every way to create an ingress, but here are basic examples for two popular ingress controllers.

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: reposilite-ingress
  namespace: reposilite
spec:
  rules:
  - host: repo.example.com # Replace the domain you wish to use.
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: reposilite
            port:
              name: http

Using .
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: reposilite-ingress
  namespace: reposilite
spec:
  entryPoints:
    - web # Replace this with the entrypoint you wish to expose Reposilite on.
  routes:
    - match: Host(`repo.example.com`) # Replace the domain you wish to use.
      kind: Rule
      services:
        - name: reposilite
          port: http

To create the first access token, it is recommended to use kubectl:
# Get the pod name
$ kubectl get pods -n reposilite
NAME                          READY   STATUS    RESTARTS   AGE
reposilite-75997659f4-mfszl   1/1     Running   0          18

# Attach to the pod
$ kubectl attach -i reposilite-75997659f4-mfszl -n reposilite
If you don't see a command prompt, try pressing enter.

token-generate admin m
10:26:27.423 INFO | Generated new access token for admin with 'm' permissions. Secret:
10:26:27.423 INFO | biK3dtcNLtm7klb/h7uGXFyUQxStfkSOUIo/LSZSX5nB/+D8ImyXj6LaJ9vZrDIZ

Did you find misleading or deprecated content? Maybe you just feel this section misses important elements?

Guide

Copyright © 2023 dzikoysk with ❤ panda-lang