diff options
author | 2024-04-15 11:56:43 +0100 | |
---|---|---|
committer | 2024-04-15 11:56:43 +0100 | |
commit | cb2398e6dd68039ad66d3007ba01c85ebbc7d0bc (patch) | |
tree | 5a41cd9ec0cace728d314e82bb5b7f49bd0fc2d0 /kubernetes/namespaces/apis/quackstack | |
parent | Move snekbox to new namespace (diff) |
Move API services to apis namespace
Diffstat (limited to 'kubernetes/namespaces/apis/quackstack')
-rw-r--r-- | kubernetes/namespaces/apis/quackstack/README.md | 7 | ||||
-rw-r--r-- | kubernetes/namespaces/apis/quackstack/deployment.yaml | 21 | ||||
-rw-r--r-- | kubernetes/namespaces/apis/quackstack/ingress.yaml | 25 | ||||
-rw-r--r-- | kubernetes/namespaces/apis/quackstack/service.yaml | 12 |
4 files changed, 65 insertions, 0 deletions
diff --git a/kubernetes/namespaces/apis/quackstack/README.md b/kubernetes/namespaces/apis/quackstack/README.md new file mode 100644 index 0000000..c8b8a92 --- /dev/null +++ b/kubernetes/namespaces/apis/quackstack/README.md @@ -0,0 +1,7 @@ +# 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/apis/quackstack/deployment.yaml b/kubernetes/namespaces/apis/quackstack/deployment.yaml new file mode 100644 index 0000000..a3eb2f7 --- /dev/null +++ b/kubernetes/namespaces/apis/quackstack/deployment.yaml @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: quackstack + namespace: apis +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/apis/quackstack/ingress.yaml b/kubernetes/namespaces/apis/quackstack/ingress.yaml new file mode 100644 index 0000000..663f90c --- /dev/null +++ b/kubernetes/namespaces/apis/quackstack/ingress.yaml @@ -0,0 +1,25 @@ +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 + namespace: apis +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/apis/quackstack/service.yaml b/kubernetes/namespaces/apis/quackstack/service.yaml new file mode 100644 index 0000000..9af64fe --- /dev/null +++ b/kubernetes/namespaces/apis/quackstack/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: quackstack + namespace: apis +spec: + selector: + app: quackstack + ports: + - protocol: TCP + port: 80 + targetPort: 80 |