Files
pages/deploy/kubernetes/exhibition/pageswiki.yaml.example
T
Anya Tokugawa 4a863fe63c chore(exhibition): preserve deployment and synthetic demo tooling
Separate one-time bootstrap, historical deployment examples and local validation. Document final hostname and historical status; exclude credentials and runtime data.
2026-11-30 23:14:24 +09:00

100 lines
2.4 KiB
Plaintext

# 旧SQLite用の一般ひな形。現在の展示NFSへは適用しない。
# 展示ではpostgres.yaml、初回のみbootstrap.yaml、app.yamlを使う。
# 適用前に運営の方針と照合する。
# kubectl -n "$NS" apply -f pageswiki.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pageswiki-data
spec:
storageClassName: REPLACE_WITH_STORAGE_CLASS
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: pageswiki
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: pageswiki
template:
metadata:
labels:
app: pageswiki
spec:
automountServiceAccountToken: false
terminationGracePeriodSeconds: 60
securityContext:
runAsNonRoot: true
runAsUser: 10001
runAsGroup: 10001
fsGroup: 10001
seccompProfile:
type: RuntimeDefault
containers:
- name: pageswiki
# 本書の作成時点のrelease例。新しい展示機能を含める場合は別途releaseし検証する。
image: git.anya.jp/anya/pageswiki-app:v0.17.3
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 3000
env:
- name: PAGESWIKI_DATA_DIR
value: /data
resources:
requests:
cpu: 250m
memory: 512Mi
limits:
cpu: "2"
memory: 2Gi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumeMounts:
- name: data
mountPath: /data
- name: tmp
mountPath: /tmp
startupProbe:
httpGet:
path: /health
port: http
periodSeconds: 5
failureThreshold: 120
readinessProbe:
httpGet:
path: /health
port: http
periodSeconds: 5
volumes:
- name: data
persistentVolumeClaim:
claimName: pageswiki-data
- name: tmp
emptyDir: {}
---
apiVersion: v1
kind: Service
metadata:
name: pageswiki
spec:
type: ClusterIP
selector:
app: pageswiki
ports:
- name: http
port: 80
targetPort: http