imfreedom/k8s-cluster

Remove keel polling from everything

15 months ago, Gary Kramlich
c97a97478126
Remove keel polling from everything
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: lists-pidgin-im-http
spec:
entryPoints:
- http
routes:
- match: Host(`lists.pidgin.im`) || Host(`liststemp.pidgin.im`)
kind: Rule
services:
- name: lists-pidgin-im
port: 80
middlewares:
- name: https-redirect
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: lists-pidgin-im-https
spec:
entryPoints:
- https
routes:
- match: Host(`lists.pidgin.im`) || Host(`liststemp.pidgin.im`)
kind: Rule
services:
- name: lists-pidgin-im
port: 80
middlewares:
- name: common-headers
- name: hsts-headers
tls:
secretName: lists-pidgin-im-tls
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: lists-pidgin-im-tls
spec:
secretName: lists-pidgin-im-tls
issuerRef:
name: letsencrypt
commonName: lists.pidgin.im
dnsNames:
- lists.pidgin.im
- liststemp.pidgin.im
---
apiVersion: v1
kind: Service
metadata:
name: lists-pidgin-im
labels:
app: lists-pidgin-im
spec:
ports:
- port: 80
protocol: TCP
selector:
app: lists-pidgin-im
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: lists-pidgin-im
labels:
app: lists-pidgin-im
spec:
podSelector:
matchLabels:
app: lists-pidgin-im
ingress:
- from:
- namespaceSelector:
matchLabels:
name: kube-public
podSelector:
matchLabels:
app: traefik
role: controller
ports:
- port: 80
protocol: TCP
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: lists-pidgin-im
spec:
minAvailable: 1
selector:
matchLabels:
app: lists-pidgin-im
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: lists-pidgin-im
labels:
app: lists-pidgin-im
keel.sh/policy: force
spec:
replicas: 2
revisionHistoryLimit: 0
selector:
matchLabels:
app: lists-pidgin-im
template:
metadata:
labels:
app: lists-pidgin-im
spec:
topologySpreadConstraints:
# Spreads out pods over the nodes
- labelSelector:
matchLabels:
app: lists-pidgin-im
maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
containers:
- name: lists-pidgin-im
image: docker.io/pidgin/list-archives:latest
imagePullPolicy: Always
ports:
- containerPort: 80
resources:
limits:
cpu: 50m
memory: 96Mi
requests:
cpu: 10m
memory: 64Mi
---