• Running Enigma on Kubernetes

    From nighthawk@21:1/121 to All on Sat Sep 7 13:52:59 2024
    Hello folks,

    Is there any tutorial around on how to run Enigma under a Kubernetes cluster?

    Regards,
    Nighthawk



    --- ENiGMA 1/2 v0.0.14-beta (linux; x64; 18.18.2)
    * Origin: Xibalba -+- xibalba.l33t.codes:44510 (21:1/121)
  • From Satchmo@21:4/144 to nighthawk on Thu Sep 12 21:49:08 2024

    Hello nighthawk!

    07 Sep 24 13:52, you wrote to all:

    Hello folks,

    Is there any tutorial around on how to run Enigma under a Kubernetes cluster

    I run Enigma in my cluster, using terraform to configure the deployment.

    I had a look at the docker (enigmabbs/enigma-bbs:latest) instructions (https://nuskooler.github.io/enigma-bbs/installation/docker.html)
    and matched the config, it should be easy to do the same just in yaml.

    One thing I did was configure it in docker first to complete the first time setup, then point to this location in kubernetes.

    I'll see if I can grab/export my yaml. It should give you a decent idea. You might need to enable/open more ports.

    yaml:

    -+-
    apiVersion: apps/v1
    kind: ReplicaSet
    metadata:
    annotations:
    deployment.kubernetes.io/desired-replicas: "1"
    deployment.kubernetes.io/max-replicas: "2"
    deployment.kubernetes.io/revision: "3"
    creationTimestamp: "2024-09-02T00:32:33Z"
    generation: 1
    labels:
    app: enigmabbs
    pod-template-hash: 5fc6988d57
    name: apps-enigmabbs-5fc6988d57
    namespace: apps
    ownerReferences:
    - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: Deployment
    name: apps-enigmabbs
    uid: 65c0e7cd-31da-4edf-b4a8-06cdc7640e73
    resourceVersion: "19578127"
    uid: 6cb4ef24-dd6b-4f0d-ae70-372ae22829f6
    spec:
    replicas: 1
    selector:
    matchLabels:
    app: enigmabbs
    pod-template-hash: 5fc6988d57
    template:
    metadata:
    creationTimestamp: null
    labels:
    app: enigmabbs
    pod-template-hash: 5fc6988d57
    spec:
    affinity:
    nodeAffinity:
    requiredDuringSchedulingIgnoredDuringExecution:
    nodeSelectorTerms:
    - matchExpressions:
    - key: kubernetes.io/arch
    operator: In
    values:
    - amd64
    automountServiceAccountToken: true
    containers:
    - image: enigmabbs/enigma-bbs:latest
    imagePullPolicy: Always
    name: apps-enigmabbs
    ports:
    - containerPort: 8888
    protocol: TCP
    resources:
    limits:
    cpu: 500m
    memory: 512Mi
    requests:
    cpu: 250m
    memory: 128Mi
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /enigma-bbs/db
    mountPropagation: None
    name: db
    - mountPath: /enigma-bbs/config
    mountPropagation: None
    name: config
    - mountPath: /enigma-bbs/logs
    mountPropagation: None
    name: logs
    - mountPath: /enigma-bbs/filebase
    mountPropagation: None
    name: filebase
    - mountPath: /enigma-bbs/art
    mountPropagation: None
    name: art
    - mountPath: /enigma-bbs/mods
    mountPropagation: None
    name: mods
    - mountPath: /enigma-bbs/mail
    mountPropagation: None
    name: mail
    dnsPolicy: ClusterFirst
    enableServiceLinks: true
    restartPolicy: Always
    schedulerName: default-scheduler
    securityContext: {}
    shareProcessNamespace: false
    terminationGracePeriodSeconds: 30
    volumes:
    - name: db
    nfs:
    path: /nfs2/enigma-bbs/db
    server: nfs3.uk1.northmore.net
    - name: config
    nfs:
    path: /nfs2/enigma-bbs/config
    server: nfs3.uk1.northmore.net
    - name: logs
    nfs:
    path: /nfs2/enigma-bbs/logs
    server: nfs3.uk1.northmore.net
    - name: filebase
    nfs:
    path: /nfs2/enigma-bbs/filebase
    server: nfs3.uk1.northmore.net
    - name: art
    nfs:
    path: /nfs2/enigma-bbs/art
    server: nfs3.uk1.northmore.net
    - name: mods
    nfs:
    path: /nfs2/enigma-bbs/mods
    server: nfs3.uk1.northmore.net
    - name: mail
    nfs:
    path: /nfs2/enigma-bbs/mail
    server: nfs3.uk1.northmore.net
    status:
    availableReplicas: 1
    fullyLabeledReplicas: 1
    observedGeneration: 1
    readyReplicas: 1
    replicas: 1


    Satchmo


    --- GoldED+/LNX 1.1.5--b20170303
    * Origin: Sonic BBS - North Yorkshire, England (21:4/144)