imfreedom/k8s-cluster

Update the allowed groups for pidgin.im xmpp

19 months ago, Gary Kramlich
f3fdd3dab6c1
Update the allowed groups for pidgin.im xmpp

Apparently groups don't matter for the group or in values in hub queries, but
the project name does? I dunno, but this seems to work fine.
---
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
keel.sh/trigger: poll
annotations:
keel.sh/pollSchedule: "@every 10m"
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
---