You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
2.1 KiB
83 lines
2.1 KiB
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
sapian-app: mediawiki
|
|
name: mediawiki
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
sapian-app: mediawiki
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: mediawiki
|
|
sapian-app: mediawiki
|
|
spec:
|
|
containers:
|
|
- image: us.gcr.io/ccoe-246623/sapian/mediawiki:1.34
|
|
name: mediawiki
|
|
ports:
|
|
- containerPort: 80
|
|
# resources:[]
|
|
resources:
|
|
requests:
|
|
memory: "64Mi"
|
|
cpu: "250m"
|
|
limits:
|
|
memory: "128Mi"
|
|
cpu: "500m"
|
|
lifecycle:
|
|
postStart:
|
|
exec:
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- cp -f /etc/mediawiki/LocalSettings.php /var/www/html/LocalSettings.php
|
|
volumeMounts:
|
|
- mountPath: /var/www/html/images
|
|
name: mediawiki-rwo
|
|
subPath: images
|
|
- mountPath: /var/www/html/skins
|
|
name: mediawiki-rwo
|
|
subPath: skins
|
|
- mountPath: /var/www/html/extensions
|
|
name: mediawiki-rwo
|
|
subPath: extensions
|
|
- mountPath: /etc/mediawiki
|
|
readOnly: true
|
|
name: mediawiki-local-settings
|
|
- mountPath: /etc/mediawiki-ldap/
|
|
readOnly: true
|
|
name: mediawiki-ldap-settings
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: mediawiki-rwo
|
|
persistentVolumeClaim:
|
|
claimName: mediawiki-rwo
|
|
- name: mediawiki-local-settings
|
|
secret:
|
|
secretName: mediawiki-local-settings
|
|
items:
|
|
- key: LocalSettings.php
|
|
path: LocalSettings.php
|
|
- name: mediawiki-ldap-settings
|
|
secret:
|
|
secretName: mediawiki-ldap-settings
|
|
items:
|
|
- key: ldap.json
|
|
path: ldap.json
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: sapian-agent-role
|
|
operator: In
|
|
values:
|
|
- foreman
|
|
status: {}
|