imfreedom/k8s-cluster

Lower the resources for trac

14 months ago, Gary Kramlich
5e0f351f8ee3
Lower the resources for trac

We haven't had any stability issues with trac since we redirected the issues,
so we're going to lower the resources to reflect that and hopefully bring them
down a bit more over time.
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: imfreedom-http
spec:
entryPoints:
- http
routes:
- match: Host(`imfreedom.org`) || Host(`www.imfreedom.org`)
kind: Rule
services:
- name: imfreedom-org
port: 3000
middlewares:
- name: imfreedom-org-wiki
- name: https-redirect
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: imfreedom
spec:
entryPoints:
- https
routes:
- match: Host(`imfreedom.org`) || Host(`www.imfreedom.org`)
kind: Rule
services:
- name: imfreedom-org
port: 3000
middlewares:
- name: imfreedom-org-wiki
- name: common-headers
- name: hsts-headers
tls:
secretName: imfreedom-tls
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: imfreedom-tls
spec:
secretName: imfreedom-tls
issuerRef:
name: letsencrypt
commonName: imfreedom.org
dnsNames:
- imfreedom.org
- www.imfreedom.org
- xmpp.imfreedom.org
- conference.imfreedom.org
---
apiVersion: v1
kind: Service
metadata:
labels:
app: imfreedom-org
name: imfreedom-org
spec:
ports:
- port: 3000
protocol: TCP
selector:
app: imfreedom-org
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: imfreedom-org
spec:
minAvailable: 1
selector:
matchLabels:
app: imfreedom-org
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: imfreedom-org
labels:
app: imfreedom-org
keel.sh/policy: force
spec:
replicas: 2
revisionHistoryLimit: 0
selector:
matchLabels:
app: imfreedom-org
template:
metadata:
labels:
app: imfreedom-org
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- imfreedom-org
topologyKey: failure-domain.beta.kubernetes.io/region
weight: 100
containers:
- name: http
image: imfreedom/www:latest
imagePullPolicy: Always
ports:
- containerPort: 3000
resources:
limits:
cpu: 50m
memory: 96Mi
requests:
cpu: 10m
memory: 64Mi
---