diff options
| author | 2024-04-15 11:42:36 +0100 | |
|---|---|---|
| committer | 2024-04-15 11:42:36 +0100 | |
| commit | f32eb2aacf8e23899d43a5241d9162fa145e9783 (patch) | |
| tree | 83fc9da5c543c5ef1411612c495c29beaeff0660 /kubernetes/namespaces/default | |
| parent | Move forms to new namespace (diff) | |
Move snekbox to new namespace
Diffstat (limited to 'kubernetes/namespaces/default')
5 files changed, 0 insertions, 101 deletions
| diff --git a/kubernetes/namespaces/default/snekbox-forms/README.md b/kubernetes/namespaces/default/snekbox-forms/README.md deleted file mode 100644 index 4514032..0000000 --- a/kubernetes/namespaces/default/snekbox-forms/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Snekbox-forms - -This folder contains manifests for a Snekbox service specific to the forms project. This instance has no 3rd party libs installed, unlike regular snekbox, so submissions via forms can only use the stdlib. - -The deployment manifest for this service is based on in manifest found inside the snekbox repository at [python-discord/snekbox](https://github.com/python-discord/snekbox), modified only by removing the volume mount, and 3rd party dep installation script. diff --git a/kubernetes/namespaces/default/snekbox-forms/deployment.yaml b/kubernetes/namespaces/default/snekbox-forms/deployment.yaml deleted file mode 100644 index 2464249..0000000 --- a/kubernetes/namespaces/default/snekbox-forms/deployment.yaml +++ /dev/null @@ -1,69 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: -  name: snekbox-forms -spec: -  replicas: 1 -  selector: -    matchLabels: -      app: snekbox-forms -  template: -    metadata: -      labels: -        app: snekbox-forms -    spec: -      initContainers: -        - name: init-service -          image: busybox:latest -          command: ["/bin/sh", "-c"] -          args: -          - > -            wget https://files.pydis.wtf/33649562-5739-4f23-9219-28fc236b86bc/random.png -O /tmp/cj-inputs/random.png; -            wget https://files.pydis.wtf/33649562-5739-4f23-9219-28fc236b86bc/shuffled1_order.txt -O /tmp/cj-inputs/shuffled1_order.txt; -            wget https://files.pydis.wtf/33649562-5739-4f23-9219-28fc236b86bc/shuffled1.png -O /tmp/cj-inputs/shuffled1.png; -            wget https://files.pydis.wtf/33649562-5739-4f23-9219-28fc236b86bc/shuffled4_order.txt -O /tmp/cj-inputs/shuffled4_order.txt; -            wget https://files.pydis.wtf/33649562-5739-4f23-9219-28fc236b86bc/shuffled4.png -O /tmp/cj-inputs/shuffled4.png; -            wget https://files.pydis.wtf/33649562-5739-4f23-9219-28fc236b86bc/shuffled8_order.txt -O /tmp/cj-inputs/shuffled8_order.txt; -            wget https://files.pydis.wtf/33649562-5739-4f23-9219-28fc236b86bc/shuffled8.png -O /tmp/cj-inputs/shuffled8.png; -            wget https://raw.githubusercontent.com/python-discord/snekbox/main/config/snekbox.cfg -O /tmp/config/snekbox.cfg; -            echo -e 'mount {\n src:"/snekbox/cj-inputs"\n dst:"/cj-inputs"\n is_bind: true\n rw: false}' >> /tmp/config/snekbox.cfg; -          volumeMounts: -            - name: snekbox-cj-inputs -              mountPath: /tmp/cj-inputs/ -            - name: snekbox-forms-config -              mountPath: /tmp/config/ -      containers: -        - name: snekbox-forms -          image: ghcr.io/python-discord/snekbox:latest -          imagePullPolicy: Always -          ports: -            - containerPort: 8060 -          securityContext: -            privileged: true -          volumeMounts: -            - name: snekbox-forms-user-base-volume -              mountPath: /snekbox/user_base -            - name: snekbox-cj-inputs -              mountPath: /snekbox/cj-inputs -            - name: snekbox-forms-config -              mountPath: /snekbox/config/snekbox.cfg -              subPath: snekbox.cfg -          lifecycle: -            postStart: -              exec: -                command: -                  - "/bin/sh" -                  - "-c" -                  - >- -                    PYTHONUSERBASE=/snekbox/user_base -                    pip install --user --upgrade -                    pip -                    pillow==10.0.0 -                    opencv-python-headless==4.8.0.74 -      volumes: -        - name: snekbox-forms-user-base-volume -          emptyDir: {} -        - name: snekbox-cj-inputs -          emptyDir: {} -        - name: snekbox-forms-config -          emptyDir: {} diff --git a/kubernetes/namespaces/default/snekbox-forms/service.yaml b/kubernetes/namespaces/default/snekbox-forms/service.yaml deleted file mode 100644 index 99937eb..0000000 --- a/kubernetes/namespaces/default/snekbox-forms/service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: -  name: snekbox-forms -spec: -  selector: -    app: snekbox-forms -  ports: -    - protocol: TCP -      port: 80 -      targetPort: 8060 diff --git a/kubernetes/namespaces/default/snekbox/README.md b/kubernetes/namespaces/default/snekbox/README.md deleted file mode 100644 index bd7446b..0000000 --- a/kubernetes/namespaces/default/snekbox/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Snekbox - -This folder contains manifests for Snekbox service. - -The actual snekbox deployment manifest can be found inside the snekbox repository at [python-discord/snekbox](https://github.com/python-discord/snekbox). diff --git a/kubernetes/namespaces/default/snekbox/service.yaml b/kubernetes/namespaces/default/snekbox/service.yaml deleted file mode 100644 index 9ae20b0..0000000 --- a/kubernetes/namespaces/default/snekbox/service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: -  name: snekbox -spec: -  selector: -    app: snekbox -  ports: -    - protocol: TCP -      port: 80 -      targetPort: 8060 | 
