imfreedom/k8s-cluster
Clone
Summary
Browse
Changes
Graph
Add a new deployment for moving the imf wiki to mkdocs
2022-04-10, Gary Kramlich
fc71e853c3aa
Add a new deployment for moving the imf wiki to mkdocs
---
apiVersion
:
traefik.containo.us/v1alpha1
kind
:
IngressRoute
metadata
:
name
:
wiki-http
spec
:
entryPoints
:
-
http
routes
:
-
match
:
Host(`wiki.imfreedom.org`)
kind
:
Rule
services
:
-
name
:
wiki-app
port
:
80
middlewares
:
-
name
:
https-redirect
---
apiVersion
:
traefik.containo.us/v1alpha1
kind
:
IngressRoute
metadata
:
name
:
wiki-https
spec
:
entryPoints
:
-
https
routes
:
-
match
:
Host(`wiki.imfreedom.org`)
kind
:
Rule
services
:
-
name
:
wiki-app
port
:
80
middlewares
:
# - name: ci-body-size
-
name
:
common-headers
-
name
:
hsts-headers
tls
:
secretName
:
wiki-tls
---
apiVersion
:
cert-manager.io/v1
kind
:
Certificate
metadata
:
name
:
wiki-tls
spec
:
secretName
:
wiki-tls
issuerRef
:
name
:
letsencrypt
commonName
:
wiki.imfreedom.org
dnsNames
:
-
wiki.imfreedom.org
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
wiki-app
spec
:
ports
:
-
port
:
80
protocol
:
TCP
selector
:
app
:
wiki
role
:
app
---
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
name
:
wiki-app
spec
:
podSelector
:
matchLabels
:
app
:
wiki
role
:
app
ingress
:
-
from
:
-
namespaceSelector
:
matchLabels
:
name
:
kube-public
podSelector
:
matchExpressions
:
-
key
:
app
operator
:
In
values
:
-
traefik
-
key
:
role
operator
:
In
values
:
-
controller
ports
:
-
port
:
80
protocol
:
TCP
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
wiki-app
spec
:
replicas
:
1
revisionHistoryLimit
:
1
selector
:
matchLabels
:
app
:
wiki
role
:
app
strategy
:
type
:
Recreate
template
:
spec
:
containers
:
-
name
:
mediawiki
image
:
docker.io/imfreedom/wiki:latest
imagePullPolicy
:
Always
resources
:
limits
:
cpu
:
500m
memory
:
512Mi
requests
:
cpu
:
250m
memory
:
128Mi
ports
:
-
containerPort
:
80
volumeMounts
:
-
mountPath
:
/var/www/html/images/
name
:
uploads
readOnly
:
false
subPath
:
uploads
-
mountPath
:
/config
name
:
config
readOnly
:
true
volumes
:
-
name
:
uploads
persistentVolumeClaim
:
claimName
:
wiki-uploads
-
name
:
config
secret
:
secretName
:
wiki-app
---
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
name
:
wiki-uploads
spec
:
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
1Gi
---
apiVersion
:
gemini.fairwinds.com/v1beta1
kind
:
SnapshotGroup
metadata
:
name
:
wiki-uploads
spec
:
persistentVolumeClaim
:
claimName
:
wiki-uploads
schedule
:
-
every
:
12 hours
keep
:
2
---