aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/default
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/namespaces/default')
-rw-r--r--kubernetes/namespaces/default/code-jam-management/README.md11
-rw-r--r--kubernetes/namespaces/default/code-jam-management/deployment.yaml40
-rw-r--r--kubernetes/namespaces/default/code-jam-management/secrets.yamlbin365 -> 0 bytes
-rw-r--r--kubernetes/namespaces/default/code-jam-management/service.yaml11
-rw-r--r--kubernetes/namespaces/default/patsy/README.md17
-rw-r--r--kubernetes/namespaces/default/patsy/deployment.yaml40
-rw-r--r--kubernetes/namespaces/default/patsy/secrets.yamlbin375 -> 0 bytes
-rw-r--r--kubernetes/namespaces/default/patsy/service.yaml11
-rw-r--r--kubernetes/namespaces/default/quackstack/README.md7
-rw-r--r--kubernetes/namespaces/default/quackstack/deployment.yaml20
-rw-r--r--kubernetes/namespaces/default/quackstack/ingress.yaml24
-rw-r--r--kubernetes/namespaces/default/quackstack/service.yaml11
12 files changed, 0 insertions, 192 deletions
diff --git a/kubernetes/namespaces/default/code-jam-management/README.md b/kubernetes/namespaces/default/code-jam-management/README.md
deleted file mode 100644
index b377130..0000000
--- a/kubernetes/namespaces/default/code-jam-management/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Code Jam Management
-
-This contains the deployment for the internal [code jam management](https://github.com/python-discord/code-jam-management) service.
-
-### Required Secret
-In a secret named `code-jam-management-env`:
-
-| Environment | Description |
-|--------------|------------------------------------------------------------------------|
-| API_TOKEN | A random string to use as the auth token for making requests to CJMS |
-| DATABASE_URL | `postgres://<user>:<password>@<host>:<port>/<name>` |
diff --git a/kubernetes/namespaces/default/code-jam-management/deployment.yaml b/kubernetes/namespaces/default/code-jam-management/deployment.yaml
deleted file mode 100644
index 86d8328..0000000
--- a/kubernetes/namespaces/default/code-jam-management/deployment.yaml
+++ /dev/null
@@ -1,40 +0,0 @@
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: code-jam-management
-spec:
- replicas: 1
- selector:
- matchLabels:
- app: code-jam-management
- template:
- metadata:
- labels:
- app: code-jam-management
- spec:
- securityContext:
- fsGroup: 2000
- runAsUser: 1000
- runAsNonRoot: true
- containers:
- - name: codejam-management
- image: ghcr.io/python-discord/code-jam-management:latest
- imagePullPolicy: Always
- volumeMounts:
- - mountPath: /tmp
- name: code-jam-mgmt-tmp
- - mountPath: /.cache
- name: code-jam-mgmt-venv
- ports:
- - containerPort: 8000
- envFrom:
- - secretRef:
- name: code-jam-management-env
- securityContext:
- readOnlyRootFilesystem: true
- volumes:
- - name: code-jam-mgmt-tmp
- emptyDir:
- medium: Memory
- - name: code-jam-mgmt-venv
- emptyDir: {}
diff --git a/kubernetes/namespaces/default/code-jam-management/secrets.yaml b/kubernetes/namespaces/default/code-jam-management/secrets.yaml
deleted file mode 100644
index 6400778..0000000
--- a/kubernetes/namespaces/default/code-jam-management/secrets.yaml
+++ /dev/null
Binary files differ
diff --git a/kubernetes/namespaces/default/code-jam-management/service.yaml b/kubernetes/namespaces/default/code-jam-management/service.yaml
deleted file mode 100644
index 2083adb..0000000
--- a/kubernetes/namespaces/default/code-jam-management/service.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-apiVersion: v1
-kind: Service
-metadata:
- name: code-jam-management
-spec:
- selector:
- app: code-jam-management
- ports:
- - protocol: TCP
- port: 8000
- targetPort: 8000
diff --git a/kubernetes/namespaces/default/patsy/README.md b/kubernetes/namespaces/default/patsy/README.md
deleted file mode 100644
index 78e386a..0000000
--- a/kubernetes/namespaces/default/patsy/README.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# Patsy
-
-Patsy is the premiere project for data collection in the python-discord toolchain. It uses word-class technology in a system architected by our in-house engineers to facilitate the automatic transfer, collection, and categorization of user data to develop user-centric solutions to real world problems. It is a marvel of engineering designed to push the limits of what we thought possible.
-
-The deployment for the [Patsy API](https://git.pydis.com/patsy), there is no ingress as Patsy is designed to only be accessible from within the cluster.
-
-This API is given help channel messages by the bot and stores them in postgres for after-the-fact processing.
-The hope with this project is that we can inspect what topics get asked about often in help channels, along with which ones go un-answered the most.
-
-## Secret
-
-It requires a `patsy-env` secret with the following
-
-| Key | Description |
-| -------------- | ------------------------------------------------------------ |
-| `DATABASE_URL` | An asyncpg connection string to the postgres database |
-| `STATE_SECRET` | A long random string, used to lock down endpoints with auth. |
diff --git a/kubernetes/namespaces/default/patsy/deployment.yaml b/kubernetes/namespaces/default/patsy/deployment.yaml
deleted file mode 100644
index 79fa243..0000000
--- a/kubernetes/namespaces/default/patsy/deployment.yaml
+++ /dev/null
@@ -1,40 +0,0 @@
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: patsy
-spec:
- replicas: 0
- selector:
- matchLabels:
- app: patsy
- template:
- metadata:
- labels:
- app: patsy
- spec:
- containers:
- - name: patsy
- image: ghcr.io/python-discord/patsy:latest
- imagePullPolicy: Always
- ports:
- - containerPort: 80
- name: http
- envFrom:
- - secretRef:
- name: patsy-env
- startupProbe:
- httpGet:
- path: /ping
- port: http
- httpHeaders:
- - name: Host
- value: patsy.pythondiscord.com
- failureThreshold: 3
- periodSeconds: 1
- initialDelaySeconds: 10
- securityContext:
- readOnlyRootFilesystem: true
- securityContext:
- fsGroup: 2000
- runAsUser: 1000
- runAsNonRoot: true
diff --git a/kubernetes/namespaces/default/patsy/secrets.yaml b/kubernetes/namespaces/default/patsy/secrets.yaml
deleted file mode 100644
index 8d5c4f3..0000000
--- a/kubernetes/namespaces/default/patsy/secrets.yaml
+++ /dev/null
Binary files differ
diff --git a/kubernetes/namespaces/default/patsy/service.yaml b/kubernetes/namespaces/default/patsy/service.yaml
deleted file mode 100644
index 1844ff3..0000000
--- a/kubernetes/namespaces/default/patsy/service.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-apiVersion: v1
-kind: Service
-metadata:
- name: patsy
-spec:
- selector:
- app: patsy
- ports:
- - protocol: TCP
- port: 80
- targetPort: 80
diff --git a/kubernetes/namespaces/default/quackstack/README.md b/kubernetes/namespaces/default/quackstack/README.md
deleted file mode 100644
index c8b8a92..0000000
--- a/kubernetes/namespaces/default/quackstack/README.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# QuackStack
-
-The deployment for the [QuackStack](https://github.com/python-discord/quackstack) project, hosted at https://quackstack.pythondiscord.com.
-
-This project doesn't need any configuration right now.
-
-To deploy this application run `kubectl apply -f .` from this directory. This will create a deployment, service and ingress.
diff --git a/kubernetes/namespaces/default/quackstack/deployment.yaml b/kubernetes/namespaces/default/quackstack/deployment.yaml
deleted file mode 100644
index 15747c2..0000000
--- a/kubernetes/namespaces/default/quackstack/deployment.yaml
+++ /dev/null
@@ -1,20 +0,0 @@
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: quackstack
-spec:
- replicas: 1
- selector:
- matchLabels:
- app: quackstack
- template:
- metadata:
- labels:
- app: quackstack
- spec:
- containers:
- - name: quackstack
- image: ghcr.io/python-discord/quackstack:main
- imagePullPolicy: Always
- ports:
- - containerPort: 80
diff --git a/kubernetes/namespaces/default/quackstack/ingress.yaml b/kubernetes/namespaces/default/quackstack/ingress.yaml
deleted file mode 100644
index 624e153..0000000
--- a/kubernetes/namespaces/default/quackstack/ingress.yaml
+++ /dev/null
@@ -1,24 +0,0 @@
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
- annotations:
- nginx.ingress.kubernetes.io/auth-tls-verify-client: "on"
- nginx.ingress.kubernetes.io/auth-tls-secret: "kube-system/mtls-client-crt-bundle"
- nginx.ingress.kubernetes.io/auth-tls-error-page: "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
- name: quackstack
-spec:
- tls:
- - hosts:
- - "*.pythondiscord.com"
- secretName: pythondiscord.com-tls
- rules:
- - host: quackstack.pythondiscord.com
- http:
- paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: quackstack
- port:
- number: 80
diff --git a/kubernetes/namespaces/default/quackstack/service.yaml b/kubernetes/namespaces/default/quackstack/service.yaml
deleted file mode 100644
index 86926c5..0000000
--- a/kubernetes/namespaces/default/quackstack/service.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-apiVersion: v1
-kind: Service
-metadata:
- name: quackstack
-spec:
- selector:
- app: quackstack
- ports:
- - protocol: TCP
- port: 80
- targetPort: 80