Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
apiVersion: apps/v1
kind: Deployment
metadata:
name: pygments-server
namespace: tool-notwikilambda
labels:
name: pygments-server
toolforge: tool
spec:
selector:
matchLabels:
name: pygments-server
toolforge: tool
template:
metadata:
labels:
name: pygments-server
toolforge: tool
spec:
containers:
- name: pygments-server
image: docker-registry.tools.wmflabs.org/toolforge-python37-sssd-web:latest
command: [ "../venv/bin/gunicorn", "--workers=4", "--bind=:7878", "main:flask_app" ]
ports:
- containerPort: 7878
name: pygments
protocol: TCP
workingDir: /data/project/notwikilambda/www/python/pygments-server
env:
- name: HOME
value: /data/project/notwikilambda
imagePullPolicy: Always
apiVersion: v1
kind: Service
metadata:
name: pygments-server
namespace: tool-notwikilambda
spec:
selector:
name: pygments-server
ports:
- protocol: TCP
port: 7878
@lucaswerkmeister

This comment has been minimized.

Copy link
Owner Author

@lucaswerkmeister lucaswerkmeister commented May 27, 2021

Note: these files are now outdated. Don’t use them; get the current ones from the notwikilambda tool instead. (I might rename them in future, too.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment