imfreedom/k8s-cluster
Clone
Summary
Browse
Changes
Graph
Update to the latest youtrack
2020-12-31, Gary Kramlich
2289d81f9318
Update to the latest youtrack
---
apiVersion
:
v1
kind
:
Service
metadata
:
namespace
:
imfreedom
labels
:
app
:
wiki
role
:
database
name
:
wiki-database
spec
:
ports
:
-
port
:
3306
protocol
:
TCP
selector
:
app
:
wiki
role
:
database
---
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
namespace
:
imfreedom
name
:
wiki-database
labels
:
app
:
wiki
role
:
database
spec
:
podSelector
:
matchLabels
:
app
:
wiki
role
:
database
ingress
:
-
from
:
-
podSelector
:
matchLabels
:
app
:
wiki
role
:
app
ports
:
-
port
:
3306
protocol
:
TCP
---
apiVersion
:
policy/v1beta1
kind
:
PodDisruptionBudget
metadata
:
namespace
:
imfreedom
name
:
wiki-database
spec
:
minAvailable
:
1
selector
:
matchLabels
:
app
:
wiki
role
:
database
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
namespace
:
imfreedom
name
:
wiki-database
labels
:
app
:
wiki
role
:
database
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
wiki
role
:
database
strategy
:
type
:
Recreate
template
:
metadata
:
labels
:
app
:
wiki
role
:
database
spec
:
containers
:
-
name
:
mysql
image
:
docker.io/mysql:5
imagePullPolicy
:
Always
resources
:
limits
:
cpu
:
200m
memory
:
384Mi
requests
:
cpu
:
100m
memory
:
192Mi
ports
:
-
containerPort
:
3306
volumeMounts
:
-
mountPath
:
/var/lib/mysql/
name
:
data
readOnly
:
false
subPath
:
mysql
env
:
-
name
:
MYSQL_ROOT_PASSWORD
valueFrom
:
secretKeyRef
:
name
:
wiki-database
key
:
root_password
-
name
:
MYSQL_USER
valueFrom
:
secretKeyRef
:
name
:
wiki-database
key
:
user
-
name
:
MYSQL_PASSWORD
valueFrom
:
secretKeyRef
:
name
:
wiki-database
key
:
password
-
name
:
MYSQL_DATABASE
valueFrom
:
secretKeyRef
:
name
:
wiki-database
key
:
database
volumes
:
-
name
:
data
persistentVolumeClaim
:
claimName
:
wiki-database
---
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
namespace
:
imfreedom
name
:
wiki-database
labels
:
app
:
wiki
role
:
database
spec
:
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
1Gi
---
apiVersion
:
traefik.containo.us/v1alpha1
kind
:
IngressRoute
metadata
:
name
:
wiki-http
namespace
:
imfreedom
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
namespace
:
imfreedom
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/v1alpha2
kind
:
Certificate
metadata
:
namespace
:
imfreedom
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
namespace
:
imfreedom
labels
:
app
:
wiki
role
:
app
spec
:
ports
:
-
port
:
80
protocol
:
TCP
selector
:
app
:
wiki
role
:
app
---
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
namespace
:
imfreedom
name
:
wiki-app
labels
:
app
:
wiki
role
:
app
spec
:
podSelector
:
matchLabels
:
app
:
wiki
role
:
app
ingress
:
-
from
:
-
namespaceSelector
:
matchLabels
:
name
:
kube-public
podSelector
:
matchLabels
:
app
:
traefik
role
:
controller
ports
:
-
port
:
80
protocol
:
TCP
---
apiVersion
:
policy/v1beta1
kind
:
PodDisruptionBudget
metadata
:
namespace
:
imfreedom
name
:
wiki-app
spec
:
minAvailable
:
1
selector
:
matchLabels
:
app
:
wiki
role
:
app
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
namespace
:
imfreedom
name
:
wiki-app
labels
:
app
:
wiki
role
:
app
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
wiki
role
:
app
strategy
:
type
:
Recreate
template
:
metadata
:
labels
:
app
:
wiki
role
:
app
spec
:
containers
:
-
name
:
mediawiki
image
:
docker.io/imfreedom/wiki:latest
imagePullPolicy
:
Always
resources
:
limits
:
cpu
:
200m
memory
:
256Mi
requests
:
cpu
:
100m
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
:
namespace
:
imfreedom
name
:
wiki-uploads
labels
:
app
:
wiki
role
:
app
spec
:
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
1Gi
---