imfreedom/k8s-cluster

Update hub to 2022.1.14499

2022-03-07, Gary Kramlich
5927323a0d68
Update hub to 2022.1.14499
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: pidgin-http
spec:
entryPoints:
- http
routes:
- match: Host(`pidgin.im`) || Host(`www.pidgin.im`)
kind: Rule
services:
- name: pidgin-im
port: 3000
middlewares:
- name: https-redirect
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: pidgin-https
spec:
entryPoints:
- https
routes:
- match: Host(`pidgin.im`) || Host(`www.pidgin.im`)
kind: Rule
services:
- name: pidgin-im
port: 3000
middlewares:
- name: pidgin-redirect-documentation
- name: pidgin-redirect-pipermail-support
- name: pidgin-redirect-support
- name: common-headers
- name: hsts-headers
- match: (Host(`pidgin.im`) || Host(`www.pidgin.im`)) && PathPrefix(`/win32`)
kind: Rule
services:
- name: oldsite
port: 80
middlewares:
- name: common-headers
- name: hsts-headers
- match: (Host(`pidgin.im`) || Host(`www.pidgin.im`)) && Path(`/version.php`)
kind: Rule
services:
- name: oldsite
port: 80
middlewares:
- name: common-headers
- name: hsts-headers
- match: (Host(`pidgin.im`) || Host(`www.pidgin.im`)) && Path(`/newissue`)
kind: Rule
services:
- name: nest
port: 3000
middlewares:
- name: pidgin-newissue-redirect
- name: hsts-headers
tls:
secretName: pidgin-tls
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: pidgin-tls
spec:
secretName: pidgin-tls
issuerRef:
name: letsencrypt
commonName: pidgin.im
dnsNames:
- pidgin.im
- www.pidgin.im
- conference.pidgin.im
- xmpp.pidgin.im
---
apiVersion: v1
kind: Service
metadata:
name: pidgin-im
labels:
app: pidgin-im
spec:
ports:
- port: 3000
protocol: TCP
selector:
app: pidgin-im
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: pidgin-im
labels:
app: pidgin-im
spec:
podSelector:
matchLabels:
app: pidgin-im
ingress:
- from:
- namespaceSelector:
matchLabels:
name: kube-public
podSelector:
matchLabels:
app: traefik
role: controller
ports:
- port: 3000
protocol: TCP
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: pidgin-im
spec:
minAvailable: 1
selector:
matchLabels:
app: pidgin-im
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: pidgin-im
labels:
app: pidgin-im
keel.sh/policy: force
keel.sh/trigger: poll
annotations:
keel.sh/pollSchedule: "@every 10m"
spec:
replicas: 2
revisionHistoryLimit: 0
selector:
matchLabels:
app: pidgin-im
template:
metadata:
labels:
app: pidgin-im
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- pidgin-im
topologyKey: failure-domain.beta.kubernetes.io/region
weight: 100
containers:
- name: nest
image: pidgin/nest:latest
imagePullPolicy: Always
ports:
- containerPort: 3000
resources:
limits:
cpu: 100m
memory: 96Mi
requests:
cpu: 50m
memory: 64Mi
---