imfreedom/k8s-cluster

Update minio to the most recent release

2020-05-03, Gary Kramlich
31efc05ce9d2
Update minio to the most recent release
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: nest-redirects
namespace: roost
spec:
redirectRegex:
regex: ^https?:\/\/[^\/]+(\/.+)?
replacement: https://pidgin.im${1}
permanent: true
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: nest-redirects
namespace: roost
spec:
entryPoints:
- https
routes:
- match: Host(`nest.pidgin.im`) || Host(`pidg.in`) || Host(`www.pidg.in`)
kind: Rule
services:
- name: nest
port: 3000
middlewares:
- name: nest-redirects
tls:
secretName: nest-redirects-tls
---
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
namespace: roost
name: nest-redirects-tls
spec:
secretName: nest-redirects-tls
issuerRef:
name: letsencrypt
commonName: pidg.in
dnsNames:
- pidg.in
- www.pidg.in
- nest.pidgin.im
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: nest-redirect-documentation
namespace: roost
spec:
redirectRegex:
regex: ^https?:\/\/[^\/]+(\/documentation(\.php)?)$
replacement: https://pidgin.im/help
permanent: true
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: nest-redirect-pipermail-support
namespace: roost
spec:
redirectRegex:
regex: ^https?:\/\/[^\/]+(\/pipermail\/support)$
replacement: https://lists.pidgin.im/pipermail/support/
permanent: true
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: nest-http
namespace: roost
spec:
entryPoints:
- http
routes:
- match: Host(`pidgin.im`) || Host(`www.pidgin.im`)
kind: Rule
services:
- name: nest
port: 3000
middlewares:
- name: nest-redirect-documentation
- name: nest-redirect-pipermail-support
- name: common-headers
- match: (Host(`pidgin.im`) || Host(`www.pidgin.im`)) && PathPrefix(`/win32`)
kind: Rule
services:
- name: oldsite
port: 80
middlewares:
- name: common-headers
- match: (Host(`pidgin.im`) || Host(`www.pidgin.im`)) && Path(`/version.php`)
kind: Rule
services:
- name: oldsite
port: 80
middlewares:
- name: common-headers
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: nest
namespace: roost
spec:
entryPoints:
- https
routes:
- match: Host(`pidgin.im`) || Host(`www.pidgin.im`)
kind: Rule
services:
- name: nest
port: 3000
middlewares:
- name: nest-redirect-documentation
- name: nest-redirect-pipermail-support
- name: common-headers
- match: (Host(`pidgin.im`) || Host(`www.pidgin.im`)) && PathPrefix(`/win32`)
kind: Rule
services:
- name: oldsite
port: 80
middlewares:
- name: common-headers
- match: (Host(`pidgin.im`) || Host(`www.pidgin.im`)) && Path(`/version.php`)
kind: Rule
services:
- name: oldsite
port: 80
middlewares:
- name: common-headers
tls:
secretName: nest-tls
---
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
namespace: roost
name: nest-tls
spec:
secretName: nest-tls
issuerRef:
name: letsencrypt
commonName: pidgin.im
dnsNames:
- pidgin.im
- www.pidgin.im
- conference.pidgin.im
- xmpp.pidgin.im
---
apiVersion: v1
kind: Service
metadata:
namespace: roost
name: nest
labels:
app: nest
spec:
ports:
- port: 3000
protocol: TCP
selector:
app: nest
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
namespace: roost
name: nest
labels:
app: nest
spec:
podSelector:
matchLabels:
app: nest
ingress:
- from:
- namespaceSelector:
matchLabels:
name: kube-public
podSelector:
matchLabels:
app: traefik
role: controller
ports:
- port: 3000
protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: roost
name: nest
labels:
app: nest
spec:
replicas: 2
selector:
matchLabels:
app: nest
template:
metadata:
labels:
app: nest
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- nest
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
---
apiVersion: v1
kind: Service
metadata:
namespace: roost
name: oldsite
labels:
app: oldsite
spec:
ports:
- port: 80
protocol: TCP
selector:
app: oldsite
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
namespace: roost
name: oldsite
labels:
app: oldsite
spec:
podSelector:
matchLabels:
app: oldsite
ingress:
- from:
- namespaceSelector:
matchLabels:
name: kube-public
podSelector:
matchLabels:
app: traefik
role: controller
ports:
- port: 80
protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: roost
name: oldsite
labels:
app: oldsite
spec:
replicas: 2
selector:
matchLabels:
app: oldsite
template:
metadata:
labels:
app: oldsite
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- oldsite
topologyKey: failure-domain.beta.kubernetes.io/region
weight: 100
containers:
- name: oldsite
image: pidgin/www:latest
imagePullPolicy: Always
ports:
- containerPort: 80
resources:
limits:
cpu: 100m
memory: 96Mi
requests:
cpu: 50m
memory: 64Mi
---